Automated linting for code quality and standards
Linting is a tool that provides direct feedback on improving both the quality and readability of your code. Based on a rule set, linting provides valued feedback on how code is written. Unlike security testing, which looks for known exploits, linting rules can identify poor coding habits that could be problematic, for example, infinite loop detection. And yes, linting provides feedback on standards in variable naming and code spacing, creating highly standardized and easier-to-read code. Of course, code can compile and work in a not-so-readable state – but like grammar in the English language, code should be clean and easy to understand, not a garbled mess.
Beyond just style, linting can provide feedback on a number of possible scenarios, including the following:
- Code that will never be executed
- Possible situations where indexes will be outside their array’s bounds
- Code and data that may not be in a format...