Module: Packwerk::Checker
- Extended by:
- T::Helpers, T::Sig
- Included in:
- ReferenceChecking::Checkers::DependencyChecker
- Defined in:
- lib/packwerk/checker.rb
Class Method Summary collapse
Instance Method Summary collapse
- #invalid_reference?(reference) ⇒ Boolean
- #message(reference) ⇒ Object
- #strict_mode_violation?(offense) ⇒ Boolean
- #violation_type ⇒ Object
Class Method Details
.all ⇒ Object
20 21 22 23 |
# File 'lib/packwerk/checker.rb', line 20 def all load_defaults T.cast(checkers.map(&:new), T::Array[Checker]) end |
.find(violation_type) ⇒ Object
26 27 28 |
# File 'lib/packwerk/checker.rb', line 26 def find(violation_type) checker_by_violation_type(violation_type) end |
.included(base) ⇒ Object
15 16 17 |
# File 'lib/packwerk/checker.rb', line 15 def included(base) checkers << base end |
Instance Method Details
#invalid_reference?(reference) ⇒ Boolean
58 |
# File 'lib/packwerk/checker.rb', line 58 def invalid_reference?(reference); end |
#message(reference) ⇒ Object
61 |
# File 'lib/packwerk/checker.rb', line 61 def (reference); end |
#strict_mode_violation?(offense) ⇒ Boolean
55 |
# File 'lib/packwerk/checker.rb', line 55 def strict_mode_violation?(offense); end |
#violation_type ⇒ Object
52 |
# File 'lib/packwerk/checker.rb', line 52 def violation_type; end |