Setup & Installation
Last updated
Last updated
Trunk Code Quality is easy to adopt for new and legacy projects alike. You can run Trunk Code Quality using your existing linter configurations, incrementally address existing problems, and prevent new issues from being committed to your repo.
You can start using Code Quality in your repos in 4 steps.
Step 1: Initialize Trunk
Initialize Trunk in your repo to generate Trunk config files and get linter recommendations based on your project's files.
Step 2: Check for issues
Check for existing issues in your project. You can address problems up front, use hold-the-line to fix them incrementally, and configure ignores for irrelevant issues.
Step 3: Prevent New Issues
Set up automated runs on commits, before pushes, and on PRs to prevent new issues from appearing in your repo.
Step 4: Nightly Reports
Code Standards evolve, and new vulnerabilities are discovered daily. Run regular Code Quality checks to discover issues in your repo.