1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Add a presubmit test to catch accidental usage of javax.servlet (#2461)

This commit is contained in:
Lai Jiang
2024-05-31 09:34:50 -04:00
committed by GitHub
parent ea8c34bf8b
commit 81b239c6b3

View File

@@ -202,6 +202,12 @@ PRESUBMITS = {
{"/node_modules/"},
):
"Do not mock Response, use FakeResponse.",
PresubmitCheck(
r".*javax\.servlet\..*",
"java",
{"/node_modules/"},
):
"Do not use javax.servlet.* Use jakarta.servlet.* instead.",
}
# Note that this regex only works for one kind of Flyway file. If we want to