Vint is a Vim script Language Lint. The goal to reach for vint is:
- Highly extensible lint
- Highly customizable lint
- High performance lint
But now, Vint is under development. We hope you develop a policy to help us.
You can install with pip.
$ pip install vim-vint
vint will read config files on the following priority order:
-
- e.g.
~/.vintrc.yaml
- e.g.
-
- e.g.
path/to/proj/.vintrc.yaml
- e.g.
-
- e.g.
$ vint --error,$ vint --max-violations 10
- e.g.
-
Comment config (highest priority):
- e.g.
" vint: -ProhibitAbbreviationOption +ProhibitSetNoCompatible
- e.g.
You can configure global vint config by ~/.vintrc.yaml as following:
cmdargs:
# Checking more strictly
severity: style_problem
# Enable coloring
color: true
policies:
# Disable a violation
ProhibitSomethingEvil:
enabled: false
# Enable a violation
ProhibitSomethingBad:
enabled: trueYou can configure project local vint config by .vintrc.yaml as following:
cmdargs:
# Checking more strictly
severity: style_problem
# Enable coloring
color: true
policies:
# Disable a violation
ProhibitSomethingEvil:
enabled: false
# Enable a violation
ProhibitSomethingBad:
enabled: trueYou can configure linting severity, max errors, ... as following:
$ vint --color --style ~/.vimrc
You can enable/disable linting policies by a comment as following:
" vint: -ProhibitAbbreviationOption
let s:save_cpo = &cpo
set cpo&vim
" vint: +ProhibitAbbreviationOption
" do something...
" vint: -ProhibitAbbreviationOption
let &cpo = s:save_cpo
unlet s:save_cpoThis syntax is: " vint: [+-]<PolicyName> [+-]<PolicyName> ...
