Sha256: 9b26cf32a6c1a685a1d97084df920f51eb8838fadfb2d8ab716417be64e4a1fe

Contents?: true

Size: 781 Bytes

Versions: 7

Compression:

Stored size: 781 Bytes

Contents

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

require "cc/cli/analyze"
require "cc/cli/command"
require "cc/cli/console"
require "cc/cli/engines"
require "cc/cli/help"
require "cc/cli/init"
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.debug(message, values = {})
      if debug?
        if values.any?
          message << " "
          message << values.map { |k, v| "#{k}=#{v.inspect}" }.join(" ")
        end

        $stderr.puts("[DEBUG] #{message}")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codeclimate-0.59.0 lib/cc/cli.rb
codeclimate-0.58.0 lib/cc/cli.rb
codeclimate-0.57.0 lib/cc/cli.rb
codeclimate-0.56.0 lib/cc/cli.rb
codeclimate-0.55.0 lib/cc/cli.rb
codeclimate-0.54.0 lib/cc/cli.rb
codeclimate-0.53.0 lib/cc/cli.rb