Defining a custom linter
You can define linters right in your.trunk/trunk.yaml file in your repo. These definitions have the same configurable parameters as in our public plugins repo or your own plugins repo.
Pass-Fail linter script example
For example, you can define a simple pass-fail linter that runs a custom script file. The linter passes or fails based on the status code returned.Inline grep command example
You can also define simple linters inline using tools likegrep. This linter will grep against your custom regex pattern, format the output using sed, and then parse the output into pattern groups using a regex output for Trunk Code Quality to report.