Class: Packs::Private::PackwerkWrapper::OffensesAggregatorFormatter
- Inherits:
-
Object
- Object
- Packs::Private::PackwerkWrapper::OffensesAggregatorFormatter
- Extended by:
- T::Sig
- Includes:
- Packwerk::OffensesFormatter
- Defined in:
- lib/packs/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
- #identifier ⇒ Object
-
#initialize ⇒ OffensesAggregatorFormatter
constructor
A new instance of OffensesAggregatorFormatter.
- #show_offenses(offenses) ⇒ Object
- #show_stale_violations(offense_collection, for_files) ⇒ Object
- #show_strict_mode_violations(strict_mode_violations) ⇒ Object
Constructor Details
#initialize ⇒ OffensesAggregatorFormatter
Returns a new instance of OffensesAggregatorFormatter.
17 18 19 |
# File 'lib/packs/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/packs/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 14 def aggregated_offenses @aggregated_offenses end |
Instance Method Details
#identifier ⇒ Object
38 39 40 |
# File 'lib/packs/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 38 def identifier 'offenses_aggregator' end |
#show_offenses(offenses) ⇒ Object
22 23 24 25 |
# File 'lib/packs/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/packs/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 28 def show_stale_violations(offense_collection, for_files) '' end |
#show_strict_mode_violations(strict_mode_violations) ⇒ Object
33 34 35 |
# File 'lib/packs/private/packwerk_wrapper/offenses_aggregator_formatter.rb', line 33 def show_strict_mode_violations(strict_mode_violations) '' end |