-
Notifications
You must be signed in to change notification settings - Fork 33
Config
Kuniwak edited this page Jul 5, 2016
·
5 revisions
-
YAML:
policies: PolicyFoo: enabled: true PolicyBar: enabled: no
See Vint linting policy summary.
-
error: Report only errors -
warning: Report errors and warnings -
style_problem: Report errors, warnings and style problems -
CLI:
-
-e,--error -
-w,--warning -
-s,--style-problem
-
-
YAML:
-
cmdargs.severitycmdargs: severity: style_problem
-
Default: warning
-
CLI:
--enable-neovim
-
YAML:
cmdargs: env: neovim: true
Default: false
Limit max number of violations.
- CLI:
-m MAX_VIOLATIONS--max-violations MAX_VIOLATIONS
- YAML:
-
cmdargs.error-limitcmdargs: error-limit: 10
-
Default: 50
Change human-readable output format.
-
CLI:
-f FORMAT--format FORMAT
-
YAML:
-
cmdargs.formatcmdargs: format: '{file_path}:{line_number}:{column_number}: {description}'
-
Default: '{file_path}:{line_number}:{column_number}: {description} (see {reference})'
Available variables:
file_pathfile_nameline_numbercolumn_numberseveritydescriptionpolicy_namereference
Print statistic like: Total violations: 20.
- CLI:
--stat
- YAML:
-
cmdargs.statcmdargs: stat: true
-
Default: false
Colorize human-readable output.
- CLI:
-c--color--no-color
- YAML:
-
cmdargs.colorcmdargs: color: true
-
Default: false
Print JSON instead of the human-readable output.
- CLI:
-j--json
- YAML:
-
cmdargs.jsoncmdargs: json: true
-
Default: false