-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
54 lines (54 loc) · 1.71 KB
/
plugin.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
version: 0.1
tools:
definitions:
- name: markdownlint
extra_packages: [markdownlint-rule-search-replace]
lint:
definitions:
- name: markdownlint
commands:
- name: lint
run: markdownlint ${target} --json -r markdownlint-rule-search-replace
- name: codespell
direct_configs:
- .codespellrc
- todo_dict.txt
- name: vale
direct_configs:
- .vale.ini
- styles/base/todo.yml
- name: semgrep
commands:
- name: check
# Add our custom rules
run:
semgrep --config=auto --config=.semgrep.yaml --sarif --output=${tmpfile}
--include=${target}
- name: todo-grep-wrapped
description: Uses grep to look for TODOs
files: [ALL]
commands:
- name: lint
run: bash ${cwd}/todo_grep.sh ${target}
output: regex
parse_regex: "((?P<path>.*):(?P<line>-?\\d+):(?P<col>-?\\d+): \\[(?P<severity>.*)\\] (?P<message>.*) \\((?P<code>.*)\\))"
success_codes: [0, 1]
- name: todo-grep-linter
description: Uses grep to look for TODOs
files: [ALL]
commands:
- name: lint
run: bash -c "grep -o -E 'TODO[\W]' --line-number --with-filename ${target}"
success_codes: [0, 1]
parser:
run: 'sed -E "s/([^:]*):([0-9]+):(.*)/\1:\2:0: [error] Found \3 in line (TODO)/"'
output: regex
parse_regex: "((?P<path>.*):(?P<line>-?\\d+):(?P<col>-?\\d+): \\[(?P<severity>.*)\\] (?P<message>.*) \\((?P<code>.*)\\))"
exported_configs:
- configs:
- cspell.yaml
- .codespellrc
- todo_dict.txt
- .vale.ini
- styles/base/todo.yml
- .semgrep.yaml