Sha256: 55e3516888aa787f0fb97647724ebff280b30a7da122204654c4de32154e3a3d

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module TaintedLove
  module Validator
    class WebpackerYaml < Base
      def remove?(warning)
        return unless warning.replacer == :ReplaceYAML

        file = warning.stack_trace.lines.first[:file]
        if file['/lib/webpacker/env.rb'] || file['/lib/webpacker/configuration.rb']
          return true
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tainted_love-0.4.1 lib/tainted_love/validator/webpacker_yaml.rb
tainted_love-0.4.0 lib/tainted_love/validator/webpacker_yaml.rb
tainted_love-0.1.5 lib/tainted_love/validator/webpacker_yaml.rb