Class: Scanny::Checks::Session::AccessToSessionCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/scanny/checks/session/access_to_session_check.rb

Instance Method Summary collapse

Methods inherited from Check

#compiled_pattern, #issue, #visit

Instance Method Details

#check(node) ⇒ Object



12
13
14
# File 'lib/scanny/checks/session/access_to_session_check.rb', line 12

def check(node)
  issue :info, warning_message
end

#patternObject



5
6
7
8
9
10
# File 'lib/scanny/checks/session/access_to_session_check.rb', line 5

def pattern
  [
      pattern_session_access,
      pattern_session_assignment
  ].join("|")
end

#strict?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/scanny/checks/session/access_to_session_check.rb', line 16

def strict?
  true
end