Sha256: b99a6959c300efc4846c057eebfc14696ba57204fb4fd01d89d0b4069d0b8a76
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
module RuboCop module Cop module Paraxial class CSRF < Base include RangeHelp MSG = "CSRF, action_dispatch.cookies_same_site_protection set to `nil` or `:none`." def on_send(node) return unless node.method_name == :cookies_same_site_protection= argument = node.arguments.first if !argument.respond_to?(:value) add_offense(node) elsif argument.value == :none add_offense(node) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paraxial-1.4.5 | lib/rubocop/cop/paraxial/csrf.rb |
paraxial-1.4.4 | lib/rubocop/cop/paraxial/csrf.rb |
paraxial-1.4.3 | lib/rubocop/cop/paraxial/csrf.rb |