You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add_offense(processed_source.to_source_range(first_offense.source_range),"#{rule_name}: If you must, add <%# erblint:counter#{rule_name}#{offenses_count}%> to bypass this check.","<%# erblint:counter#{rule_name}#{offenses_count} %>")
37
+
add_offense(processed_source.to_source_range(first_offense.source_range),"#{rule_name}: If you must, add <%# erblint:disable#{rule_name} %> at the end of the offending line to bypass this check. See https://github.com/shopify/erb-lint#disable-rule-at-offense-level","<%# erblint:disable#{rule_name} %>")
56
38
else
57
39
clear_offenses
58
-
add_offense(processed_source.to_source_range(comment_node.loc),"Incorrect erblint:counter number for #{rule_name}. Expected: #{expected_count}, actual: #{offenses_count}.","<%# erblint:counter #{rule_name}#{offenses_count} %>")ifexpected_count != offenses_count
40
+
add_offense(processed_source.to_source_range(comment_node.loc),"Incorrect erblint:counter number for #{rule_name}. Expected: #{expected_count}, actual: #{offenses_count}.","<%# erblint:counter #{rule_name}Counter#{offenses_count} %>")ifexpected_count != offenses_count
assert_match(/If you must, add <%# erblint:counter GitHub::Accessibility::AvoidBothDisabledAndAriaDisabled 7 %> to bypass this check/,@linter.offenses.last.message)
47
+
assert_match(/If you must, add <%# erblint:disable GitHub::Accessibility::AvoidBothDisabledAndAriaDisabled %> at the end of the offending line to bypass this check./,@linter.offenses.last.message)
0 commit comments