Class: Scanny::Checks::TempFileOpenCheck
- Inherits:
-
Check
- Object
- Check
- Scanny::Checks::TempFileOpenCheck
show all
- Defined in:
- lib/scanny/checks/temp_file_open_check.rb
Instance Method Summary
collapse
Methods inherited from Check
#compiled_pattern, #issue, #strict?, #visit
Instance Method Details
#check(node) ⇒ Object
12
13
14
|
# File 'lib/scanny/checks/temp_file_open_check.rb', line 12
def check(node)
issue :medium, warning_message, :cwe => 377
end
|
#pattern ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/scanny/checks/temp_file_open_check.rb', line 4
def pattern
[
pattern_temp,
pattern_file_open,
pattern_mkdir_p
].join("|")
end
|