INNER CODE UNIT · Ruby
prune_fatal_violations
stelligent/cfn_nag · lib/cfn-nag/cfn_nag.rb:110
def prune_fatal_violations(violations)
violations.reject { |violation| violation.id == 'FATAL' }
end
def render_results(aggregate_results:,
output_format:)
results_renderer(output_format).new.render(aggregate_results, @config.custom_rule_loader.rule_definitions)
end
private
def mark_line_numbers_and_element_types(violations, cfn_model)
violations.each do |violation|
violation.logical_resource_ids.each do |logical_resource_id|
violation.line_numbers << cfn_model.line_numbers[logical_resource_id]
violation.element_types << cfn_model.element_types[logical_resource_id]
end
end