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.85.27 lib/cc/cli.rb
codeclimate-0.85.26 lib/cc/cli.rb
codeclimate-0.85.25 lib/cc/cli.rb
codeclimate-0.85.24 lib/cc/cli.rb
codeclimate-fede-0.85.54 lib/cc/cli.rb
codeclimate-fede-0.85.53 lib/cc/cli.rb
codeclimate-fede-0.85.52 lib/cc/cli.rb
codeclimate-fede-0.85.51 lib/cc/cli.rb
codeclimate-fede-0.85.50 lib/cc/cli.rb
codeclimate-fede-0.85.49 lib/cc/cli.rb
codeclimate-fede-0.85.48 lib/cc/cli.rb
codeclimate-fede-0.85.47 lib/cc/cli.rb
codeclimate-fede-0.85.46 lib/cc/cli.rb
codeclimate-fede-0.85.45 lib/cc/cli.rb
codeclimate-fede-0.85.44 lib/cc/cli.rb
codeclimate-fede-0.85.43 lib/cc/cli.rb
codeclimate-fede-0.85.42 lib/cc/cli.rb
codeclimate-fede-0.85.41 lib/cc/cli.rb
codeclimate-fede-0.85.40 lib/cc/cli.rb
codeclimate-fede-0.85.39 lib/cc/cli.rb