devops.cpp.forbidden_spellings

File-based rule flagging forbidden spellings, like a reverse dictionary.

Configured via [cpp.forbidden_spellings] as word = "replacement" pairs. Matching is a plain, case-sensitive text search (whole words by default, or also inside longer words per spelling) on every line (comments and strings included), so it deliberately lives outside the AST framework.

Classes

CheckForbiddenSpellings(spellings)

Rule flagging whole-word occurrences of configured forbidden spellings.

class devops.cpp.forbidden_spellings.CheckForbiddenSpellings(spellings)[source]

Bases: Rule

Rule flagging whole-word occurrences of configured forbidden spellings.

Parameters:

spellings (dict[str, ForbiddenSpelling])