Quick Start Guide
Get up and running with LegacyLint in minutes.
1. Install
Download the native CLI for your OS. No .NET SDK required.
$ curl -fL -H "X-LegacyLint-Key: $LEGACYLINT_API_KEY" -o legacylint.zip https://api.legacylint.com/api/downloads/cli/linux-x64
$ unzip legacylint.zip && chmod +x legacylint
Optionally, run a scan to verify installation. Your project's API key (shown when you create a project) authorizes the scanner.
$ ./legacylint scan path/to/source --api-key $LEGACYLINT_API_KEY
2. Scan a project
Point the scanner at a source directory. Delphi, Free Pascal and VB6 files are picked up together.
3. Baseline
Record your starting point so new regressions can be measured. This prevents getting burdened by existing issues: record the baseline once, then gate later scans against it.
$ ./legacylint scan ./src --api-key $LEGACYLINT_API_KEY --write-baseline legacylint-baseline.json
$ ./legacylint scan ./src --api-key $LEGACYLINT_API_KEY --baseline legacylint-baseline.json --fail-on error
4. Enforce budgets in CI
Run LegacyLint as part of your CI pipeline. Require new issues to be fixed by enforcing budgets.
Need help?