diff --git a/.toolbox.log.swp b/.toolbox.log.swp new file mode 100644 index 000000000..20f3ae738 Binary files /dev/null and b/.toolbox.log.swp differ diff --git a/.trunk/config/log4rs.yaml b/.trunk/config/log4rs.yaml new file mode 100644 index 000000000..bf3a93b2a --- /dev/null +++ b/.trunk/config/log4rs.yaml @@ -0,0 +1,17 @@ +appenders: + stdout: + encoder: + pattern: "{d(%H:%M:%S)} | {({l}):5.5} | {f}:{L} | {m}{n}" + kind: console + + file: + kind: file + path: { REPLACE_THIS_WITH_PATH_WHERE_YOU_WANT_LOGFILE } + encoder: + pattern: "{d(%H:%M:%S)} | {({l}):5.5} | {f}:{L} | {m}{n}" + +root: + level: trace + appenders: + - stdout + - file diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index af5f3351f..1c6255e6a 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -43,7 +43,7 @@ lint: # enabled linters inherited from github.com/trunk-io/configs plugin - definition-checker - eslint@9.13.0 - - trunk-toolbox@0.4.1 + - trunk-toolbox@0.5.0 disabled: - pylint # pylint diagnostics are too strict - semgrep diff --git a/linters/trunk-toolbox/plugin.yaml b/linters/trunk-toolbox/plugin.yaml index 561c98a7d..9380e4e11 100644 --- a/linters/trunk-toolbox/plugin.yaml +++ b/linters/trunk-toolbox/plugin.yaml @@ -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 @@ -17,7 +17,7 @@ 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 @@ -33,7 +33,10 @@ lint: output: sarif batch: true success_codes: [0] + disable_upstream: false read_output_from: tmp_file + direct_configs: [toolbox.toml, log4rs.yaml] + max_concurrency: 1 - name: lint run: trunk-toolbox --upstream=${upstream-ref} --results=${tmpfile} ${target} output: sarif