Class: UsePackwerk::Private::PackwerkWrapper::OffensesAggregatorFormatter
- Inherits:
-
Object
- Object
- UsePackwerk::Private::PackwerkWrapper::OffensesAggregatorFormatter
- Extended by:
- T::Sig
- Includes:
- Packwerk::OffensesFormatter
- Defined in:
- lib/use_packwerk/private/packwerk_wrapper/offenses_aggregator_formatter.rb
Overview
This formatter simply collects offenses so we can feed them into other systems
Instance Attribute Summary collapse
-
#aggregated_offenses ⇒ Object
readonly
Returns the value of attribute aggregated_offenses.
Instance Method Summary collapse
-
#initialize ⇒ OffensesAggregatorFormatter
constructor
A new instance of OffensesAggregatorFormatter.
- #show_offenses(offenses) ⇒ Object
- #show_stale_violations(offense_collection, for_files) ⇒ Object
Constructor Details
#initialize ⇒ OffensesAggregatorFormatter
Returns a new instance of OffensesAggregatorFormatter.
17 18 19 |
# File 'lib/use_packwerk/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 17 def initialize @aggregated_offenses = T.let([], T::Array[Packwerk::ReferenceOffense]) end |
Instance Attribute Details
#aggregated_offenses ⇒ Object (readonly)
Returns the value of attribute aggregated_offenses.
14 15 16 |
# File 'lib/use_packwerk/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 14 def aggregated_offenses @aggregated_offenses end |
Instance Method Details
#show_offenses(offenses) ⇒ Object
22 23 24 25 |
# File 'lib/use_packwerk/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 22 def show_offenses(offenses) @aggregated_offenses = T.unsafe(offenses) '' end |
#show_stale_violations(offense_collection, for_files) ⇒ Object
28 29 30 |
# File 'lib/use_packwerk/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 28 def show_stale_violations(offense_collection, for_files) '' end |