Sha256: 14465074c3a350705e0647c6e66a475af8a2173346899eb8fe693418a3349a87

Contents?: true

Size: 879 Bytes

Versions: 33

Compression:

Stored size: 879 Bytes

Contents

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

module CC
  module CLI
    autoload :Analyze, "cc/cli/analyze"
    autoload :Command, "cc/cli/command"
    autoload :Console, "cc/cli/console"
    autoload :Engines, "cc/cli/engines"
    autoload :Help, "cc/cli/help"
    autoload :Init, "cc/cli/init"
    autoload :Runner, "cc/cli/runner"
    autoload :Test, "cc/cli/test"
    autoload :ValidateConfig, "cc/cli/validate_config"
    autoload :Version, "cc/cli/version"

    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

33 entries across 33 versions & 1 rubygems

Version Path
codeclimate-0.30.1 lib/cc/cli.rb
codeclimate-0.30.0 lib/cc/cli.rb
codeclimate-0.29.0 lib/cc/cli.rb
codeclimate-0.28.0 lib/cc/cli.rb
codeclimate-0.27.2 lib/cc/cli.rb
codeclimate-0.27.1 lib/cc/cli.rb
codeclimate-0.27.0 lib/cc/cli.rb
codeclimate-0.27.0.rc1 lib/cc/cli.rb
codeclimate-0.26.0 lib/cc/cli.rb
codeclimate-0.25.1 lib/cc/cli.rb
codeclimate-0.25.0 lib/cc/cli.rb
codeclimate-0.24.3 lib/cc/cli.rb
codeclimate-0.24.2 lib/cc/cli.rb