Module: CodeOwnership::Validator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



24
25
26
# File 'lib/code_ownership/validator.rb', line 24

def all
  (@validators || []).map(&:new)
end

.included(base) ⇒ Object



17
18
19
20
21
# File 'lib/code_ownership/validator.rb', line 17

def included(base)
  @validators ||= T.let(@validators, T.nilable(T::Array[T::Class[Validator]]))
  @validators ||= []
  @validators << base
end

Instance Method Details

#validation_errors(files:, autocorrect: true, stage_changes: true) ⇒ Object



11
# File 'lib/code_ownership/validator.rb', line 11

def validation_errors(files:, autocorrect: true, stage_changes: true); end