Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rabel committed Nov 6, 2024
1 parent 57cd735 commit 8eb67c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yamllint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def process_comment(self, comment):
for problem in cache:
if not (disabled_for_line.is_disabled_by_directive(problem) or
disabled.is_disabled_by_directive(problem)):
if conf.rules[problem.rule]["disable_after_first_occurence"]:
if conf.rules[problem.rule].get('disable_after_first_occurence', False):
disabled.disable_by_force(problem)
yield problem

Expand Down

0 comments on commit 8eb67c9

Please sign in to comment.