Sha256: a6f0af8f48746d3d772965096d7eb686a2dcdd92ebeb4d18c63194c084b50839
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module Slimembedcop # Collect RuboCop offenses from Template code. class OffenseCollector class << self def run(path, config, source, autocorrect) snippets(path, source).flat_map do |snippet| RubyOffenseCollector.run(path, config, snippet[:code], autocorrect).map do |offense| Offense.new(path, snippet[:offset], offense, source) end end end private def snippets(path, source) Extractor.run(path, source) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slimembedcop-0.1.0 | lib/slimembedcop/offense_collector.rb |