Sha256: e8dc1195c82ecfeb152d1acc3192e67f6c8c4ce611d95c90626672bea6660683
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true module TaintedLove module Validator class HamlEval < Base CALLS = [ ['haml/attribute_compiler.rb', 'static_build'], ['haml/parser.rb', 'parse_static_hash'], ['haml/util.rb', 'block in unescape_interpolation'] ] def remove?(warning) return unless warning.replacer == :ReplaceKernel line = warning.stack_trace_line return unless line[:file]['gems/haml'] CALLS.any? do |file, method| line[:method] == method && line[:file][file] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tainted_love-0.4.1 | lib/tainted_love/validator/haml_eval.rb |
tainted_love-0.4.0 | lib/tainted_love/validator/haml_eval.rb |