SonarQube rule squid:S1200 counts java.* classes in its limit of 20? -


how sonarqube rule

squid:s1200: classes should not coupled many other classes (single responsibility principle)

count coupling number towards limit of 20?

it seems counts classes standard java packages java.lang.*, java.text.* , java.util.* in rule's limit of 20. if use java integer class, i've used 1/20 of rule's limit.

additional info: sonarqube version: 4.5.1

the best way answer question directly @ source code of rule : https://github.com/sonarsource/sonar-java/blob/c1f15b81bcd9d643ab403aeea6e1606040f84eac/java-checks/src/main/java/org/sonar/java/checks/classcouplingcheck.java

so counts every declared type. , indeed if use java.lang.integer count 1 type 1/20 of rule's limit.

the news can configure '20' magical number in quality profile.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -