With a variety of tools and best practices to contribute to the delivery of quality code, we are highlighting one of our preferred practices, static analysis. Dave explains what static analysis is and when you should be using it.

If you would like to learn more about software development testing best practices, please schedule a complementary consultation with one of our consultants.

Schedule a Free Consult


TRANSCRIPT
Static analysis is just the automatic examination of source code without actually executing the program.

So there’s a lot of good reasons why you might choose to use static analysis. One is that it can just generally improve your code quality. It’s able to find a lot of subtle issues in code that may not have consequences except for in very specific situations. And those kinds of things are typically difficult for humans to find.

Another great thing about static analysis is that it can identify security issues before they become a problem. Static analysis is useful throughout the lifecycle of a project, but it’s a very good idea to start it at the beginning of a project. A couple reasons are one, it can help you train your development team to write code that won’t cause violations so you’ll have less violations towards the end of the project than you would at the beginning.

Another reason is that it’s much easier to handle small numbers of violations than it is to throw static analysis on at the end of the project and have thousands and thousands of violations that you have to deal with.

While I did say that static analysis is a great tool for improving your code quality, it is not a replacement for multiple levels of testing. That’s unit testing all the way up through system level testing, because static analysis will not catch your logic errors that would cause features defects.

Overall, we recommend using a static analysis tool for your next project.


No Comment

You can post first response comment.

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter message.