Class: Scanny::Checks::SystemTools::SudoCheck

Inherits:
Check
  • Object
show all
Includes:
Helpers
Defined in:
lib/scanny/checks/system_tools/sudo_check.rb

Instance Method Summary collapse

Methods included from Helpers

#build_pattern_exec_command

Methods inherited from Check

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

Instance Method Details

#check(node) ⇒ Object



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

def check(node)
  issue :info, warning_message
end

#patternObject



7
8
9
# File 'lib/scanny/checks/system_tools/sudo_check.rb', line 7

def pattern
  build_pattern_exec_command('sudo')
end