Sha256: fea37fdc589c281b02fc0eac0db7fd71cdb3478caf5cc87ef9b70ded40b4e397

Contents?: true

Size: 451 Bytes

Versions: 19

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require "rubocop"
require "rainbow"
require "rfix/log"

module Rfix::Ext
  module CommentConfig
    include Rfix::Log # TODO: Remove
    # Called by RuboCop on every line to see
    # if its suppose to run against it or not
    def cop_enabled_at_line?(_cop, line)
      Rfix.enabled?(processed_source.file_path, line) && super
    rescue StandardError
      say_abort "[Rfix::Enabled] #{$ERROR_INFO}"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rfix-1.4.1 lib/rfix/extensions/extensions.rb
rfix-1.4.0.pre.201 lib/rfix/extensions/extensions.rb
rfix-1.4.0 lib/rfix/extensions/extensions.rb
rfix-1.3.0.pre.199 lib/rfix/extensions/extensions.rb
rfix-1.2.6.pre.198 lib/rfix/extensions/extensions.rb
rfix-1.2.6 lib/rfix/extensions/extensions.rb
rfix-1.2.2.pre.174 lib/rfix/extensions/extensions.rb
rfix-1.2.5 lib/rfix/extensions/extensions.rb
rfix-1.2.4 lib/rfix/extensions/extensions.rb
rfix-1.2.3.pre lib/rfix/extensions/extensions.rb
rfix-1.2.2.pre lib/rfix/extensions/extensions.rb
rfix-1.2.2.pre.172 lib/rfix/extensions/extensions.rb
rfix-1.2.2 lib/rfix/extensions/extensions.rb
rfix-1.1.0.pre.150 lib/rfix/extensions/extensions.rb
rfix-1.2.0 lib/rfix/extensions/extensions.rb
rfix-1.1.4.pre lib/rfix/extensions/extensions.rb
rfix-1.1.1.pre lib/rfix/extensions/extensions.rb
rfix-1.1.0.pre.149 lib/rfix/extensions/extensions.rb
rfix-1.1.0.pre.147 lib/rfix/extensions/extensions.rb