Static code analysis helps you to identify potential software quality issues in the development stage before the software moves to production.
It can detect areas in your code that need re-factoring or simplification. It can detect programming errors or flaws and thereby reduce the number of issues detected during testing or execution. It can detect design issues and help you to improve the maintainability, re-usability, functionality, runtime behaviour, and portability of your program.
It can also improve the communication in your development team and help train developers to produce high-quality source code.