Sha256: 6c68e59f7668b486983bd0475bd2ed2c7b0c5899cf6443f6f6131fd16c0c3b83

Contents?: true

Size: 778 Bytes

Versions: 72

Compression:

Stored size: 778 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/validate_config"
require "cc/cli/version"

module CC
  module CLI
    def self.debug?
      ENV["CODECLIMATE_DEBUG"].present?
    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

72 entries across 72 versions & 2 rubygems

Version Path
codeclimate-0.96.0 lib/cc/cli.rb
codeclimate-0.95.0 lib/cc/cli.rb
codeclimate-0.94.1 lib/cc/cli.rb
codeclimate-0.94.0 lib/cc/cli.rb
codeclimate-0.93.0 lib/cc/cli.rb
codeclimate-0.92.1 lib/cc/cli.rb
codeclimate-0.92.0 lib/cc/cli.rb
codeclimate-0.91.0 lib/cc/cli.rb
codeclimate-0.90.0 lib/cc/cli.rb
codeclimate-0.89.0 lib/cc/cli.rb
codeclimate-0.88.0 lib/cc/cli.rb
codeclimate-0.87.5 lib/cc/cli.rb
codeclimate-0.87.4 lib/cc/cli.rb
codeclimate-0.87.3 lib/cc/cli.rb
codeclimate-0.87.2 lib/cc/cli.rb
codeclimate-0.87.1 lib/cc/cli.rb
codeclimate-0.87.0 lib/cc/cli.rb
codeclimate-0.86.0 lib/cc/cli.rb
codeclimate-0.85.29 lib/cc/cli.rb
codeclimate-0.85.28 lib/cc/cli.rb