Class: AdLint::Postfilter::CmaConfig

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, strip_num, output_dpath, sma_configs) ⇒ CmaConfig

Returns a new instance of CmaConfig.



226
227
228
229
230
231
232
233
# File 'lib/adlint/postfilter/config.rb', line 226

def initialize(config_fpath, traits_fpath,
               strip_num, output_dpath, sma_configs)
  super(config_fpath, traits_fpath, strip_num)

  project_name = adlint_traits.of_project.project_name
  @msg_fpath = cma_msg_fpath_of(project_name, output_dpath)
  @suppression_list = create_suppression_list(sma_configs)
end

Instance Attribute Details

#msg_fpathObject (readonly)

Returns the value of attribute msg_fpath.



235
236
237
# File 'lib/adlint/postfilter/config.rb', line 235

def msg_fpath
  @msg_fpath
end

#suppression_listObject (readonly)

Returns the value of attribute suppression_list.



236
237
238
# File 'lib/adlint/postfilter/config.rb', line 236

def suppression_list
  @suppression_list
end