Files
godoxy-yusing/.trunk/trunk.yaml
yusing a9aabc0a20 chore(trunk): add linter configs and update versions
- Add .markdownlint.yaml with prettier-friendly config
- Add .yamllint.yaml with custom rules
- Enable yamllint and markdownlint in trunk.yaml
- Update Go runtime to 1.26.0
- Update linter versions (checkov, golangci-lint2, osv-scanner, trufflehog)
- Enable pre-push and pre-commit hooks
- Update .gitignore to track .trunk/configs directory
2026-02-15 17:31:36 +08:00

52 lines
1.2 KiB
YAML

# 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.25.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.7.4
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- node@22.16.0
- python@3.10.8
- go@1.26.0
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
disabled:
- bandit
- black
- isort
- ruff
enabled:
- yamllint@1.38.0
- markdownlint@0.47.0
- checkov@3.2.501
- golangci-lint2@2.9.0
- hadolint@2.14.0
- actionlint@1.7.10
- git-diff-check
- gofmt@1.20.4
- osv-scanner@2.3.3
- oxipng@10.1.0
- prettier@3.8.1
- shellcheck@0.11.0
- shfmt@3.6.0
- trufflehog@3.93.3
ignore:
- linters: [ALL]
paths:
- internal/api/v1/docs/**
actions:
disabled:
- trunk-announce
enabled:
- trunk-upgrade-available
- trunk-check-pre-push
- trunk-fmt-pre-commit