trunk.yaml
Configuration trunk, a powerful linter runner. Documentation: https://docs.trunk.io
| Type | object |
|---|---|
| File match |
trunk.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/trunk-yaml/latest.json |
| Source | https://static.trunk.io/pub/trunk-yaml-schema.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object
The last linter you'll ever need
Properties
version
enum
required
The trunk config version being parsed. The only possible value is 0.1.
actions
object
4 nested properties
definitions
object[]
disabled
string | number | boolean[]
enabled
string | object[]
output_level
string
api
object
2 nested properties
address
string | number | boolean
org
string | number | boolean
cli
object
5 nested properties
check_for_upgrades
boolean
options
object[]
sha256
object
6 nested properties
darwin_arm64
string | number | boolean
darwin_x86_64
string | number | boolean
linux_arm64
string | number | boolean
linux_x86_64
string | number | boolean
mingw_x86_64
string | number | boolean
windows_x86_64
string | number | boolean
shell_hooks
object
2 nested properties
enforce
boolean
path_add
string | number | boolean[]
version
string | number | boolean
daemon
object
4 nested properties
check_for_upgrades
boolean
idle_timeout
string | number | boolean
log_level
string
monitor_repository
boolean
downloads
object[]
environments
object[]
lint
object
23 nested properties
bazel
object
3 nested properties
all_targets_query
string | number | boolean
compiler_override_paths
object[]
paths
object
2 nested properties
system
string | number | boolean[]
workspace
string | number | boolean[]
comment_formats
object[]
compile_commands
string
compile_commands_roots
string | number | boolean[]
default_max_file_size
integer
definitions
object[]
disabled
string | number | boolean[]
do_not_recommend_linters
string | number | boolean[]
downloads
object[]
enabled
string | object[]
environments
object[]
exported_configs
object[]
extra_compilation_flags
string | number | boolean[]
files
object[]
hold_the_line_mode
string
ignore
object[]
landing_mode
object[]
linters
object[]
runtimes
object[]
shared_configs
object[]
skip_missing_compile_command
boolean
threshold
object[]
triggers
object[]
merge
object
3 nested properties
required_statuses
string | number | boolean[]
service
string
statuses
string | number | boolean[]
notifications
object
1 nested properties
sleep
Record<string, object>
plugin_url
string | number | boolean
plugins
object
1 nested properties
sources
object[]
repo
object
6 nested properties
git
object
3 nested properties
allowed_user_email_domains
string | number | boolean[]
branch_name_format
string | number | boolean
new_files_warning_threshold_kb
integer
repo
object
3 nested properties
host
string | number | boolean
name
string | number | boolean
owner
string | number | boolean
trunk_branch
string | number | boolean
trunk_primary_remote
string | number | boolean
trunk_remote_hint
string | number | boolean
use_branch_upstream
boolean
required_trunk_version
string | number | boolean
runtimes
object
2 nested properties
definitions
object[]
enabled
string[]
telemetry
string
tools
object
6 nested properties
auto_sync
boolean
definitions
object[]
disabled
string | number | boolean[]
downloads
object[]
enabled
string | object[]
runtimes
string[]
Definitions
filetype_list
string[]
List of filetypes To refer to all filetypes, use [ALL]
linter_list
string[]
List of linter IDs To refer to all linters, use [ALL]
template_string
string
String where "${key1} ${key2}" will be expanded into "value1 value2"