module CC::CLI

Public Class Methods

debug?() click to toggle source
# File lib/cc/cli.rb, line 22
def self.debug?
  ENV["CODECLIMATE_DEBUG"].present?
end
logger() click to toggle source
# File lib/cc/cli.rb, line 26
def self.logger
  @logger ||= ::Logger.new(STDERR).tap do |logger|
    logger.level =
      if debug?
        ::Logger::DEBUG
      else
        ::Logger::ERROR
      end
  end
end