Baseline & Suppressions
Hardpoint’s baseline system lets you suppress known-safe findings to reduce noise and focus on real issues.Configuration File
Create.hardpoint/baseline.yaml in your project or home directory:
Suppression Fields
| Field | Required | Description |
|---|---|---|
id | Yes | Finding ID to suppress (e.g., AI-001) |
reason | Yes | Why this finding is suppressed |
file | No | Glob pattern for specific files |
pattern | No | Regex to match in line content |
expires | No | Expiration date (ISO 8601) |
Matching Rules
By Finding ID Only
Suppresses all findings with this ID:By File Pattern
Only suppresses in matching files:*- Match any characters except/**- Match any characters including/?- Match single character
By Content Pattern
Only suppresses when line content matches:With Expiration
Temporary suppressions:Examples
Suppress Test Fixtures
Suppress Known-Safe Patterns
Suppress During Investigation
CLI Commands
Hardpoint provides CLI commands to manage baselines:Viewing Active Suppressions
When running with--verbose, Hardpoint shows suppression statistics:
Best Practices
- Always include a reason - Future you will thank present you
- Use specific patterns - Avoid overly broad suppressions
- Set expiration dates - For temporary suppressions
- Review periodically - Remove stale suppressions
- Keep in version control - Track changes to suppressions