From 7e3911a155c1da9056b2d15fe3c3eae753ee9d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 8 Nov 2023 14:33:10 -0500 Subject: [PATCH] Revert "Update stale violations error message to use bin/packwerk command" --- lib/packwerk/formatters/default_offenses_formatter.rb | 2 +- test/unit/packwerk/commands/check_command_test.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/packwerk/formatters/default_offenses_formatter.rb b/lib/packwerk/formatters/default_offenses_formatter.rb index b6b173ad5..6f12abaa3 100644 --- a/lib/packwerk/formatters/default_offenses_formatter.rb +++ b/lib/packwerk/formatters/default_offenses_formatter.rb @@ -23,7 +23,7 @@ def show_offenses(offenses) sig { override.params(offense_collection: OffenseCollection, file_set: T::Set[String]).returns(String) } def show_stale_violations(offense_collection, file_set) if offense_collection.stale_violations?(file_set) - "There were stale violations found, please run `bin/packwerk update-todo`" + "There were stale violations found, please run `packwerk update-todo`" else "No stale violations detected" end diff --git a/test/unit/packwerk/commands/check_command_test.rb b/test/unit/packwerk/commands/check_command_test.rb index e6dda5e9b..4ffc86a9c 100644 --- a/test/unit/packwerk/commands/check_command_test.rb +++ b/test/unit/packwerk/commands/check_command_test.rb @@ -131,7 +131,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `bin/packwerk update-todo` + There were stale violations found, please run `packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -238,7 +238,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `bin/packwerk update-todo` + There were stale violations found, please run `packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -351,7 +351,7 @@ class CheckCommandTest < Minitest::Test 1 offense detected - There were stale violations found, please run `bin/packwerk update-todo` + There were stale violations found, please run `packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string) @@ -390,7 +390,7 @@ class CheckCommandTest < Minitest::Test 📦 Finished in \\d+\\.\\d+ seconds No offenses detected - There were stale violations found, please run `bin/packwerk update-todo` + There were stale violations found, please run `packwerk update-todo` EOS assert_match(/#{expected_output}/, out.string)