Class: RuboCop::Cop::Modularization::TypedPublicApi

Inherits:
Sorbet::StrictSigil
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rubocop/cop/modularization/typed_public_api.rb

Overview

This cop helps ensure that each pack’s public API is strictly typed, enforcing strong boundaries.

Examples:


# bad
# packs/foo/app/public/foo.rb
# typed: false
module Foo; end

# good
# packs/foo/app/public/foo.rb
# typed: strict
module Foo; end