class TaintedLove::Validator::WebpackerYaml

Public Instance Methods

remove?(warning) click to toggle source
# File lib/tainted_love/validator/webpacker_yaml.rb, line 6
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