codeclimate/codeclimate-rubocop

View on GitHub
bin/codeclimate-rubocop

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

$:.unshift(
  File.expand_path(File.join(File.dirname(__FILE__), "../lib"))
)

require 'cc/engine/rubocop'

engine_config =
  if File.exist?("/config.json")
    JSON.parse(File.read("/config.json"))
  else
    {}
  end

CC::Engine::Rubocop.new(Dir.pwd, engine_config, STDOUT).run