Sha256: ca04368c7eb5fb7c7d4c271aeef7f6c1cc3e27be76013bc45bccc74169e545d8
Contents?: true
Size: 695 Bytes
Versions: 51
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true module CMSScanner module Finders # This class is designed to handle same type results, such as enumeration of plugins, # themes etc. class SameTypeFinders < BaseFinders # @param [ Hash ] opts # @option opts [ Symbol ] :mode :mixed, :passive or :aggressive # @option opts [ Boolean ] :sort Wether or not to sort the findings # # @return [ Findings ] def run(opts = {}) symbols_from_mode(opts[:mode]).each do |symbol| each do |finder| run_finder(finder, symbol, opts) end end findings.sort! if opts[:sort] filter_findings end end end end
Version data entries
51 entries across 51 versions & 3 rubygems