class Reek::Report::ProgressFormatter::Dots
Shows the status of each source as either a dot (.) or an S
Constants
- NO_WARNINGS_COLOR
- WARNINGS_COLOR
Public Instance Methods
Source
# File lib/reek/report/progress_formatter.rb, line 38 def header "Inspecting #{sources_count} file(s):\n" end
Source
# File lib/reek/report/progress_formatter.rb, line 42 def progress(examiner) examiner.smelly? ? display_smelly : display_clean end
Private Instance Methods
Source
# File lib/reek/report/progress_formatter.rb, line 52 def display_clean Rainbow('.').color(NO_WARNINGS_COLOR) end
Source
# File lib/reek/report/progress_formatter.rb, line 56 def display_smelly Rainbow('S').color(WARNINGS_COLOR) end