eclipse / microprofile-parent

Apache License 2.0
2 stars 19 forks source link

Add checkstyle modules to allow the use of @SupressWarnings #81

Closed benjamin-confino closed 6 months ago

benjamin-confino commented 6 months ago

It is possible to use the java annotation @SupressWarnings to filter checkstyle errors, however this needs a couple of extra modules in the checkstyle plugin: SuppressWarningsFilter and SuppressWarningsHolder. See: https://stackoverflow.com/questions/4023185/disable-a-particular-checkstyle-rule-for-a-particular-line-of-code

I'd like to request that those modules are added here, in OpenAPI I've found classes with methods named after http commands like GET(). I want to use @SupressWarnings to allow this special case method name, but I had to to copy the entire 68 line checkstyleRules into an openAPI pom.xml so I could modify it. Changing it here makes more sense.