In this video I show how to add code analyzer to a Microsoft Dynamics 365 Business Central AL project and then activate them before dealing with all issues found:

Code Analyzers will help you write better code and make sure you avoid “stupid” bugs and common mistakes.
Find more information on code analyzers here.