The Top 5 JavaScript Issues in All Our Codebases
summary
Sona Cloud scans hundreds of millions of JavaScript lines and reports the top five static issues: unused assignments, using double equals/not equals, commented out code, using var instead of let/const, and functions with cognitive complexity >15. SonarLint highlights exact locations in the editor, SonarJS ESLint plugin enforces rules, and Sonar Cloud/Cube run in CI. A real 90‑line slide function scores 19 on cognitive complexity, gets refactored with an early return and helpers, and drops below 15.
AI-written summary · about
chapters (9)
- 0:00Clean JavaScript code
- 1:06Data sources for issues
- 3:13Readability matters
- 5:39Unused assignments
- 8:28Double equals dangers
- 10:59Commented code harms
- 12:22VAR to let and const
- 14:08High function complexity
- 23:56Top five JavaScript issues
related talks
25mThe top 5 JavaScript issues in all our codebases
35mThe top 5 JavaScript issues in all our codebases
42mThe top 5 JavaScript issues in all our codebases
47mThe top 5 JavaScript issues in all our codebases
45mConquering complexity: refactoring JavaScript projects
58mImproving Quality of JavaScript Code
58mImproving the Quality of JavaScript Code
35mApplying NASA coding guidelines to JavaScript or airspace is closer than you may think
