Class: EagerEye::Detectors::PluckToArray
- Defined in:
- lib/eager_eye/detectors/pluck_to_array.rb
Constant Summary collapse
- SMALL_COLLECTIONS =
%w[tags settings options categories roles permissions statuses types priorities].freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Class Method Details
.detector_name ⇒ Object
8 9 10 |
# File 'lib/eager_eye/detectors/pluck_to_array.rb', line 8 def self.detector_name :pluck_to_array end |
Instance Method Details
#detect(ast, file_path) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/eager_eye/detectors/pluck_to_array.rb', line 12 def detect(ast, file_path) @issues = [] @file_path = file_path @pluck_variables = {} @map_id_variables = {} @critical_pluck_variables = {} @small_collection_variables = {} return @issues unless ast visit(ast) @issues end |