bake Debug -p MyLibraryProject --lint
DefaultToolchain GCC {
...
LintPolicy "$(ProjectDir)/lint/misra.lnt"
LintPolicy "$(ProjectDir)/lint/suppressions.lnt"
}
bake Debug -p MyLibraryProject --lint --lint_max 50 (lints the first 51 files)
bake Debug -p MyLibraryProject --lint --lint_min 51 --lint_max 100 (lints the next 50 files)
bake Debug -p MyLibraryProject --lint --lint_min 101 (lints the rest of the files)
Lint in bake uses GCC includes to check system include stuff. Therefore it is required to have a working GCC installation.
But you don't have to use a config with GCC toolchain. Every other toolchain is also valid.