Class: AdLint::Postfilter::PlatformHeaderSuppression

Inherits:
MessageSuppression show all
Defined in:
lib/adlint/postfilter/suppress.rb

Instance Method Summary collapse

Constructor Details

#initialize(project_root_dpath) ⇒ PlatformHeaderSuppression

Returns a new instance of PlatformHeaderSuppression.



54
55
56
# File 'lib/adlint/postfilter/suppress.rb', line 54

def initialize(project_root_dpath)
  @project_root_dpath = project_root_dpath.realpath
end

Instance Method Details

#_match_with?(message_line) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/adlint/postfilter/suppress.rb', line 58

def _match_with?(message_line)
  !message_line.fpath.to_s.start_with?(@project_root_dpath.to_s)
end