Sha256: 6d8685c59acfc51bf75345cab2f2e8d1efdf3d25fba6c3a93906987fe7c1bd8c

Contents?: true

Size: 769 Bytes

Versions: 16

Compression:

Stored size: 769 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"]
    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

16 entries across 16 versions & 1 rubygems

Version Path
codeclimate-0.85.0 lib/cc/cli.rb
codeclimate-0.84.0 lib/cc/cli.rb
codeclimate-0.83.0 lib/cc/cli.rb
codeclimate-0.82.0 lib/cc/cli.rb
codeclimate-0.81.0 lib/cc/cli.rb
codeclimate-0.80.0 lib/cc/cli.rb
codeclimate-0.79.0 lib/cc/cli.rb
codeclimate-0.78.1 lib/cc/cli.rb
codeclimate-0.78.0 lib/cc/cli.rb
codeclimate-0.77.0 lib/cc/cli.rb
codeclimate-0.76.0 lib/cc/cli.rb
codeclimate-0.75.0 lib/cc/cli.rb
codeclimate-0.74.0 lib/cc/cli.rb
codeclimate-0.73.0 lib/cc/cli.rb
codeclimate-0.72.0 lib/cc/cli.rb
codeclimate-0.71.2 lib/cc/cli.rb