java:S107 rule should have JAX-RS annotated method as exceptions

Hello. Currently java:S107 rule (Methods should not have too many parameters) enforces methods to have a given number of parameters, unless annotated with Spring’s @RequestMapping or related annotations like @GetRequest.

I think that the same exceptions should be applied to JAX-RS annotated method, like @GET, @POST, etc.

Hello @Lorthirk,
I just stumble into this old topic, and noticed that we created a ticket in between (SONARJAVA-3470) targeting exactly what you are suggesting. It should be tackled very soon.

Best,
Quentin

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.