Commit 83b3e9fa authored by Winnie Hellmann's avatar Winnie Hellmann

Update inline_javascript.rb

parent 9d06504d
......@@ -7,7 +7,7 @@ unless Rails.env.production?
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)')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment