Class: Scanny::Checks::InformationLeakCheck

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

Instance Method Summary collapse

Methods inherited from Check

#compiled_pattern, #issue, #strict?, #visit

Instance Method Details

#check(node) ⇒ Object



11
12
13
# File 'lib/scanny/checks/information_leak_check.rb', line 11

def check(node)
  issue :medium, warning_message, :cwe => 200
end

#patternObject



4
5
6
7
8
9
# File 'lib/scanny/checks/information_leak_check.rb', line 4

def pattern
  [
    pattern_logger_filter,
    pattern_find
  ].join("|")
end