Skip to content

naming/allowed-names

Reports allowed names that no source file uses.

Part of the naming configuration, at the all level. It runs at the commit stage, once for the repository. gspot runs this check itself.

An allowed name that nothing uses hides an obsolete exception.

Remove the record that matches nothing, or fix its name or path.

An allowed name that no source file contains reports an unmatched record. Remove the name, or correct it to the exact identifier and scope.

Turn it off for some files, with a reason:

gspot ignore naming/allowed-names --paths "<glob>" --reason "<why>"