Semicolons seem to be missing too frequently
Why you should care
Code without optional semicolons, with a line break:
a + b;
a + b;
This script will return nothing, then will add a + b, while the expected behavior is to return the result of a + b.
Also, from a readability standpoint, it is always better to adopt a unique coding style.
Since using semicolons where mandatory is the majority of cases, they should also be used when optional.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.