Class: AdLint::Postfilter::Config
- Inherits:
-
Object
- Object
- AdLint::Postfilter::Config
- Defined in:
- lib/adlint/postfilter/config.rb
Instance Method Summary collapse
- #individual_suppression_control_enabled? ⇒ Boolean
-
#initialize(config_fpath, traits_fpath, strip_num) ⇒ Config
constructor
A new instance of Config.
- #msg_fpath ⇒ Object
- #suppression_list ⇒ Object
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
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_fpath ⇒ Object
59 60 61 |
# File 'lib/adlint/postfilter/config.rb', line 59 def msg_fpath subclass_responsibility end |
#suppression_list ⇒ Object
63 64 65 |
# File 'lib/adlint/postfilter/config.rb', line 63 def suppression_list subclass_responsibility end |