-
Notifications
You must be signed in to change notification settings - Fork 3
/
.vintrc.yaml
61 lines (54 loc) · 1.84 KB
/
.vintrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# ============================================================================
# File : .vintrc
# Author: Faris Chugthai
# Description: Linter for vimscript. Written in python
# Last Modified: Aug 25, 2019
# ============================================================================
# Vint follows yaml formatting so no more " comments
cmdargs:
# Checking more strictly
severity: style_problem
# Enable coloring
color: true
env:
# Enable Neovim syntax
neovim: true
policies:
ProhibitImplicitScopeVariable:
enabled: true
ProhibitAbbreviationOption:
enabled: true
ProhibitSetNoCompatible:
enabled: false
# gonna set some newly discovered checks to true
ProhibitUnnecessaryDoubleQuote:
enabled: true
ProhibitEqualTildeOperator:
enabled: true
ProhibitNoAbortFunction:
enabled: true
ProhibitUnusedVariable:
enabled: false
ProhibitInvalidMapCall:
enabled: true
# fyi
# $: vint -V init.vim
# vint DEBUG: checking: `init.vim`
# vint DEBUG: severity: STYLE_PROBLEM
# vint DEBUG: enabled: ProhibitAbbreviationOption
# vint DEBUG: enabled: ProhibitAutocmdWithNoGroup
# vint DEBUG: enabled: ProhibitCommandRelyOnUser
# vint DEBUG: enabled: ProhibitCommandWithUnintendedSideEffect
# vint DEBUG: enabled: ProhibitEncodingOptionAfterScriptEncoding
# vint DEBUG: enabled: ProhibitEqualTildeOperator
# vint DEBUG: enabled: ProhibitImplicitScopeBuiltinVariable
# vint DEBUG: disabled: ProhibitImplicitScopeVariable
# vint DEBUG: enabled: ProhibitInvalidMapCall
# vint DEBUG: enabled: ProhibitMissingScriptEncoding
# vint DEBUG: enabled: ProhibitNoAbortFunction
# vint DEBUG: disabled: ProhibitSetNoCompatible
# vint DEBUG: enabled: ProhibitUnnecessaryDoubleQuote
# vint DEBUG: disabled: ProhibitUnusedVariable
# vint DEBUG: enabled: ProhibitUsingUndeclaredVariable
...