Skip to content

Commit 588b4c1

Browse files
author
Alex Evanczuk
authored
Update language update-deprecations => update-todo (#35)
1 parent 22424e9 commit 588b4c1

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GIT
1717
PATH
1818
remote: .
1919
specs:
20-
danger-packwerk (0.11.2)
20+
danger-packwerk (0.12.0)
2121
code_ownership
2222
danger-plugin-api (~> 1.0)
2323
packwerk

lib/danger-packwerk/check/default_formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def format_offenses(offenses, repo_link, org_name)
3838
constant_source_package = T.must(ParsePackwerk.all.find { |p| p.name == constant_source_package_name })
3939
constant_source_package_ownership_info = Private::OwnershipInformation.for_package(constant_source_package, org_name)
4040

41-
disclaimer = 'Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:'
41+
disclaimer = 'Before you run `bin/packwerk update-todo`, check out these quick suggestions:'
4242
referencing_code_in_right_pack = "- Does the code you are writing live in the right pack?\n - If not, try `bin/packs move packs/destination_pack #{referencing_file}`"
4343
referenced_code_in_right_pack = "- Does #{constant_name} live in the right pack?\n - If not, try `bin/packs move packs/destination_pack #{constant_location}`"
4444
dependency_violation_message = "- Do we actually want to depend on #{constant_source_package_name}?\n - If so, try `bin/packs add_dependency #{referencing_file_pack} #{constant_source_package_name}`\n - If not, what can we change about the design so we do not have to depend on #{constant_source_package_name}?"

lib/danger-packwerk/update/default_formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def format_offenses(offenses, repo_link, org_name)
2828

2929
package_referring_to_constant_owner = Private::OwnershipInformation.for_package(referencing_file_pack, org_name)
3030

31-
disclaimer = 'We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.'
31+
disclaimer = 'We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.'
3232
pluralized_violation = offenses.count > 1 ? 'these violations' : 'this violation'
3333
request_to_add_context = "- Could you add some context as a reply here about why we needed to add #{pluralized_violation}?\n"
3434

lib/danger-packwerk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module DangerPackwerk
5-
VERSION = '0.11.2'
5+
VERSION = '0.12.0'
66
end

spec/danger_packwerk/danger_package_todo_yml_changes_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module DangerPackwerk
127127
- packs/some_pack/some_class.rb
128128
==================== DANGER_START
129129
Hi again! It looks like `OtherPackClass` is private API of `packs/some_other_pack`, which is also not in `packs/some_pack`'s list of dependencies.
130-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
130+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
131131
132132
- Could you add some context as a reply here about why we needed to add these violations?
133133
@@ -327,7 +327,7 @@ def format_offenses(added_violations, repo_link, org_name)
327327
- packs/some_pack/some_class.rb
328328
==================== DANGER_START
329329
Hi again! It looks like `OtherPackClass2` is private API of `packs/some_other_pack`, which is also not in `packs/some_pack`'s list of dependencies.
330-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
330+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
331331
332332
- Could you add some context as a reply here about why we needed to add these violations?
333333
@@ -389,7 +389,7 @@ def format_offenses(added_violations, repo_link, org_name)
389389
- packs/some_pack/some_other_class.rb
390390
==================== DANGER_START
391391
Hi again! It looks like `OtherPackClass` is private API of `packs/some_other_pack`.
392-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
392+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
393393
394394
- Could you add some context as a reply here about why we needed to add this violation?
395395
@@ -469,7 +469,7 @@ def format_offenses(added_violations, repo_link, org_name)
469469
- packs/some_pack/some_other_class.rb
470470
==================== DANGER_START
471471
Hi again! It looks like `XYZModule` is private API of `packs/some_other_pack`.
472-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
472+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
473473
474474
- Could you add some context as a reply here about why we needed to add this violation?
475475
@@ -549,7 +549,7 @@ def format_offenses(added_violations, repo_link, org_name)
549549
- packs/some_pack/some_other_class.rb
550550
==================== DANGER_START
551551
Hi again! It looks like `Helpers` is private API of `packs/some_other_pack`.
552-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
552+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
553553
554554
- Could you add some context as a reply here about why we needed to add this violation?
555555
@@ -629,7 +629,7 @@ def format_offenses(added_violations, repo_link, org_name)
629629
- packs/some_pack/some_class.rb
630630
==================== DANGER_START
631631
Hi again! It looks like `OtherPackClass` belongs to `packs/some_other_pack`, which is not in `packs/some_pack`'s list of dependencies.
632-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
632+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
633633
634634
- Could you add some context as a reply here about why we needed to add this violation?
635635
@@ -739,7 +739,7 @@ def format_offenses(added_violations, repo_link, org_name)
739739
- packs/some_pack/some_class1.rb
740740
==================== DANGER_START
741741
Hi again! It looks like `OtherPackClass` belongs to `packs/some_other_pack`, which is not in `packs/some_pack`'s list of dependencies.
742-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
742+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
743743
744744
- Could you add some context as a reply here about why we needed to add these violations?
745745
@@ -815,7 +815,7 @@ def format_offenses(added_violations, repo_link, org_name)
815815
- packs/some_pack/some_class2.rb
816816
==================== DANGER_START
817817
Hi again! It looks like `OtherPackClass` is private API of `packs/some_other_pack`.
818-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
818+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
819819
820820
- Could you add some context as a reply here about why we needed to add this violation?
821821
@@ -920,7 +920,7 @@ def format_offenses(added_violations, repo_link, org_name)
920920
- packs/some_pack/some_entirely_new_class.rb
921921
==================== DANGER_START
922922
Hi again! It looks like `OtherPackClass` is private API of `packs/some_other_pack`.
923-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
923+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
924924
925925
- Could you add some context as a reply here about why we needed to add this violation?
926926
@@ -1033,7 +1033,7 @@ def format_offenses(added_violations, repo_link, org_name)
10331033
- packs/some_pack/some_file.rb
10341034
==================== DANGER_START
10351035
Hi again! It looks like `SomeNewClass` is private API of `packs/some_other_pack`.
1036-
We noticed you ran `bin/packwerk update-deprecations`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
1036+
We noticed you ran `bin/packwerk update-todo`. Check out [the docs](https://github.com/Shopify/packwerk/blob/main/RESOLVING_VIOLATIONS.md) to see other ways to resolve violations.
10371037
10381038
- Could you add some context as a reply here about why we needed to add this violation?
10391039

spec/danger_packwerk/danger_packwerk_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def format_offenses(offenses, repo_link, org_name)
818818
819819
<details><summary>Quick suggestions :bulb:</summary>
820820
821-
Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:
821+
Before you run `bin/packwerk update-todo`, check out these quick suggestions:
822822
- Does the code you are writing live in the right pack?
823823
- If not, try `bin/packs move packs/destination_pack packs/referencing_package/some_file.rb`
824824
- Does PrivateConstant live in the right pack?
@@ -859,7 +859,7 @@ def format_offenses(offenses, repo_link, org_name)
859859
860860
<details><summary>Quick suggestions :bulb:</summary>
861861
862-
Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:
862+
Before you run `bin/packwerk update-todo`, check out these quick suggestions:
863863
- Does the code you are writing live in the right pack?
864864
- If not, try `bin/packs move packs/destination_pack packs/referencing_package/some_file.rb`
865865
- Does PrivateConstant live in the right pack?
@@ -902,7 +902,7 @@ def format_offenses(offenses, repo_link, org_name)
902902
903903
<details><summary>Quick suggestions :bulb:</summary>
904904
905-
Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:
905+
Before you run `bin/packwerk update-todo`, check out these quick suggestions:
906906
- Does the code you are writing live in the right pack?
907907
- If not, try `bin/packs move packs/destination_pack packs/referencing_package/some_file.rb`
908908
- Does PrivateConstant live in the right pack?
@@ -943,7 +943,7 @@ def format_offenses(offenses, repo_link, org_name)
943943
944944
<details><summary>Quick suggestions :bulb:</summary>
945945
946-
Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:
946+
Before you run `bin/packwerk update-todo`, check out these quick suggestions:
947947
- Does the code you are writing live in the right pack?
948948
- If not, try `bin/packs move packs/destination_pack packs/referencing_package/some_file.rb`
949949
- Does PrivateConstant live in the right pack?
@@ -1016,7 +1016,7 @@ def format_offenses(offenses, repo_link, org_name)
10161016
10171017
<details><summary>Quick suggestions :bulb:</summary>
10181018
1019-
Before you run `bin/packwerk update-deprecations`, check out these quick suggestions:
1019+
Before you run `bin/packwerk update-todo`, check out these quick suggestions:
10201020
- Does the code you are writing live in the right pack?
10211021
- If not, try `bin/packs move packs/destination_pack packs/referencing_package/some_file.rb`
10221022
- Does PrivateConstant live in the right pack?

0 commit comments

Comments
 (0)