Skip to content

Ignore findings

gspot ignore javascript/eslint --rule no-console --paths "scripts/**" --reason "Scripts print their results to the terminal."

Every ignore needs a reason. Leave out --rule to ignore the whole check, and add --paths to select files.

Add --until YYYY-MM-DD for an ignore that ends at 00:00 UTC on that date. After that date, the record stays in gspot.toml for review.

To ignore a dependency advisory, give its ID as the rule:

gspot ignore dependencies/osv-scanner --rule <advisory ID> --reason "..."

To remove the ignore:

gspot unignore javascript/eslint --rule no-console --paths "scripts/**"

gspot check --verbose prints each ignore in effect, its reason, and the number of findings it matched.

To change a limit, see limits. Use an ignore only when you can state why the check does not fit that code.