Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

What does a SAST tool do?

Choose one answer

Check yourself · 3 of 5

An agent commits a live API key in a test file. What must happen besides removing the line?

Choose one answer

Check yourself · 4 of 5

Why run lint in an agent hook instead of only in CI?

Choose one answer

Check yourself · 5 of 5

Which change is a guardrail bypass?

Choose one answer

Topics

  1. 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
  2. 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
  3. Dependency and secret scanning5 min read · Vulnerability scanners such as Dependabot and OSV-Scanner, SBOMs, and secret scanners like Gitleaks with push protection
  4. 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
  5. 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

Helps to know first

110 questions · last verified 2026-12