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:
@@ -202,6 +202,12 @@ PRESUBMITS = {
|
|||||||
{"/node_modules/"},
|
{"/node_modules/"},
|
||||||
):
|
):
|
||||||
"Do not mock Response, use FakeResponse.",
|
"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
|
# Note that this regex only works for one kind of Flyway file. If we want to
|
||||||
|
|||||||
Reference in New Issue
Block a user