The top 5 JavaScript issues in all our codebases
summary
Scans of hundreds of millions of lines across thousands of repos produce a ranked list: most common JavaScript issues are unused assignments, == coercion, commented‑out code, widespread use of var instead of let/const, and functions with cognitive complexity ≥15; tooling used includes Sona Cloud scans, SonarLint and an ESLint SonarJS plugin; a revealjs confetti plugin is built to demo refactoring and it works; findings emphasize specific fixes, frequency, and measurable thresholds rather than vague advice.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 3:07Clean code in JavaScript
- 7:18Unused variable assignments
- 10:05Double equals coercion
- 12:11Commented-out code
- 13:54TypeScript issues overview
- 15:19React bind/arrow function props
- 16:21Unnecessary imports
- 17:46VAR vs const/let
- 19:36Cognitive complexity in functions
- 31:21Tools for JavaScript issues
- 34:11Refactoring for maintainability
- 35:13Closing remarks
related talks
47mThe top 5 JavaScript issues in all our codebases
25mThe top 5 JavaScript issues in all our codebases
25mThe Top 5 JavaScript Issues in All Our Codebases
42mThe top 5 JavaScript issues in all our codebases
45mConquering complexity: refactoring JavaScript projects
58mImproving the Quality of JavaScript Code
58mImproving Quality of JavaScript Code
30mRefactoring large JavaScript codebases
