Class: AdLint::Postfilter::SmaConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PathUtil

cma_msg_fpath_of, i_fpath_of, sma_msg_fpath_of

Methods inherited from Config

#individual_suppression_control_enabled?

Constructor Details

#initialize(config_fpath, traits_fpath, src_fpath, strip_num, output_dpath = nil) ⇒ SmaConfig

Returns a new instance of SmaConfig.



137
138
139
140
141
142
143
144
# File 'lib/adlint/postfilter/config.rb', line 137

def initialize(config_fpath, traits_fpath,
               src_fpath, strip_num, output_dpath = nil)
  super(config_fpath, traits_fpath, strip_num)

  @msg_fpath = sma_msg_fpath_of(src_fpath, strip_num, output_dpath)
  @suppression_list =
    create_suppression_list(src_fpath, strip_num, output_dpath)
end

Instance Attribute Details

#line_wise_suppressionsObject (readonly)

Returns the value of attribute line_wise_suppressions.



149
150
151
# File 'lib/adlint/postfilter/config.rb', line 149

def line_wise_suppressions
  @line_wise_suppressions
end

#msg_fpathObject (readonly)

Returns the value of attribute msg_fpath.



146
147
148
# File 'lib/adlint/postfilter/config.rb', line 146

def msg_fpath
  @msg_fpath
end

#suppression_listObject (readonly)

Returns the value of attribute suppression_list.



147
148
149
# File 'lib/adlint/postfilter/config.rb', line 147

def suppression_list
  @suppression_list
end

#tunit_wide_suppressionsObject (readonly)

Returns the value of attribute tunit_wide_suppressions.



148
149
150
# File 'lib/adlint/postfilter/config.rb', line 148

def tunit_wide_suppressions
  @tunit_wide_suppressions
end