From dc2ff111b23bbf29cd59cb57f5d0030f8607b726 Mon Sep 17 00:00:00 2001 From: Alexandre Nicolaie Date: Sun, 4 Aug 2024 20:53:17 +0000 Subject: [PATCH] :wrench:(gh): Update & fix Trunk configuration 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 --- .trunk/configs/svgo.config.js | 14 ++++++++++++++ .trunk/trunk.yaml | 8 ++++++-- docs/assets/kubevault.svg | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .trunk/configs/svgo.config.js diff --git a/.trunk/configs/svgo.config.js b/.trunk/configs/svgo.config.js new file mode 100644 index 0000000..b257d13 --- /dev/null +++ b/.trunk/configs/svgo.config.js @@ -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, + }, + }, + }, + ], +}; diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 0b47091..6acbef7 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -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] diff --git a/docs/assets/kubevault.svg b/docs/assets/kubevault.svg index 86dfacd..4eb2fca 100644 --- a/docs/assets/kubevault.svg +++ b/docs/assets/kubevault.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file