Class: PDK::Validate::YAMLValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- PDK::Validate::YAMLValidator
- Defined in:
- lib/pdk/validate/yaml_validator.rb
Constant Summary
Constants inherited from BaseValidator
BaseValidator::ALLOW_EMPTY_TARGETS, BaseValidator::IGNORE_DOTFILES, BaseValidator::INVOKE_STYLE
Class Method Summary collapse
Methods inherited from BaseValidator
allow_empty_targets?, cmd_path, ignore_dotfiles?, ignore_pathspec, parse_options, parse_targets, process_invalid, process_skipped, spinner_text
Class Method Details
.invoke(report, options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pdk/validate/yaml_validator.rb', line 17 def self.invoke(report, = {}) exit_code = 0 validators.each do |validator| exit_code = validator.invoke(report, ) break if exit_code != 0 end exit_code end |
.name ⇒ Object
7 8 9 |
# File 'lib/pdk/validate/yaml_validator.rb', line 7 def self.name 'yaml' end |