class ScrumLint::BoardValidator
Public Class Methods
call(board)
click to toggle source
# File lib/scrum_lint/board_validator.rb, line 4 def self.call(board) new.(board) end
Public Instance Methods
call(board)
click to toggle source
# 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
Private Instance Methods
expected_list_names(board)
click to toggle source
# File lib/scrum_lint/board_validator.rb, line 16 def expected_list_names(board) ScrumLint.config.project_list_names + ScrumLint.config.task_list_names + board.done_lists.map(&:name) + ScrumLint.config.ignored_list_names end