Last post Oct 16, 2017 03:16 AM by Billy Liu
Oct 14, 2017 01:24 AM|farooqspecials|LINK
The original formula:
MI = 171 - 5.2 * ln(V) - 0.23 * (G) - 16.2 * ln(LOC)
The derivative used by SEI is calculated as follows:
MI = 171 - 5.2 * log2(V) - 0.23 * G - 16.2 * log2 (LOC) + 50 * sin (sqrt(2.4 * CM))
The derivative used by Microsoft Visual Studio (since v2008) is calculated as follows:
MI = MAX(0,(171 - 5.2 * ln(Halstead Volume) - 0.23 * (Cyclomatic Complexity) - 16.2 * ln(Lines of Code))*100 / 171)
The threshold values are different for different formula. As visual studio is considering below 20 as poor maintainability and maintainability derivative used by SEI is calculated below 60 as poor maintainability value. Why there are different formulas
for maintainability index. . They should be same..
Oct 16, 2017 03:16 AM|Billy Liu|LINK
Why there are different formulas for maintainability index. . They should be same..
Do you mean the there is not need to have 3 formulas for maintainability index?
I think these formulas are improved by different organizations.
They improve the formulas by the way which they think is better to show the maintainability
So there are different version for maintainability index.