jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-457

The accelerator factor used to calculate the Coding Rules Compliance measure should be changeable by Sonar administrator

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5
  • Component/s: Rules
  • Labels:
    None

Description

To calculate the RCI index, we currently use the following formula :

rules_compliance_index = 1 - (total_violation_nbre * 3) / LOC

3 is what we call the accelerator factor. Sonar administrator should be able to change the default value of this accelerator factor.

Issue Links

relates to

Improvement - An improvement or enhancement to an existing feature or task. SONAR-271 Wrong rules compliance indicators (?)

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
philippe sigaud added a comment - 15/Jan/09 4:52 AM

Could it be possible to change the accelerator factor for each category ?
That would enable us to put more pressure on some categories.

Show
philippe sigaud added a comment - 15/Jan/09 4:52 AM Could it be possible to change the accelerator factor for each category ? That would enable us to put more pressure on some categories.
Hide
Permalink
Freddy Mallet added a comment - 15/Jan/09 7:54 AM

Hi Philippe, this is not currently possible but that's a good question. What we plan to do is to extend the number of failure levels and to associate a weight to each level (and not to each category). So for each rule, you will be able to associate a level and so a weight.

Show
Freddy Mallet added a comment - 15/Jan/09 7:54 AM Hi Philippe, this is not currently possible but that's a good question. What we plan to do is to extend the number of failure levels and to associate a weight to each level (and not to each category). So for each rule, you will be able to associate a level and so a weight.
Hide
Permalink
philippe sigaud added a comment - 15/Jan/09 9:25 AM

Adding an accelerator factor to each rule is a good idea but maybe too time consuming. I does give more control over the results.
I was thinking of putting weight on categories because this can be a business choice at one point forcing you to manage things differently.
For example : a project is late and is subcontracted. You want to emphasis on maintainability for a while even if it weren't a priority before.
Those categories can be used like that.

Show
philippe sigaud added a comment - 15/Jan/09 9:25 AM Adding an accelerator factor to each rule is a good idea but maybe too time consuming. I does give more control over the results. I was thinking of putting weight on categories because this can be a business choice at one point forcing you to manage things differently. For example : a project is late and is subcontracted. You want to emphasis on maintainability for a while even if it weren't a priority before. Those categories can be used like that.

People

  • Assignee:
    Simon Brandhof
    Reporter:
    Freddy Mallet
Vote (0)
Watch (1)

Dates

  • Created:
    13/Nov/08 11:36 AM
    Updated:
    10/Jan/12 3:13 PM
    Resolved:
    20/Nov/08 8:54 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.