Module: CodeOwnership::Validator
- Extended by:
- T::Helpers, T::Sig
- Included in:
- Private::OwnershipMappers::TeamGlobs, Private::Validations::FilesHaveOwners, Private::Validations::FilesHaveUniqueOwners, Private::Validations::GithubCodeownersUpToDate
- Defined in:
- lib/code_ownership/validator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all ⇒ Object
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 |