From 1602ca9fa3a606d8a637979e0d4088efa866910c Mon Sep 17 00:00:00 2001 From: malatrax Date: Mon, 4 Nov 2024 22:04:17 +0100 Subject: [PATCH] ci: add trunk config to repo --- .trunk/.gitignore | 9 +++++++++ .trunk/configs/.rustfmt.toml | 4 ++++ .trunk/configs/.shellcheckrc | 7 +++++++ .trunk/configs/.yamllint.yaml | 7 +++++++ .trunk/trunk.yaml | 31 +++++++++++++++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 .trunk/.gitignore create mode 100644 .trunk/configs/.rustfmt.toml create mode 100644 .trunk/configs/.shellcheckrc create mode 100644 .trunk/configs/.yamllint.yaml create mode 100644 .trunk/trunk.yaml diff --git a/.trunk/.gitignore b/.trunk/.gitignore new file mode 100644 index 0000000..15966d0 --- /dev/null +++ b/.trunk/.gitignore @@ -0,0 +1,9 @@ +*out +*logs +*actions +*notifications +*tools +plugins +user_trunk.yaml +user.yaml +tmp diff --git a/.trunk/configs/.rustfmt.toml b/.trunk/configs/.rustfmt.toml new file mode 100644 index 0000000..994840e --- /dev/null +++ b/.trunk/configs/.rustfmt.toml @@ -0,0 +1,4 @@ +# See: https://rust-lang.github.io/rustfmt +normalize_comments = true +use_field_init_shorthand = true +edition = "2021" diff --git a/.trunk/configs/.shellcheckrc b/.trunk/configs/.shellcheckrc new file mode 100644 index 0000000..8c7b1ad --- /dev/null +++ b/.trunk/configs/.shellcheckrc @@ -0,0 +1,7 @@ +enable=all +source-path=SCRIPTDIR +disable=SC2154 + +# If you're having issues with shellcheck following source, disable the errors via: +# disable=SC1090 +# disable=SC1091 diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 0000000..184e251 --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -0,0 +1,7 @@ +rules: + quoted-strings: + required: only-when-needed + extra-allowed: ["{|}"] + key-duplicates: {} + octal-values: + forbid-implicit-octal: true diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml new file mode 100644 index 0000000..1d11126 --- /dev/null +++ b/.trunk/trunk.yaml @@ -0,0 +1,31 @@ +# This file controls the behavior of Trunk: https://docs.trunk.io/cli +# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml +version: 0.1 +cli: + version: 1.22.7 +plugins: + sources: + - id: trunk + ref: v1.6.4 + uri: https://github.com/trunk-io/plugins +actions: + disabled: + - trunk-announce + - trunk-check-pre-push + enabled: + - trunk-fmt-pre-commit + - trunk-upgrade-available +lint: + enabled: + - actionlint@1.7.3 + - checkov@3.2.277 + - git-diff-check + - markdownlint@0.42.0 + - osv-scanner@1.9.1 + - prettier@3.3.3 + - rustfmt@1.65.0 + - shellcheck@0.10.0 + - shfmt@3.6.0 + - taplo@0.9.3 + - trufflehog@3.83.2 + - yamllint@1.35.1