squid:MaximumInheritanceDepth on Android

后端 未结 1 947
忘了有多久
忘了有多久 2021-01-18 02:58

This is my setup:

  • SonarQube 5.6.6
  • SonarJava plugin 4.8.0.9441

Code:

public class BaseActivity extends android.app.Activ         


        
相关标签:
1条回答
  • 2021-01-18 03:25

    This is not a bug, but rather a configuration issue. Rule squid:S110 can be configured to filter out classes from the inheritance tree. By default, no class is ignored and the rule simply count the number of inheritance levels till reaching Object class. In order to configure filtered classes, you have to set up the filteredClasses rule property.

    Note that it is plan to update to rule to not simply exclude filtered classes from the total inheritance depth, but stop incrementing inheritance levels as soon as reaching a filtered class. The fix will be done when handling Jira ticket SONARJAVA-2252.

    0 讨论(0)
提交回复
热议问题