Class: ScrumLint::BoardValidator
- Inherits:
-
Object
- Object
- ScrumLint::BoardValidator
- Defined in:
- lib/scrum_lint/board_validator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(board) ⇒ Object
4 5 6 |
# File 'lib/scrum_lint/board_validator.rb', line 4 def self.call(board) new.(board) end |
Instance Method Details
#call(board) ⇒ Object
8 9 10 11 12 |
# File 'lib/scrum_lint/board_validator.rb', line 8 def call(board) fail "no task lists found!" unless board.task_lists.any? extra_list_names = board.lists.map(&:name) - expected_list_names(board) warn "extra lists found: #{extra_list_names}" if extra_list_names.any? end |