Configuration
/your_repo
├── .trunk
│ └── trunk.yaml
└── src
├── bar
└── fooConfig format
version: 0.1 # the version of this config file.
cli:
version: 0.15.1 # the version of trunk you will run in your repository
runtimes:
enabled:
- ruby@>=2.7.1
- [email protected]
repo:
# main is the branch that everyone's work is merged into
# (this is usually inferred and not required to be set)
trunk_branch: main
lint:
definitions:
- name: my_custom_linter
files: [ALL]
commands:
output: sarif
run: ${workspace}/bin/foo --file ${target}
read_output_from: stdout
run_linter_from: workspace
success_codes: [0, 1]
enabled:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
disabled:
- rufo
- tflint
ignore:
- linters: [ALL]
paths:
# Generated files
- a/proto/code_pb*
# Test data
- b/test_data/**
- linters: [eslint]
paths:
- c/run.ts
triggers:
- linters:
- ansible-lint
paths:
- ansible # A directory
targets:
- ansible # A directoryversion
versioncli
clirepo
repoapi
apitrunk_remote_hint
trunk_remote_hintStacked PR support
Disable upgrade notifications
Overriding defaults
Validation
Known limitations
Last updated

