Hi,
My profile still uses a few Findbugs rules that are not provided sonar-java. I wanted to know if you plan to rewrite them or not (and if "not" then "why" as the answer my be good enough to simply remove these rules from the profile and simply get rid of Findbugs which will lead to decrease analysis time.) None of these rules are marked as deprecated (so I don't know if they have been replaced.)
I prefer putting everything in a single thread in order to have a global picture.
Here are the rules:
- findbugs:BC_IMPOSSIBLE_CAST - blocker rule that looks interesting to me
- findbugs:BC_IMPOSSIBLE_DOWNCAST - blocker rule, similar to the previous one
- findbugs:BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY - blocker rule, similar to the previous one (note that by default the rule is blocker, but as it raises false positives critical may be a better priority)
- findbugs:XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER - critical rule, not perfect as false negatives are possible, but "some check" is better than "no check"
- findbugs:XSS_REQUEST_PARAMETER_TO_JSP_WRITER - critical rule, same as above "some check" is better than "no check"
- findbugs:XSS_REQUEST_PARAMETER_TO_SEND_ERROR - critical rule, same as above "some check" is better than "no check"
- findbugs:HRS_REQUEST_PARAMETER_TO_HTTP_HEADER - major rule, same as above "some check" is better than "no check"
- findbugs:HRS_REQUEST_PARAMETER_TO_COOKIE - major rule, same as above "some check" is better than "no check"
- findbugs:EQ_ALWAYS_FALSE - blocker rule, is it equivalent to squid:S2162 ?
- findbugs:EQ_ALWAYS_TRUE - blocker rule, is it equivalent to squid:S2162 ?
- findbugs:DM_NUMBER_CTOR - critical rule, I don't know what optimisations (what) compilers (in which version for which JDK version) do, however the Javadoc for JDK 6,7,8 state that value [-128,127] are cached and valueOf should be preferred
Thanks in advance for your answer / opinion !
Michel