Class: Scanny::Checks::FileOpenCheck
- Inherits:
-
Check
- Object
- Check
- Scanny::Checks::FileOpenCheck
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
|
#pattern ⇒ Object
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
15
16
17
|
# File 'lib/scanny/checks/file_open_check.rb', line 15
def strict?
true
end
|