Sha256: 934f5f5b69bb91f84f5530eca4672152cc44c8dd5468db97ad2fb97e4246b6ae

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

# typed: strict

module RuboCop
  module Packs
    module Private
      class Offense < T::Struct
        extend T::Sig

        const :cop_name, String
        const :filepath, String

        sig { returns(ParsePackwerk::Package) }
        def pack
          ParsePackwerk.package_from_path(filepath)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubocop-packs-0.0.32 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.31 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.30 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.29 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.28 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.27 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.26 lib/rubocop/packs/private/offense.rb
rubocop-packs-0.0.25 lib/rubocop/packs/private/offense.rb