Sha256: 9b0fc3c40a76eb7def924212cc2fe8a71e9d2650a9db669a5635c6280d5b1479
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
module ScrumLint class BoardValidator def self.call(board) new.(board) end 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 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrum_lint-0.0.2 | lib/scrum_lint/board_validator.rb |
scrum_lint-0.0.1 | lib/scrum_lint/board_validator.rb |