Awesome Reviewers

Verification · Static analysis · Linting

Custom lint rules

Repository-specific rules written as plugins or pattern rules for mistakes that recur in review.

How to build it

  1. Pick a recurring review comment and write the pattern it describes as a rule.
  2. Write the rule as an ESLint plugin rule or a Semgrep pattern stored in the repository.
  3. Add a test file for the rule with a failing example and a passing example.

Signals in a repository

  • A local ESLint plugin directory or an eslint-plugin-* dependency with custom rules.
  • A .semgrep.yml file or .semgrep/ directory with rules and matching test fixtures.

In practice

117 repositories run a tool for this check in the scanned set.

  • eslint · 107 repos
  • semgrep · 15 repos

Examples