Sha256: 374ebee124133ce4988cccf808732fbd9b5253ef9e50b8b25827694a10064592
Contents?: true
Size: 330 Bytes
Versions: 78
Compression:
Stored size: 330 Bytes
Contents
module Standard class DetectsFixability def call(offenses) offenses.any? { |offense| cop = cop_instance(offense.cop_name) cop.correctable? && cop.safe_autocorrect? } end private def cop_instance(cop_name) RuboCop::Cop.const_get(cop_name.gsub("/", "::")).new end end end
Version data entries
78 entries across 78 versions & 3 rubygems