Sha256: dee54979ccbb98da835a8d332cf9d18118edfd731d87474a8e337fe0d0b4c241
Contents?: true
Size: 720 Bytes
Versions: 9
Compression:
Stored size: 720 Bytes
Contents
require 'pdk' require 'pdk/cli/exec' require 'pdk/validate/base_validator' require 'pdk/validate/metadata/metadata_json_lint' require 'pdk/validate/metadata/metadata_syntax' require 'pdk/validate/metadata/task_metadata_lint' module PDK module Validate class MetadataValidator < BaseValidator def self.name 'metadata' end def self.metadata_validators [MetadataSyntax, MetadataJSONLint, TaskMetadataLint] end def self.invoke(report, options = {}) exit_code = 0 metadata_validators.each do |validator| exit_code = validator.invoke(report, options) break if exit_code != 0 end exit_code end end end end
Version data entries
9 entries across 9 versions & 1 rubygems