Class: AdLint::Postfilter::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/postfilter/config.rb

Direct Known Subclasses

CmaConfig, SmaConfig

Instance Method Summary collapse

Constructor Details

#initialize(config_fpath, traits_fpath, strip_num) ⇒ Config

Returns a new instance of Config.



44
45
46
47
48
49
50
51
52
53
# File 'lib/adlint/postfilter/config.rb', line 44

def initialize(config_fpath, traits_fpath, strip_num)
  load_postfilter_config(config_fpath)
  load_adlint_traits(traits_fpath)

  @initial_header_suppression =
    create_adlint_initial_header_suppression
  @platform_header_suppression =
    create_platform_header_supression(strip_num)
  @project_wide_suppressions = create_project_wide_suppressions
end

Instance Method Details

#individual_suppression_control_enabled?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/adlint/postfilter/config.rb', line 55

def individual_suppression_control_enabled?
  @@config_yaml["message_traits"]["enable_individual_suppression_control"]
end

#msg_fpathObject



59
60
61
# File 'lib/adlint/postfilter/config.rb', line 59

def msg_fpath
  subclass_responsibility
end

#suppression_listObject



63
64
65
# File 'lib/adlint/postfilter/config.rb', line 63

def suppression_list
  subclass_responsibility
end