The Gimpel PC-lint/MISRA plug-in provides a LINT and MISRA standard check on C source files created in MPLAB® X IDE. This plug-in has various settings which include PC-lint installation path, compiler configuration, command line argument, log file creation and selection of source files.
PC-lint will check your C/C++ source code and find bugs, glitches, inconsistencies, non-portable constructs, redundant code and much more using the K&R (Kernighan & Ritchie) and ANSI standards for C (style of coding). The purpose of linting your program is to determine potential problems prior to integration or porting or to reveal unusual constructs that may be a source of subtle errors. The C compiler cannot always detect each and every potential problem in your source files; this is where PC-lint comes in. PC-lint can be configured to suit your needs, it can either complain a lot or a little.
To check the source code, the plug-in will invoke the Gimpel PC-lint/MISRA executable file with the appropriate command line argument. The output of the Gimpel PC-lint/MISRA analysis will be redirected to the MPLAB X IDE output window. The output will contain the file name(s) and line number(s) in which linting found inconsistencies. Double clicking an output line will open the corresponding file at the line number in the MPLAB X IDE editor window.