Use Static Code Analysis Tools
In the Olympic discipline of the high jump, the athlete has to jump over a bar, and during a competition, the bar is raised higher and higher until only a single athlete can jump over it. The world record is 2.45 m. Static analysis tools provide such a bar for the quality of your code. They investigate your code and look for potential bugs or code smells. That’s more than just compiling and running the tests; hence it’s a higher bar you have to jump over. It’s also one step closer to a realistic development and production environment. These tools are usually efficient and quick to use. Even if they’re not perfect and might report false positives, they can help you catch mistakes that don’t break your code but that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access