Should static analysis warnings fail the CI build?
        Posted  
        
            by Cara
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Cara
        
        
        
        Published on 2010-03-08T10:53:17Z
        Indexed on 
            2010/03/08
            11:21 UTC
        
        
        Read the original article
        Hit count: 861
        
static-analysis
|continuous-integration
Our team is investigating various options for static analysis in our project, and have mixed opinions about whether we want our Continuous Integration build to fail because of warnings from static analysis.
The argument against failing the build is that there are often exceptions to the rules, and attempting to work around them just to make the build succeed reduces productivity. A better approach would be to generate reports with the build, and regularly dedicate developer time to addressing the reported issues.
The counter-argument is that it is easy for the technical debt to build up if the bugs are not addressed immediately. Also, if the build fails when a potential bug is introduced, the amount of time required to fix it is reduced.
What are your thoughts?
© Stack Overflow or respective owner