Class: EagerEye::Detectors::PluckToArray
Constant Summary
collapse
- SMALL_COLLECTIONS =
%w[tags settings options categories roles permissions statuses types priorities].freeze
Concerns::NonArSourceDetector::NON_AR_RECEIVERS, Concerns::NonArSourceDetector::NON_DB_SOURCE_METHODS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
default_severity
Class Method Details
.detector_name ⇒ Object
12
13
14
|
# File 'lib/eager_eye/detectors/pluck_to_array.rb', line 12
def self.detector_name
:pluck_to_array
end
|
Instance Method Details
#detect(ast, file_path) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/eager_eye/detectors/pluck_to_array.rb', line 16
def detect(ast, file_path)
@issues = []
@file_path = file_path
reset_tracking_variables
return @issues unless ast
collect_all_info(ast)
check_ast(ast)
@issues
end
|