Sha256: 597c4a3b035542b99bd92c467641977e675375b52d4585c331ebffed4bb11fcb

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module Rubocop
  module Cop
    # Cop that prevents the use of `without_reactive_cache`
    class WithoutReactiveCache < RuboCop::Cop::Base
      MSG = 'without_reactive_cache is for debugging purposes only. Please use with_reactive_cache.'

      def on_send(node)
        return unless node.children[1] == :without_reactive_cache

        add_offense(node.loc.selector)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-styles-11.0.0 lib/rubocop/cop/without_reactive_cache.rb
gitlab-styles-10.1.0 lib/rubocop/cop/without_reactive_cache.rb
gitlab-styles-10.0.0 lib/rubocop/cop/without_reactive_cache.rb
gitlab-styles-9.2.0 lib/rubocop/cop/without_reactive_cache.rb
gitlab-styles-9.1.0 lib/rubocop/cop/without_reactive_cache.rb
gitlab-styles-9.0.0 lib/rubocop/cop/without_reactive_cache.rb