TIOBE Quality Indicator Change History
Changed all references to the old ISO 25010 document, such as main
quality characteristic "Operability", to the new ones, such as
The ISO 25010 document changed some of its terminology. The TQI document has been adjusted accordingly.
Added a diagram mapping TQI metrics to ISO 25010 quality characteristics.
There was a demand for a clear diagram mapping TQI metrics to ISO 25010 quality characteristics. This diagram has been added.
Adjusted the compliance factor definition to solve a bug about severity levels.
A problem has been detected for rule based metrics. Suppose you have a coding standard with 20 rules at severity level 1 and 1 rule at level 3. In that case violations of the level 3 rule have more impact on TQI than any violation of severity level 1. That is not what is expected. The reason why this happens is that violations are divided by the power of 4 of its severity level minus one and the number of rules for that severity level. So a severity level 1 violation counts 1/(4^0*20) = 1/20 and a severity level 3 violation counts 1/(4^2*1) = 1/16. The solution to this problem is to divide by the average number of rules per severity level. In this case, (20+1)/2 = 10.5 for each severity level. The TQI document has been adjusted accordingly.
Adjusted the definition of Fan Out to keep it in the range [0,100].
All metrics for which the virtual TQI score can be lower than zero, the problem of TQI definition version 3.10 can occur. Fan Out is such a metric. In this version of the document, the TQI Fan Out definition has been adjusted to make sure the TQI score for Fan Out can never be lower than zero to avoid strange effects during aggregation.
Used tokens for Code Duplication score instead of lines of code.
A defect in measuring Code Duplication has been detected. Code Duplication is based on lines of code that are duplicated. Since blank lines and comments are ignored for Code Duplication, the following could happen: suppose two files A and B are completely identical. Moreover, suppose that 30% of the lines of code in these files are comments or blank lines. Then the Code Duplication for these completely identical files is only 70%. It should be 100%. The reason for this problem is that lines of code are counted for code duplication, whereas this should have been tokens instead. From now on the TQI Code Duplication measurement is based on tokens. The document has been adjusted accordingly.
Reverted exclusion of C# interfaces for code duplication.
The changes made for version 4.4, i.e. excluding C# interfaces from Code Duplication, was a mistake. This has been repaired.
Replaced example buffer overflow by division by zero for abstract interpretation.
For the introduction of the TQI Security metric, some checks have been transferred from Abstract Interpretation to Security. One of these checks is the detection of buffer overflows. The Abstract Interpretation part of the document still contains an example of a buffer overflow. This example has been moved to the TQI Security section.
Added exceptions for C# code duplication.
C# interface Code Duplication can't be solved because they need to be copied every time the interface is used. The document has been adjusted to exclude C# interfaces from Code Duplication checking.
Improved TQI formula for code duplication.
It is impossible to get a TQI Code Duplication score of 0%. Even if you have 100% Code Duplication the TQI score is still 10%. The score has been adjusted a little bit to make sure that 100% Code Duplication results in 0% TQI Code Duplication.
Fixed a typo (missing parenthesis) in definition of Compliance Factor.
There was a parenthesis missing in the definition of the compliance factor. This has been fixed.
Fixed typos and improved phrasing.
This is a minor upgrade with only some cosmetic changes and typo fixes.
Introduced Security metric.
Based on feedback from customers, the Security metric has been introduced as one the 8 TQI metrics. Security is becoming more and more important in the software world and it is also one of the ISO 25010 main quality characteristics. Security is not added as the ninth metric but it replaces TQI metric Dead Code. There are 2 reasons for this replacement: 1) The distribution of metric weights is much nicer with 8 metrics than with 9 metrics, 2) Dead Code is measured in a sloppy way, i.e. only dead files are actually taken into account and for a limited number of languages also dead functions.
Improved formula of Cyclomatic Complexity.
The differences between the levels for the TQI Cyclomatic Complexity definition that has been adopted for version 3.10 appear to be too close to each other. A new definition has been proposed based on the idea that an average Cyclomatic Complexity of 3 should be level C and an average Cyclomatic Complexity of 5 should be level F. The document has been updated with this new definition.
Improved formula of Cyclomatic Complexity.
The current definition of cyclomatic complexity can lead to unexpected results. A simple example can explain this behavior. Suppose you have 2 files: file A has an average cyclomatic complexity of 3 (TQI score: 80%) and file B has an average complexity of 7 (TQI score: 0%) and suppose both files contain the same amount of functions. Then the overall average Cyclomatic Complexity will be 5 (TQI score: 40%). Suppose you improve the average Cyclomatic Complexity of file A from 3 to 2.5 and the average complexity of file B from 7 to 9.5. Then the following happens. The TQI score of file A increases from 80% to 90% (+10%) and from file B remains 0% but the overall TQI Cyclomatic Complexity drops from 40% to 20% (-20%), which is counterintuitive. This happened a couple of times in practice. The reason why this can happen is that the TQI score for Cyclomatic Complexity can virtually go beyond zero. A new definition has been adopted that will remain positive for all possible Cyclomatic Complexity values.
Excluded header files from metric Code Coverage.
For the programming languages C and C++, header files are also taken into account for the metric Code Coverage. This is unfair because usually these files don't contain any code and thus will only influence the Code Coverage score negatively. The document has been changed to exclude header files from the Code Coverage definition.
Corrected a calculation error in Compiler Warnings thresholds.
The level F boundary is not correct for Compiler Warnings. It currently is 83.22% in the document, but according to the definition it should be 85.15%. This has been adjusted.
Relaxed TQI of Code Duplication.
The definition of Code Duplication contains arbitrary borders and is much too strict (i.e. > 4% code duplication is level F). The new definition is based on 1% is level C and 10% is level F. The document has been adjusted accordingly.
Added multiple compiler constraint to TQI.
If multiple compilers are used, the total number of possible Compiler Warning types increases. This results in a higher TQI score, especially in case files are not compiled for all available compilers. This is not fair. So the TQI is calculated per compiler and then combined. This has been adjusted in the document.
Made a distinction between internal and external Fan Out.
Currently all imported dependencies have the same weight for the Fan Out metric. This is not fair because importing system libraries has less impact on modularity than importing own modules. Moreover, importing system libraries is a good thing, i.e. it promotes code reuse. In the new definition there has been made a distinction between external Fan Out (imports of external libraries) and internal Fan Out (imports of own modules). External Fan Out has 4 times less impact on the Fan Out score than internal Fan Out.
Updated the definition of average Cyclomatic Complexity.
The benchmark figures of cyclomatic complexity have changed a lot due to the fact that the number of lines of code checked by TIOBE increased from 200 MLOC to 300 MLOC. The new benchmark is used now.
Excluded header files from metric Code Duplication.
In case of interface inheritance, header files for the programming languages C and C++ must be duplicated. It is not fair to consider this code duplication because it can't be solved. So header files are included now from the code duplication definition.
Improved Code Duplication calculation.
The differences between level A, B and C for code duplication are too small and between level D, E and F too large. The multiplication factor of the code duplication score has been increased to adjust this.
Introduced new C# Fan Out calculation.
Fan out for C# is calculated in a simple way, every "using" statement is considered to import 5 entities. Now that it is possible to calculate the exact amount of imported entities the text of the definition has been adapted.
Factored out metric coverage in TQI definition.
Metric coverage is an indication of how much code can be checked for a metric. This metric property is only used for metrics that use the compliance factor. However, this should hold for all metrics. The metric coverage has been removed from the compliance definition and added as a property of all metrics.
Added percentages to the TQI scores.
The TQI scores are percentages not just numbers. All TQI scores have been replaced by percentages in the document.
Adjusted TQI metric boundaries.
The TQI scores that are needed to reach a certain level do not include the boundary value, e.g. level A is reach in case TQI is greater than 90. That should have been greater than or equal to 90. This has been fixed.
Improved the TQI definition of Compiler Warnings.
The definition of compiler warnings is much too strict. In most cases it is either level A (no warnings) or level F (in case of a view compiler warnings or more). The definition has been relaxed.
Added recommended TQI levels.
Since all software systems are rated in the same way, there should be a mechanism to differentiate between safety-critical projects, business-critical projects and other projects. Recommendations have been added what level should be achieved for what kind of software.
Improved the TQI energy label.
The TQI label is not looking nice, e.g. the labels A and F are now outlined properly.