-
Notifications
You must be signed in to change notification settings - Fork 40
/
plugin.yaml
46 lines (46 loc) · 1.27 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
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]
description: A dialect-flexible and configurable SQL linter
known_good_version: 1.4.5
direct_configs:
- .sqlfluff
affects_cache:
- pyproject.toml
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
version: ">=3.0.0"
run: sqlfluff fix ${target} --disable-progress-bar
output: rewrite
formatter: true
in_place: true
success_codes: [0, 1]
enabled: false
batch: true
- name: fix
run: sqlfluff fix ${target} --disable-progress-bar --force
output: rewrite
formatter: true
in_place: true
success_codes: [0, 1]
enabled: false
batch: true