Class: RuboCop::Cop::Packs::TypedPublicApis

Inherits:
Sorbet::StrictSigil
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rubocop/cop/packs/typed_public_apis.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

Instance Method Summary collapse

Instance Method Details

#on_new_investigationObject



38
39
40
41
42
# File 'lib/rubocop/cop/packs/typed_public_apis.rb', line 38

def on_new_investigation
  return unless processed_source.path.include?('app/public')

  super
end