Sha256: 4f82a0aa2321af910e3355663421c39243a25ab48537bbc72f12556c7c1fcab8

Contents?: true

Size: 770 Bytes

Versions: 4

Compression:

Stored size: 770 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# https://gist.github.com/skanev/9d4bec97d5a6825eaaf6

require "rfix/version"
require "rfix/log"
require "rfix/extensions/extensions"
require "rfix/extensions/offense"
require "rfix/rfix"

module Rfix
  module Ext; end
  extend self
end

RuboCop::Options.prepend(Rfix::Ext::Options)
RuboCop::Runner.prepend(Rfix::Ext::Runner)
RuboCop::CommentConfig.prepend(Rfix::Ext::CommentConfig)
RuboCop::Cop::Offense.prepend(Rfix::Ext::Offense)

# TODO: Handle cases where color can't be resolved by CLI::UI
RuboCop::Formatter::SimpleTextFormatter::COLOR_FOR_SEVERITY.each do |severity, color|
  id = RuboCop::Cop::Severity::CODE_TABLE.invert.fetch(severity)
  CLI::UI::Glyph.new(id.to_s, 0x25cf, CLI::UI.resolve_color(color))
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rfix-1.0.7.pre.68 lib/rfix.rb
rfix-1.0.7.pre.67 lib/rfix.rb
rfix-1.0.7.pre.66 lib/rfix.rb
rfix-1.0.7.pre.65 lib/rfix.rb