lib/icarus/mod/cli/validate.rb in Icarus-Mod-Tools-1.8.1 vs lib/icarus/mod/cli/validate.rb in Icarus-Mod-Tools-1.8.2

- old
+ new

@@ -23,10 +23,11 @@ validator = Icarus::Mod::Tools::Validator.new(type) puts "Validating Entries..." if verbose? max_length = validator.array.map { |info| info.uniq_name.length }.max + 1 + # rubocop:disable Lint/FormatParameterMismatch validator.array.each do |info| print Paint[format("%s %-#{max_length}s", "Running validation steps on", info.uniq_name), :cyan, :bright] if verbose > 1 info.valid? @@ -44,9 +45,10 @@ puts Paint["WARNING", :yellow, :bright] if info.warnings.any? && verbose > 1 puts info.warnings.map { |warning| Paint["#{warning} in #{info.uniq_name}", :yellow] }.join("\n") puts "\n" if verbose > 1 end + # rubocop:enable Lint/FormatParameterMismatch exit exit_code end end end