Sha256: 263d62374740e07b2d7f910dec994718c1b433f01874431f5c6ce34e607c04e6

Contents?: true

Size: 791 Bytes

Versions: 9

Compression:

Stored size: 791 Bytes

Contents

require "active_support"
require "active_support/core_ext"
require "yaml"
require "cc/analyzer"
require "cc/config"
require "cc/engine_registry"
require "cc/workspace"

require "cc/cli/analyze"
require "cc/cli/command"
require "cc/cli/console"
require "cc/cli/engines"
require "cc/cli/help"
require "cc/cli/output"
require "cc/cli/prepare"
require "cc/cli/runner"
require "cc/cli/test"
require "cc/cli/validate_config"
require "cc/cli/version"

module CC
  module CLI
    def self.debug?
      ENV["CODECLIMATE_DEBUG"]
    end

    def self.logger
      @logger ||= ::Logger.new(STDERR).tap do |logger|
        logger.level =
          if debug?
            ::Logger::DEBUG
          else
            ::Logger::ERROR
          end
      end
    end
  end

  Analyzer.logger = CLI.logger
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
codeclimate-0.71.1 lib/cc/cli.rb
codeclimate-0.71.0 lib/cc/cli.rb
codeclimate-0.70.6 lib/cc/cli.rb
codeclimate-0.70.5 lib/cc/cli.rb
codeclimate-0.70.4 lib/cc/cli.rb
codeclimate-0.70.3 lib/cc/cli.rb
codeclimate-0.70.2 lib/cc/cli.rb
codeclimate-0.70.1 lib/cc/cli.rb
codeclimate-0.70.0 lib/cc/cli.rb