forked from trunk-io/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
33 lines (33 loc) · 894 Bytes
/
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
version: 0.1
tools:
definitions:
- name: sqlfluff
runtime: python
package: sqlfluff
shims: [sqlfluff]
known_good_version: 1.4.5
lint:
definitions:
- name: sqlfluff
files: [sql, sql-j2, dml, ddl]
tools: [sqlfluff]
known_good_version: 1.4.5
direct_configs:
- .sqlfluff
suggest_if: config_present
commands:
- name: lint
run: sqlfluff lint ${target} --format json --nofail
output: sarif
success_codes: [0]
read_output_from: stdout
parser:
runtime: python
run: python3 ${plugin}/linters/sqlfluff/sqlfluff_to_sarif.py
- name: fix
run: sqlfluff fix ${target} --disable-progress-bar --force
output: rewrite
formatter: true
in_place: true
success_codes: [0]
enabled: false