Sha256: 1c56d98331e34889251830f12fcc1399b9b3d2a877fde5ed93ce5ef224d97534
Contents?: true
Size: 1.14 KB
Versions: 7
Compression:
Stored size: 1.14 KB
Contents
=begin Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end class Arachni::Reporters::Stdout # Stdout formatter for the results of the HealthMap plugin # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::HealthMap < Arachni::Plugin::Formatter def run print_info 'Legend:' print_ok 'No issues' print_bad 'Has issues' print_line results['map'].sort_by { |_, v| v }.each do |i| state = i.keys[0] url = i.values[0] if state == 'with_issues' print_bad( url ) else print_ok( url ) end end print_line print_info "Total: #{results['total']}" print_ok "Without issues: #{results['without_issues']}" print_bad "With issues: #{results['with_issues']} ( #{results['issue_percentage'].to_s}% )" end end end
Version data entries
7 entries across 7 versions & 1 rubygems