class ScrumLint::ContextChecker
Public Class Methods
call(board)
click to toggle source
# File lib/scrum_lint/checkers/context_checker.rb, line 5 def self.call(board) new.(board) end
Public Instance Methods
call(board)
click to toggle source
# File lib/scrum_lint/checkers/context_checker.rb, line 9 def call(board) board.task_lists.each do |list| cards = cards_without_context(list) if cards.any? puts "List #{list.name.green} has cards missing context:" cards.each { |card| puts "-> #{card.name.blue}" } end end end
Private Instance Methods
cards_without_context(list)
click to toggle source
# File lib/scrum_lint/checkers/context_checker.rb, line 21 def cards_without_context(list) list.cards.select { |card| !card.desc.match(/^Context:/) } end