The top 5 JavaScript issues in all our codebases
summary
Data from thousands of projects on SonarCloud and SonarQube shows five concrete problems: the single biggest issue is widespread use of var instead of let or const, many functions exceed the SonarJS cognitive complexity threshold (cognitive complexity >15), frequent unused assignments clutter codebases, loose equality (==/!=) causes bugs and performance hits, and checked‑in commented‑out code remains. SonarQube Community Edition and SonarLint are cited as the actual tools used to detect these patterns and the talk gives concrete refactoring moves (extract functions, replace var, prefer ===) tied to those detections.
AI-written summary · about
chapters (8)
- 0:00Top JavaScript issues
- 6:51Unused assignments
- 10:03Double vs triple equals
- 13:58Commented out code dangers
- 16:25Avoid let and var
- 20:01Cognitive complexity
- 32:44Summary and call to action
- 33:07Q&A
related talks
25mThe top 5 JavaScript issues in all our codebases
25mThe 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
28mTreat test code as application code by linting
37mSonarSource: The Power of Clean Code
14mWhich Code Issues Actually Matter? | Prioritizing SonarQube Findings
