Benign Download

lib/reek/smell_detectors/base_detector.rb

Ruby dynamically resolves a constantRuby loads a relative source module
SHA-2565842fae909fee124d5b63d4f17dbec389bdf19d89817f5be2d72e0bd61bcceab
MaleculeH₂(DbOs)

Evidence

Ruby loads a relative source module lines 1–10
1# frozen_string_literal: true
2
3require 'set'
4require_relative '../smell_warning'
5require_relative '../smell_configuration'
6
⋯4 lines
English function-word token "for" lines 14–19
14:23… ode-Smells.md}
15 # - {file:README.md}
16 # for details.
17 #
18 # :reek:UnusedPrivateMethod: { exclude: [ smell_warning ] }
19 # :reek:TooM …
English function-word token "the" lines 20–25
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_ …
Ruby dynamically resolves a constant lines 134–141
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 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.