-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlint.yaml
86 lines (80 loc) · 1.79 KB
/
.gitlint.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# https://github.com/sk-/git-lint config
---
sh:
extensions:
- .sh
shellbang:
- /bin/sh
- /bin/bash
arguments:
- --format=gcc
command: shellcheck
filter: >-
{filename}:(?P<line>\d+):(?P<column>\d+):
(?P<severity>.+):
(?P<message>.+)
\[(?P<message_id>.+)\]
installation: "Install shellcheck"
# YAML
yaml:
extensions:
- .yaml
- .yml
command: yamllint
arguments:
- --format
- parsable
- --config-data
- relaxed
# Matches either:
# - syntax error, on any line
# - other error, on a modified line only
filter: >-
^{filename}:(?P<line>{lines}|\d+(?=:\d+:
\[error\] syntax error:)):(?P<column>\d+):
\[(?P<severity>\S+)\] (?P<message>.+)$
installation: Run pip install yamllint.
proselint:
extensions:
- .rst
- .md
- .txt
command: proselint
installation: "pip3 install --user proselint"
filter: >-
^{filename}:(?P<line>\d+):(?P<column>\d+)\:
(?P<message_id>\S+) (?P<message>.+)$
# Markdown
mdl:
extensions:
- .md
command: mdl
installation: gem install mdl
filter: >-
^{filename}:(?P<line>\d+):
(?P<message_id>\S+) (?P<message>.+)$
# Python
pylint:
extensions:
- .py
command: pylint-3
shellbang:
- /usr/bin/env python
- /usr/bin/env python2.7
- /usr/bin/env python3
- /usr/bin/python
- /usr/bin/python2
- /usr/bin/python2.7
- /usr/bin/python3
arguments:
- --rcfile={DEFAULT_CONFIGS}/pylintrc
- --output-format=text
- >-
--msg-template='{{abspath}}:{{line}}:{{column}}:
[{{category}}:{{symbol}}] {{obj}}: {{msg}}'
- --reports=n
filter: >-
^{filename}:(?P<line>{lines}):((?P<column>\d+):)?
\[(?P<severity>.+):(?P<message_id>\S+)\]\s+(:
)?(?P<message>.+)$
installation: "Run pip install pylint."