Class: TaintedLove::Validator::WebpackerYaml
- Defined in:
- lib/tainted_love/validator/webpacker_yaml.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#remove?(warning) ⇒ Boolean
6 7 8 9 10 11 12 13 |
# 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 |