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 d660334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yamllint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ 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"]:
disabled.disable_by_force(problem)
if conf.rules[problem.rule].get('disable_after_first_occurence', False):
disabled.disable_by_force(problem.rule)
yield problem

disabled_for_line = disabled_for_next_line
Expand Down

0 comments on commit d660334

Please sign in to comment.