Regarding the remediation cost of checkstyle rule

29 views
Skip to first unread message

mdmsh...@gmail.com

unread,
Sep 21, 2017, 9:58:55 AM9/21/17
to SonarQube
Hello Experts,

I have a doubt regarding changes in remediation cost of check-style rule from linear:1d to Constant/issue:1h.

I'm not sure, from which version of SonarQube the remediation cost has changed for Check-style rule.

However, we are using open source version of SonarQube from long time and upgraded SonarQube versions from 3.7.4 to 5.0.1,5.1.2,5.6.0 and now 5.6.6 and the check-style remediation cost is linear:1d.

Now , we have hosted a new instance of SonarQube version - 5.6.6 (fresh database) and we observed that the remediation cost of check-style rule is Constant/issue:1h.

So, Just for checking the remediation cost on the older versions with fresh database. I've installed 5.0.1,5.1.2,5.6.0(All fresh installation). I observed that the remediation cost of check-style rule is Constant/issue:1h.

So, could you please let me know from which version of SonarQube the remediation cost has changed and is there a way to fix this on the existing SonarQube instance where the remediation cost is linear:1d.

G. Ann Campbell

unread,
Sep 21, 2017, 10:08:15 AM9/21/17
to SonarQube
Hi, 

Please don't cross-post here and on StackOverflow.


Ann

mdmsh...@gmail.com

unread,
Sep 22, 2017, 12:08:14 AM9/22/17
to SonarQube

Hello Ann,

I've removed the post from Stack-overflow.

mdmsh...@gmail.com

unread,
Sep 23, 2017, 7:29:31 AM9/23/17
to SonarQube
Hello Gurus,

Any suggestions will be helpful.

Regards,
Sharieff.

Scott B.

unread,
Sep 23, 2017, 8:21:57 AM9/23/17
to SonarQube
Hi.

No one will help you with so little information.

What checkstyle rule? What is the version of your sonar-checkstyle plugin? SonarQube itself doesn't define the remediation cost, so knowing the SonarQube version is useless.


Example:

<chc>
  <rule-repo>checkstyle</rule-repo>
  <rule-key>com.puppycrawl.tools.checkstyle.checks.design.InnerTypeLastCheck</rule-key>
  <prop>
    <key>remediationFunction</key>
    <txt>CONSTANT_ISSUE</txt>
  </prop>

That's why you need to specify about what rule are you talking about.

The sonar-checkstyle is mantained by the checkstyle community. So, let them answer you there: https://github.com/checkstyle/sonar-checkstyle/issues/126
Reply all
Reply to author
Forward
0 new messages