Linters, types and SAST as guardrails
For engineers
Running linters, type checkers, SAST, dependency and secret scanners on every agent change, and stopping agents from switching them off
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Why turn on strict type checking before an agent edits your code?
Check yourself · 2 of 5
What does a SAST tool do?
Check yourself · 3 of 5
An agent commits a live API key in a test file. What must happen besides removing the line?
Check yourself · 4 of 5
Why run lint in an agent hook instead of only in CI?
Check yourself · 5 of 5
Which change is a guardrail bypass?
Topics
- Linters and type checkers as fast feedback4 min read · Strict types, lint rules and formatters that catch agent mistakes in seconds, with errors the agent can read and fix
- Static security scanning with SAST tools5 min read · Semgrep, CodeQL and similar: what their rules catch, false positives, and custom rules for your codebase's risky patterns
- Dependency and secret scanning5 min read · Vulnerability scanners such as Dependabot and OSV-Scanner, SBOMs, and secret scanners like Gitleaks with push protection
- Wiring checks into the agent loop5 min read · Agent hooks, pre-commit and CI gates that feed check output back so the agent fixes its own errors before review
- When agents switch off the guardrails5 min read · Suppression comments, `any` casts, `--no-verify`, lowered thresholds and edited CI config, and rules that forbid them
Start here
- ESLint documentation (opens in a new tab)DocsFree
Rule configuration, severity levels and inline disable comments.
- TSConfig reference (opens in a new tab)DocsFree
Every compiler option, including the strict family that agents often loosen.
- Semgrep documentation (opens in a new tab)DocsFree
How rules match code patterns, how to triage findings and how to write custom rules.
Helps to know first
110 questions · last verified 2026-12