Sha256: 3ce01cdf6ad72bf181db0c80667bfe7811d2a943b0d10f735b0d335d76c24a45
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
require 'private_attr/everywhere' require 'set' module Reek module CLI # # Collects and sorts smells warnings. # # @api private class WarningCollector def initialize @warnings_set = Set.new end def found_smell(warning) warnings_set.add(warning) end def warnings warnings_set.to_a.sort end private private_attr_reader :warnings_set end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-3.3.1 | lib/reek/cli/warning_collector.rb |
reek-3.3.0 | lib/reek/cli/warning_collector.rb |