oct
Loading...
Searching...
No Matches
waivers.py File Reference

Go to the source code of this file.

Classes

class  waivers.WaiverOutcome

Namespaces

namespace  waivers

Functions

list[tuple[int, str]] waivers._comment_tokens (str text)
dict[int, dict] waivers.parse_inline_waivers (str text)
frozenset[str] waivers.inline_disabled_rules (str text)
list[tuple[int, str]] waivers.split_scanner_findings (str message)
WaiverOutcome waivers.apply_waivers (str message, dict[int, dict] waivers, str rule)

Variables

int waivers.WAIVER_LINE_SPAN = 2
 waivers.LINE_SCOPED_RULES = frozenset({"no_hardcoded_secrets"})
 waivers._WAIVER_RE
 waivers._FINDING_PREFIX_RE = re.compile(r'^L(?P<lineno>\d+):\s')
 waivers._WAIVER_MARKER_RE = re.compile(r'OCT-LINT', re.IGNORECASE)