How do I configure the build settings to lint my project without plugin?

To your existing project add a managed make build configuration for PC-lint. The build configuration is set up to call a batch file. Select the project in the CodeWarrior Projects view, then select Project > Build Configurations > Manage from the IDE menu bar and create a new configuration using the New button:

Figure 1. Manage Configurations Dialog Box

Manage Configurations Dialog Box

Enter a name in the Name textbox for the new configuration, and copy the settings from the existing configuration.

Figure 2. Create New Configuration Dialog Box

Create New Configuration Dialog Box

To configure this new configuration to use the lint compiler, select Project > Properties > C/C++ Build > Builder Settings , disable Use default build command by clearing the checkbox and enter the following command in the Build command textbox:

  ${ProjDirPath}\lint\do_lint.bat "${ProjDirPath}" 
  "${MCUToolsBaseDir}"

  

Additionally, disable the Generate Makefiles automatically option by clearing the checkbox.

Figure 3. Builder Settings for PC-lint Batch File

Builder Settings for PC-lint Batch File

The CodeWarrior for MCU10.x uses parallel builds by default. This adds -j6 as option to the command line. In order to disable this, select the Enable project specific settings option in the Behaviour tab, also clear the Clean checkbox from the Workbench Build Behavior group:

Figure 4. Customizing Build Behaviour

Customizing Build Behaviour