Class: Canvas::Lint

Inherits:
Object
  • Object
show all
Defined in:
lib/canvas/lint.rb

Overview

:documented:

Instance Method Summary collapse

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/canvas/lint.rb', line 8

def run
  spin_group = CLI::UI::SpinGroup.new(auto_debrief: false)

  @failed_checks = {}

  checks = Checks.registered.map(&:new)
  checks.each do |check|
    run_check(check, spin_group)
  end

  spin_group.wait

  if @failed_checks.any?
    puts debrief_message
    exit 1
  end
end