The top 5 JavaScript issues in all our codebases
summary
Scans of hundreds of millions of JavaScript lines in SonarCloud identify the five most common concrete problems: unused assignment left in functions, use of double equals which also runs much slower than ===, large blocks of commented-out code, legacy var usage instead of let/const, and functions with high cognitive complexity (Sonar flags >15). The data comes from static analysis rules (SonarQube/SonarCloud and SonarLint) and the fixes shown are targeted refactors and linting/CI enforcement.
AI-written summary · about
chapters (10)
- 0:00Introduction to talk
- 3:43About the speaker
- 4:25Top 5 JavaScript issues data
- 8:38Unused variable assignments
- 10:22Strict equality checks
- 12:07Commented-out code
- 13:09Avoiding var in JavaScript
- 15:16Cognitive complexity explained
- 23:28Tools and resources
- 24:09Call to action
related talks
25mThe Top 5 JavaScript Issues in All Our Codebases
42mThe top 5 JavaScript issues in all our codebases
35mThe 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
28mTreat test code as application code by linting
