diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-03-01 00:42:34 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-03-01 00:42:34 +0300 |
commit | 83b3e9fa40571c7475bc803b15e9b57ad2dc36b8 (patch) | |
tree | 99955341babe98c0fef3b02a93d9d992f4c42b5e /lib/haml_lint | |
parent | 9d06504d4277ecf53e6f19014d060c6e7009dc0d (diff) |
Update inline_javascript.rb
Diffstat (limited to 'lib/haml_lint')
-rw-r--r-- | lib/haml_lint/inline_javascript.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/haml_lint/inline_javascript.rb b/lib/haml_lint/inline_javascript.rb index 872502bc8e3..ff447513fd1 100644 --- a/lib/haml_lint/inline_javascript.rb +++ b/lib/haml_lint/inline_javascript.rb @@ -6,8 +6,8 @@ unless Rails.env.production? module HamlLint class Linter::InlineJavaScript < Linter include LinterRegistry - - def visit_filter(node) + + def visit_tag(node) return unless node.tag_name == 'script' record_lint(node, 'Inline JavaScript is discouraged (https://docs.gitlab.com/ee/development/gotchas.html#do-not-use-inline-javascript-in-views)') |