Antra
How it worksStar1Get Started
Star1
Antra
How it worksStar1Get Started
Star1
Documentation
  • Introduction
  • Installation
  • Quick start
  • Configuration basics
  • Monorepos
  • Trust boundaries
  • Findings and severity
  • Schema providers
  • Suppressions and baselines
  • antra init
  • antra scan
  • antra sync
  • antra doctor
  • antra baseline
  • antra trace
  • antra watch
  • antra fix
  • antra query
  • antra studio
  • Studio
  • Launching Studio
  • Reading the graph
  • Configuration reference
  • BG-001: Server-to-client leak
  • BG-002: Unvalidated input
  • BG-003: Opaque object pass
  • BG-004: Secret in markup
  • GitHub Actions
  • Introduction
  • Installation
  • Quick start
  • Configuration basics
  • Monorepos
  • Trust boundaries
  • Findings and severity
  • Schema providers
  • Suppressions and baselines
  • antra init
  • antra scan
  • antra sync
  • antra doctor
  • antra baseline
  • antra trace
  • antra watch
  • antra fix
  • antra query
  • antra studio
  • Studio
  • Launching Studio
  • Reading the graph
  • Configuration reference
  • BG-001: Server-to-client leak
  • BG-002: Unvalidated input
  • BG-003: Opaque object pass
  • BG-004: Secret in markup
  • GitHub Actions

antra baseline

Record current violations so only new leaks trigger warnings.

Adopting a linter on an existing codebase means the first scan finds everything at once. baseline records that first report so it stops being the thing you look at.

Usage

antra baseline [path]

path is the Next.js app root and defaults to ..

How it changes what you see

Run baseline once, on a commit you accept as your starting point. From then on, the violations captured in the baseline are known, and a scan surfaces the ones you have introduced since.

Flags

baseline takes no options beyond the optional path.

Caveat

A baseline is a snapshot, not a fix. The recorded violations are still in your code. They have simply stopped being reported, which is exactly the trade you are making: a clean report today in exchange for a backlog you intend to work down.

Previous
antra doctor
Next
antra trace
On this page
  • Usage
  • How it changes what you see
  • Flags
  • Caveat