Class: Scanny::Checks::FileOpenCheck

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

Instance Method Summary collapse

Methods inherited from Check

#compiled_pattern, #issue, #visit

Instance Method Details

#check(node) ⇒ Object



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

def check(node)
  issue :info, warning_message
end

#patternObject



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

def pattern
  [
    pattern_file_open,
    pattern_fileutils
  ].join("|")
end

#strict?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/scanny/checks/file_open_check.rb', line 15

def strict?
  true
end