Sha256: 5d29b9b126514525c947ebd4c7be61d56fbad9ef663dff456d9928194c290c45

Contents?: true

Size: 899 Bytes

Versions: 26

Compression:

Stored size: 899 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module RuboCop
  module Packs
    module Private
      class Configuration
        extend T::Sig

        sig { returns(T::Array[String]) }
        attr_accessor :permitted_pack_level_cops

        sig { returns(T::Array[String]) }
        attr_accessor :required_pack_level_cops

        sig { returns(T::Array[String]) }
        attr_accessor :globally_permitted_namespaces

        sig { void }
        def initialize
          @permitted_pack_level_cops = T.let([], T::Array[String])
          @globally_permitted_namespaces = T.let([], T::Array[String])
          @required_pack_level_cops = T.let([], T::Array[String])
        end

        sig { void }
        def bust_cache!
          @permitted_pack_level_cops = []
          @globally_permitted_namespaces = []
          @required_pack_level_cops = []
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rubocop-packs-0.0.19 lib/rubocop/packs/private/configuration.rb
rubocop-packs-0.0.18 lib/rubocop/packs/private/configuration.rb
rubocop-packs-0.0.17 lib/rubocop/packs/private/configuration.rb
rubocop-packs-0.0.16 lib/rubocop/packs/private/configuration.rb
rubocop-packs-0.0.15 lib/rubocop/packs/private/configuration.rb
rubocop-packs-0.0.14 lib/rubocop/packs/private/configuration.rb