class RuboCop::Formatter::SimpleTextFormatter::Report
Public Instance Methods
summary()
click to toggle source
# File lib/rubocop/formatter/simple_text_formatter.rb, line 7 def summary if @correction_count.positive? "ζ*'ヮ')ζ<うっうー!#{@file_count}ファイルチェックしましたよー!\r\n" \ "#{offences_text}\r\n" \ "ζ*'ヮ')ζ<うっうー#{corrections}直しましたよー!" else "ζ*'ヮ')ζ<うっうー!#{@file_count}ファイルチェックしましたよー!\r\n#{offences_text}" end end
Private Instance Methods
corrections()
click to toggle source
# File lib/rubocop/formatter/simple_text_formatter.rb, line 34 def corrections text = "#{@correction_count}こ" color = @correction_count == @offense_count ? :green : :cyan colorize(text, color) end
offences_text()
click to toggle source
# File lib/rubocop/formatter/simple_text_formatter.rb, line 26 def offences_text if @offense_count.zero? "ζ*'ヮ')ζ<うっうー!怪しいところはありませんでしたー!" else "ζ*'ヮ')ζ<うっうー!#{offenses}怪しいですよー!" end end
offenses()
click to toggle source
# File lib/rubocop/formatter/simple_text_formatter.rb, line 19 def offenses text = "#{@offense_count}こ" color = :red colorize(text, color) end