Plugin repositories can also export their own linter config files to keep configuration synced across an organization. Simply add anDocumentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
exported_configs section to a plugin.yaml, with paths to all of the config files you want to export, relative to the repository root. For example:
affects_cacheor direct_configs to reference. These files are automatically symlinked into the repository root during linter execution. The set of applicable config files can be viewed in the details yaml file listed when running trunk check --verbose.
Plugin-exported configs are sourced in lockstep with the plugin itself, so you will need to updatethe
ref field to use the latest configs.
Note that if you’re using an IDE Extension like clangd with an LSP that relies on those configs being in the root, you will need to manually create a symlink to the plugin’s config. You can do this by running ln -s .trunk/plugins/<plugin-id>/<path-to-config> <name-of-config>.
For an example of a plugin repo with config files, see our own configs repo.
Importing configs
This process can also be reversed to import config files from a plugins repository whichdoes not explicitly export them. Given a plugin sourced with id
trunk, the sourcing repository canachieve the same effect by including the following in its
.trunk/trunk.yaml.