Sha256: 02bd00ae095e99c814ca8c558ade7c03f466f8ffb1e2fad94c9859c5adb6e588
Contents?: true
Size: 1.62 KB
Versions: 5
Compression:
Stored size: 1.62 KB
Contents
=begin Arachni Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni module Reports class HTML module PluginFormatters # # HTML formatter for the results of the Uniformity plugin. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class Uniformity < Arachni::Plugin::Formatter def run return ERB.new( tpl ).result( binding ) end def tpl %q{ <ul> <%@results['uniformals'].each_pair do |id, uniformal| %> <% issue = uniformal['issue'] %> <li> <%=issue['name']%> in <%=issue['elem']%> variable '<%=issue['var']%>' using <%=issue['method']%> at the following pages: <ul> <%@results['pages'][id].each_with_index do |url, i|%> <li> [<%=uniformal['indices'][i]%>] <a href="#issue_<%=uniformal['indices'][i]%>"><%=url%></a> </li> <%end%> </ul> </li> <%end%> </ul> } end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems