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.40.3 lib/cc/cli.rb
codeclimate-0.40.2 lib/cc/cli.rb
codeclimate-0.40.1 lib/cc/cli.rb
codeclimate-0.40.0 lib/cc/cli.rb
codeclimate-0.39.0 lib/cc/cli.rb
codeclimate-0.38.1 lib/cc/cli.rb
codeclimate-0.38.0 lib/cc/cli.rb
codeclimate-0.37.0 lib/cc/cli.rb
codeclimate-0.36.0 lib/cc/cli.rb
codeclimate-0.35.2 lib/cc/cli.rb
codeclimate-0.35.1 lib/cc/cli.rb
codeclimate-0.35.0 lib/cc/cli.rb
codeclimate-0.34.1 lib/cc/cli.rb
codeclimate-0.34.0 lib/cc/cli.rb
codeclimate-0.33.0 lib/cc/cli.rb
codeclimate-0.32.1 lib/cc/cli.rb
codeclimate-0.32.0 lib/cc/cli.rb
codeclimate-0.32.0.rc1 lib/cc/cli.rb
codeclimate-0.31.1 lib/cc/cli.rb
codeclimate-0.31.0 lib/cc/cli.rb