class ERBLint::Utils::InlineConfigs
def self.disabled_rules(line)
def self.disabled_rules(line) line.match(/# erblint:disable (?<rules>.*) %>/)&.named_captures&.fetch("rules") end
def self.rule_disable_comment_for_lines?(rule, lines)
def self.rule_disable_comment_for_lines?(rule, lines) lines.match?(/# erblint:disable (?<rules>.*#{rule}).*/) end