Module: Packwerk::Checker Abstract
- Included in:
- ReferenceChecking::Checkers::DependencyChecker
- Defined in:
- lib/packwerk/checker.rb
Overview
This module is abstract.
Class Method Summary collapse
Instance Method Summary collapse
- #invalid_reference?(reference) ⇒ Boolean abstract
- #message(reference) ⇒ Object abstract
- #strict_mode_violation?(offense) ⇒ Boolean abstract
- #violation_type ⇒ Object abstract
Class Method Details
.all ⇒ Object
14 15 16 17 |
# File 'lib/packwerk/checker.rb', line 14 def all load_defaults checkers.map(&:new) #: as Array[Checker] end |
.find(violation_type) ⇒ Object
20 21 22 |
# File 'lib/packwerk/checker.rb', line 20 def find(violation_type) checker_by_violation_type(violation_type) end |
.included(base) ⇒ Object
9 10 11 |
# File 'lib/packwerk/checker.rb', line 9 def included(base) checkers << base end |
Instance Method Details
#invalid_reference?(reference) ⇒ Boolean
This method is abstract.
55 |
# File 'lib/packwerk/checker.rb', line 55 def invalid_reference?(reference) = raise NotImplementedError, "Abstract method called" |
#message(reference) ⇒ Object
This method is abstract.
59 |
# File 'lib/packwerk/checker.rb', line 59 def (reference) = raise NotImplementedError, "Abstract method called" |
#strict_mode_violation?(offense) ⇒ Boolean
This method is abstract.
51 |
# File 'lib/packwerk/checker.rb', line 51 def strict_mode_violation?(offense) = raise NotImplementedError, "Abstract method called" |
#violation_type ⇒ Object
This method is abstract.
47 |
# File 'lib/packwerk/checker.rb', line 47 def violation_type = raise NotImplementedError, "Abstract method called" |