class Codeowners::Reporter
This class is responsible for print the reports
Constants
- LABELS
Public Class Methods
print(*args)
click to toggle source
# File lib/codeowners/reporter.rb, line 27 def print(*args) puts(*args) end
print_delimiter_line(error_type)
click to toggle source
# File lib/codeowners/reporter.rb, line 14 def print_delimiter_line(error_type) raise ArgumentError, "unknown error type '#{error_type}'" unless LABELS.key?(error_type) print('-' * 30, LABELS[error_type], '-' * 30) end
print_error(error_type, inconsistencies, meta)
click to toggle source
# File lib/codeowners/reporter.rb, line 20 def print_error(error_type, inconsistencies, meta) case error_type when :invalid_owner then print("#{inconsistencies} MISSING: #{meta.join(', ')}") else print(inconsistencies.to_s) end end