This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ignore MISRA checks for driverlib files



Currently we have MISRA checks enabled in Code Composer Studio 10.2.0.00009 with compiler TI v20.2.2.LTS. Many of the driverlib files fail MISRA-C:2004 checks. How can we only run the MISRA checks on our source code folder (no included library/driverlib files)? If this is not possible, would it be possible to create a filter in the Problems tab to filter out the 2,000+ warnings that we have and only show source file warnings. For example, we have many warnings that say ".ccsproject" under the Resource column, and anything that doesn't say ".ccsproject" is a source file. Is there a way to filter out any warnings that have ".ccsproject" in the Resource column? Not sure if this is the best idea but it's the best I can thing of. Preferably we wouldn't need to use #pragma statements surrounding every single source file as we have many of them. It is my understanding MISRA checks will be going away in the latest compilers and driverlib files aren't MISRA compliant but these checks would certainly still be useful for development. Thanks!