-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds the `--error=kind` option (shorthand: `-Ekind`) to the `lean` CLI. When set, messages of `kind` (e.g., `linter.unusedVariables`) will be reported as errors. This setting does nothing in interactive contexts (e.g., the server). Closes #5194. The spelling `--error` was chosen instead of the common `-Werror` both for practical and behavioral reasons. Behaviorally, this option effects not just warnings, but informational messages as well. Practically, `-Werror` conflicts with the existing `-W` option for the worker and `lean` also does not currently use long single-hyphen option names.
- Loading branch information
Showing
3 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters