-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MCC name is incorrect #3456
Comments
Some notes to cc, mcc |
Two ideas:
|
The two mentioned metrics are the same, no? I am used to also count && and || operators for a complexity metric. |
I thought (wrongly), that sonar uses MCC, but it is a modified version as you say. |
Yes, I think that is fine. It is unfortune that the acronym is I will create an issue for renaming I think there are a lot of hard references to |
Update/conclusion on the current situation for this issue: Our mcc metric is the complexity metric from sonar but renamed. The first idea was to not rename it anymore which would result in us having a 'new' sonar_complexity metric but no mcc metric anymore. As mcc is one of the most used metrics, this change should not be done before informing/discussing it with the stakeholders. This issue will be blocked until we decide on how to continue with this problem |
Yes we can stop renaming it to mcc and use the default name instead. In that specific case: sonar_complexity |
As proposed by @Nereboss we stop to rename it and add "(formerly MCC)" to it. |
This is done to not mix mcc and complexity in one test class
* Change renaming of sonars complexity to mcc #3456 * Update tests to include the 'formerly mcc' #3456 * Merged changelog #3606 * No longer renaming complexity to complexity (formerly mcc) in analysis part #3606 * Update metric templares to include complexity and change attributeDescriptors for sourceCodeParser #3606 * Change metric for the suspicous menu #3456 * change PNG to png in some docs where it broke the images #3456 * update mcc in json schema changelog #3456 * Update text in risk profile to make users aware of mcc name change #3456 * Update mcc naming in sourcecodeparser docs #3456 * Fix typo in "susOiciousMetricsList" #3456 * change mcc to complexity in SourceCodeParser changelog #3456 * Change all sample files to complexity instead of mcc #3456 * Update attributeDescriptors with improved descriptions and complexity instead of mcc #3456 * Fix failing test for SourceMonitor #3456 * Add comment where sonar metric descriptions can be found #3456 * Fix failing test for sourceCodeParser #3456 * Fix failing test in artificialIntelligence.selector #3456 * Fix failing test in riskProfileHelper #3456 * Fix failing test in suspiciousMetricsHelper #3456 * Fix failing test for highRiskProfile #3456 * Fix failing test in suspiciousMetrics component #3456 * Remove all mentions of mcc from suspiciousMetrics component #3456 This is done to not mix mcc and complexity in one test class * Change mcc to complexity to fix failing tests in legendPanel component #3456 * Fix failing test in metricChooser component #3456 * add sonar_complexity to the list of detected complexity metrics #3456 * Temporarily add (formerly mcc) in the UI and for the search for complexity #3456 * Fix failing test #3456 * Make risk profile available for a number of defined metrics #3456 * Make sonar_complexity trackable by suspicious metrics#3456
Bug
Expected Behavior
WHEN
Looking at the legend
THEN
The MCC is described with the correct words (likely McCabe Complexity or Cyclomatic Complexity)
Actual Behavior
The MCC is described as Maximum Cyclomatic Complexity
Specifications
The text was updated successfully, but these errors were encountered: