Sha256: 9fafa6610692964dd9371aa9e40c3c03183d0543b2e334a368619cb955183f46
Contents?: true
Size: 412 Bytes
Versions: 17
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true require 'set' module Reek module CLI # # Collects and sorts smells warnings. # class WarningCollector def initialize @warnings_set = Set.new end def found_smell(warning) warnings_set.add(warning) end def warnings warnings_set.sort end private attr_reader :warnings_set end end end
Version data entries
17 entries across 17 versions & 1 rubygems