Unit Command.Lint
Description
This unit contains procedures to configure and execute a command to lint the sources with the messages of the compiler: warnings, notes and hints, kept only for the sources of each member and not for the modules installed by boss, which are compiled with the project.
Each project is built with lazbuild -B, so every unit is compiled again and repeats its messages, into lib/lint, so the normal build is not touched.
Overview
Functions and Procedures
procedure LintCommand(ABuilder: ICommandBuilder); |
procedure Registry(ABuilder: ICommandBuilder); |
Description
Functions and Procedures
procedure LintCommand(ABuilder: ICommandBuilder); |
|
This command builds the project in the current folder and its test project, or at the root of a workspace every member and its test project, and outputs the messages of the compiler for their sources, as file:line:col links. The configuration in pasc.json says which messages are ignored and which ones fail; by default warnings fail. The exit code is 1 when there is a failing message or a project could not be built.
Parameters
|
procedure Registry(ABuilder: ICommandBuilder); |
|
Registry a lint command using the command builder from pascli.
Parameters
|
Generated by PasDoc 1.0.4.