Skip to content

Commit

Permalink
ci: add trunk config to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
zmalatrax committed Nov 4, 2024
1 parent 40ba800 commit 1602ca9
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tmp
4 changes: 4 additions & 0 deletions .trunk/configs/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See: https://rust-lang.github.io/rustfmt
normalize_comments = true
use_field_init_shorthand = true
edition = "2021"
7 changes: 7 additions & 0 deletions .trunk/configs/.shellcheckrc
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
31 changes: 31 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1602ca9

Please sign in to comment.