Skip to content

Commit

Permalink
🔧(gh): Update & fix Trunk configuration
Browse files Browse the repository at this point in the history
I had some issues with trufflehog hanging forever, so I disable it.
Also, I updated clippy/rustfmt to rust 1.80.0 which should work properly
now.

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
  • Loading branch information
xunleii committed Aug 4, 2024
1 parent a67ac7e commit dc2ff11
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .trunk/configs/svgo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
plugins: [
{
name: "preset-default",
params: {
overrides: {
removeViewBox: false, // https://github.com/svg/svgo/issues/1128
sortAttrs: true,
removeOffCanvasPaths: true,
},
},
},
],
};
8 changes: 6 additions & 2 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ runtimes:
enabled:
- node@18.12.1
- python@3.10.8

# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
disabled:
- checkov
- trufflehog # hang unexpectedly and trivy is already enabled
- vale
enabled:
- actionlint@1.7.1
- clippy@1.80.0
- svgo@3.3.2
- git-diff-check
- hadolint@2.12.0
- markdownlint@0.41.0
- osv-scanner@1.8.2
- prettier@3.3.3
- rustfmt@1.65.0
- rustfmt@1.80.0
- taplo@0.9.3
- trivy@0.54.1
- trufflehog@3.80.5
- yamllint@1.35.1
ignore:
- linters: [ALL]
Expand Down
Loading

0 comments on commit dc2ff11

Please sign in to comment.