INNER CODE UNIT · Ruby
audit_aggregate_across_files_and_render_results
stelligent/cfn_nag · lib/cfn-nag/cfn_nag.rb:29
def audit_aggregate_across_files_and_render_results(input_path:,
output_format: 'txt',
parameter_values_path: nil,
condition_values_path: nil,
template_pattern: DEFAULT_TEMPLATE_PATTERN)
aggregate_results = audit_aggregate_across_files input_path: input_path,
parameter_values_path: parameter_values_path,
condition_values_path: condition_values_path,
template_pattern: template_pattern
render_results(aggregate_results: aggregate_results,
output_format: output_format)
aggregate_results.inject(0) do |total_failure_count, results|
if @config.fail_on_warnings
total_failure_count + results[:file_results][:violations].length
else