Skip to content

Commit

Permalink
Update trunk toolbox config to include additional direct config value…
Browse files Browse the repository at this point in the history
… - this better supports toolbox logging (#902)
  • Loading branch information
EliSchleifer authored Oct 31, 2024
1 parent 41ebde9 commit 21af79c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ lint:
# enabled linters inherited from github.com/trunk-io/configs plugin
- definition-checker
- [email protected]
- trunk-toolbox@0.4.1
- trunk-toolbox@0.5.0
disabled:
- pylint # pylint diagnostics are too strict
- semgrep
Expand Down
8 changes: 6 additions & 2 deletions linters/trunk-toolbox/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 0.1

downloads:
- name: trunk-toolbox
version: 0.4.1
version: 0.5.0
downloads:
- os:
linux: unknown-linux-gnu
Expand All @@ -17,13 +17,14 @@ tools:
- name: trunk-toolbox
download: trunk-toolbox
shims: [trunk-toolbox]
known_good_version: 0.4.1
known_good_version: 0.5.0
lint:
definitions:
- name: trunk-toolbox
description: Repository level linting tools
main_tool: trunk-toolbox
files: [ALL]
affects_cache: [toolbox.toml, log4rs.yaml]
commands:
- name: lint
version: ">=0.4.1"
Expand All @@ -33,7 +34,10 @@ lint:
output: sarif
batch: true
success_codes: [0]
disable_upstream: false
read_output_from: tmp_file
direct_configs: [toolbox.toml]
max_concurrency: 1
- name: lint
run: trunk-toolbox --upstream=${upstream-ref} --results=${tmpfile} ${target}
output: sarif
Expand Down

0 comments on commit 21af79c

Please sign in to comment.