Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bin/packs lint_deprecated_references command #55

Merged
merged 5 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rubocop
  • Loading branch information
Alex Evanczuk committed Nov 17, 2022
commit 53a71e1c2395de65baca318db30cda83094f8b0b
2 changes: 1 addition & 1 deletion lib/use_packwerk/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Configuration
def initialize
@enforce_dependencies = T.let(default_enforce_dependencies, T::Boolean)
@user_event_logger = T.let(DefaultUserEventLogger.new, UserEventLogger)
@on_deprecated_references_lint_failure = T.let(-> (output) {}, OnDeprecatedReferencesLintFailure)
@on_deprecated_references_lint_failure = T.let(->(output) {}, OnDeprecatedReferencesLintFailure)
end

sig { returns(T::Boolean) }
Expand Down
2 changes: 1 addition & 1 deletion spec/use_packwerk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def expect_files_to_not_exist(files)
it 'exits in a failure' do
callback_invocation = false
UsePackwerk.configure do |config|
config.on_deprecated_references_lint_failure = -> (output) { callback_invocation = output }
config.on_deprecated_references_lint_failure = ->(output) { callback_invocation = output }
end
write_file('packs/my_pack/package.yml', <<~CONTENTS)
enforce_privacy: true
Expand Down