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

Class Method Details

.allObject



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

Returns:

  • (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 message(reference); end

#strict_mode_violation?(offense) ⇒ Boolean

Returns:

  • (Boolean)


55
# File 'lib/packwerk/checker.rb', line 55

def strict_mode_violation?(offense); end

#violation_typeObject



52
# File 'lib/packwerk/checker.rb', line 52

def violation_type; end