Skip to content

Commit

Permalink
feat: simplify YamlHasOctalValueRule rule
Browse files Browse the repository at this point in the history
Signed-off-by: Roald Nefs <[email protected]>
  • Loading branch information
roaldnefs committed Jan 3, 2024
1 parent f738ccd commit ee39608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saltlint/rules/YamlHasOctalValueRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class YamlHasOctalValueRule(Rule):
def match(self, file, line):
found = self.bracket_regex.search(line)
if found:
exc = self.exclude_regex.search(found.group(0))
if exc:
# Skip false positive result if the exclude_regex matches.
if self.exclude_regex.search(found.group(0)):
return None
return found

0 comments on commit ee39608

Please sign in to comment.