We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd112a commit 974b552Copy full SHA for 974b552
lib/erblint-github/linters/custom_helpers.rb
@@ -60,12 +60,6 @@ def counter_correct?(processed_source)
60
end
61
62
63
- # Map possible values from condition
64
- def basic_conditional_code_check(code)
65
- conditional_match = code.match(/["'](.+)["']\sif|unless\s.+/) || code.match(/.+\s?\s["'](.+)["']\s:\s["'](.+)["']/)
66
- [conditional_match[1], conditional_match[2]].compact if conditional_match
67
- end
68
-
69
def tags(processed_source)
70
processed_source.parser.nodes_with_type(:tag).map { |tag_node| BetterHtml::Tree::Tag.from_node(tag_node) }
71
0 commit comments