-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathlinter_sample_plugin.yaml
54 lines (53 loc) · 1.61 KB
/
linter_sample_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 can be either runtime package-based or download-based. Modify this boilerplate
# to fit your use case.
# Fill out this part if the linter/tool is download-based - otherwise delete
downloads:
- name: NAME_HERE
# executable: true
# DOWNLOAD_URL_INFO_HERE
downloads:
- os:
linux: linux
macos: darwin
windows: windows
cpu:
x86_64: amd64
arm_64: arm64
url: https://URL_HERE/${version}/${os}-${cpu}-NAME_HERE
# Fill out this part if the linter is tool-based (most common case) - otherwise delete
tools:
definitions:
- name: NAME_HERE
# RUNTIME_OR_DOWNLOAD_INFO_HERE
# runtime: RUNTIME_HERE
# package: NAME_HERE
# -- OR --
# download: NAME_HERE
known_good_version: VERSION_HERE
shims: [NAME_HERE]
health_checks:
- command: NAME_HERE --version
parse_regex: ${semver}
lint:
definitions:
- name: NAME_HERE
files: [FILE_TYPES_HERE]
# TOOL_OR_RUNTIME_OR_DOWNLOAD_INFO_HERE
# tools: [NAME_HERE]
# -- OR --
# runtime: RUNTIME_HERE
# package: NAME_HERE
# -- OR --
# download: NAME_HERE
known_good_version: VERSION_HERE
suggest_if: never
commands:
# https://docs.trunk.io/check/configuration/custom-linters/commands/definition
- name: LINT_OR_FORMAT_HERE
# https://docs.trunk.io/check/configuration/custom-linters/commands/output-types
output: OUTPUT_TYPE_HERE
run: COMMAND_HERE
success_codes: [0]
# formatter: true
# in_place: true