<commit_before>unless Rails.env.production?
  require 'haml_lint/haml_visitor'
  require 'haml_lint/linter'
  require 'haml_lint/linter_registry'

  module HamlLint
    class Linter::InlineJavaScript < Linter
      include LinterRegistry

      def visit_filter(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)')
      end
    end
  end
end<commit_msg>Update inline_javascript.rb<commit_after>unless Rails.env.production?
  require 'haml_lint/haml_visitor'
  require 'haml_lint/linter'
  require 'haml_lint/linter_registry'

  module HamlLint
    class Linter::InlineJavaScript < Linter
      include LinterRegistry
      
      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)')
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0935390549662488, 'fraction_numerical': 0.0, 'mean_word_length': 3.6547085201793723, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '801006', 'n_tokens_mistral': 345, 'n_tokens_neox': 333, 'n_words': 62}