spring-projects / spring-aot-smoke-tests

Smoke tests for Spring's AOT and native support
https://spring-team-aot-smoke-tests-dashboard.azuremicroservices.io/
49 stars 34 forks source link

Enable compile linting and treat warnings as errors #232

Closed wilkinsona closed 1 month ago

wilkinsona commented 1 month ago

We should aim for the smoke tests to represent a well-maintained and updated application. As such, they should avoid using deprecated APIs where possible. To enforce this, we should compile them with deprecation linting enabled and treat warnings as errors.

wilkinsona commented 1 month ago

Let's enable broader linting, bringing the smoke tests into line with Boot's codebase:

-Werror -Xlint:unchecked -Xlint:deprecation -Xlint:rawtypes -Xlint:varargs