Archive
Indicators & Methodology
-
Avoid exposing too many attributes
Avoid exposing too many public class fields This code insight counts the number of cases when an attribute is directly exposed outside a class…
-
Avoid using functions before their declaration
Avoid using functions before their declaration This code insight counts the number of cases when functions are called prior to their definition in the…
-
Avoid repetitive access to nested members
Why you should care As explained by W3C: βAccessing the DOM in browsers is an expensive thing to do. The DOM is a very…
-
Semicolons seem to be missing too frequently
Semicolons seem to be missing too frequently This code insight verifies that semicolons are not missing too frequently. Depending on the calculated density and…
-
Structural code complexity may be too high
Structural code complexity may be too high This code insight – derived from Tom McCabe’s Cyclomatic Complexity – estimates the level of strutural complexity…
-
The code contains too many lines containing several instructions
The code contains too many lines containing several instructions This code insights verifies that the source code doesn’t contain multiple instructions in a single…
-
A line of code shouldn’t be too long (to help readability)
A line of code shouldn’t be too long (to help readability) This code insight counts the number of characters for each line of code…
-
Code indentation, line, and character encoding formats should be consistent
Code indentation, line, and character encoding formats should be consistent This code insights detects when different code formatting styles are heterogeneous (CRLF, CR or…