Class: Canvas::Lint
- Inherits:
-
Object
- Object
- Canvas::Lint
- Defined in:
- lib/canvas/lint.rb
Overview
:documented:
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
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 exit 1 end end |