Sha256: 839f7ef8369f726f96443ef10a81731abd27352a5618db498e8369d9b151bcf2

Contents?: true

Size: 333 Bytes

Versions: 17

Compression:

Stored size: 333 Bytes

Contents

module RuboCop
  module Cop
    module Betterment
      class Raw < Cop
        MSG = 'Using raw creates the potential for XSS attacks.'

        def on_send(node)
          _receiver, method_name = *node
          return unless method_name == :raw
          add_offense(node, :selector, MSG)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
test_track_rails_client-2.0.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-1.3.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-1.2.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-1.1.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-1.0.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.20 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.19 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.18 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.17 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.16 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.15 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.14 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.13 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.12 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.11 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.10 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb
test_track_rails_client-0.9.9 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb