Class: PDK::Validate::MetadataValidator

Inherits:
BaseValidator show all
Defined in:
lib/pdk/validate/metadata_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



18
19
20
21
22
23
24
25
26
27
# File 'lib/pdk/validate/metadata_validator.rb', line 18

def self.invoke(report, options = {})
  exit_code = 0

  .each do |validator|
    exit_code = validator.invoke(report, options)
    break if exit_code != 0
  end

  exit_code
end

.metadata_validatorsObject



14
15
16
# File 'lib/pdk/validate/metadata_validator.rb', line 14

def self.
  [MetadataSyntax, MetadataJSONLint]
end

.nameObject



10
11
12
# File 'lib/pdk/validate/metadata_validator.rb', line 10

def self.name
  'metadata'
end