lib/reek/smell_detectors/base_detector.rb
Ruby dynamically resolves a constantRuby loads a relative source module
SHA-2565842fae909fee124d5b63d4f17dbec389bdf19d89817f5be2d72e0bd61bcceab
MaleculeH₂(DbOs)
Evidence
1# frozen_string_literal: true
2
3require 'set'
4require_relative '../smell_warning'
5require_relative '../smell_configuration'
6
⋯4 lines
14:23… ode-Smells.md}
15 # - {file:README.md}
16 # for details.
17 #
18 # :reek:UnusedPrivateMethod: { exclude: [ smell_warning ] }
19 # :reek:TooM …
20:10… BaseDetector
21 attr_reader :config
22 # The name of the config field that lists the names of code contexts
23 # that should not be checked. Add this field to the config for each
24 # smell that should ignore this code element.
25 EXCLUDE_ …
134:76… ance
135 #
136 def to_detector(detector_name)
137 SmellDetectors.const_get detector_name
138 end
139
140 #
141 # @return [Set<Symbol>] - all configuration keys that are available …