diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-02-28 21:42:34 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-02-28 21:42:34 +0000 |
commit | 83b3e9fa40571c7475bc803b15e9b57ad2dc36b8 (patch) | |
tree | 99955341babe98c0fef3b02a93d9d992f4c42b5e | |
parent | 9d06504d4277ecf53e6f19014d060c6e7009dc0d (diff) | |
download | gitlab-ce-83b3e9fa40571c7475bc803b15e9b57ad2dc36b8.tar.gz |
Update inline_javascript.rb
-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)') |