module Zakuro::Operation::Validator
Validator
バリデーション
Public Class Methods
run(yaml_hash: {})
click to toggle source
:reek: TooManyStatements { max_statements: 7 }
# File lib/zakuro/operation/month/validator.rb, line 789 def self.run(yaml_hash: {}) failed = [] yaml_hash.each_with_index do |history, index| failed += MonthHistory.new(index: index, yaml_hash: history).validate failed += Annotation.new(index: index, yaml_hash: history).validate failed += Reference.new(index: index, yaml_hash: history).validate failed += Diffs.new(index: index, yaml_hash: history['diffs']).validate end failed end