danger-packwerk 0.11.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d63ad05d77aca71933a6864ac3cc17f566ed2776ea5a3aa7b9be89ab874110f3
|
|
4
|
+
data.tar.gz: da650a6214759b091bda3326f975a0d72d8b7b75828742e0e60671c59f081b1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70318e98facfd6d213292f3b972f2d226317ee6fffa292ce33f0e33fe68e521fdc6a5cb9c2d5ddf8dba0ba69f07abedb0a67189cbb0c6602ec964024da5b4e38
|
|
7
|
+
data.tar.gz: 7f9196a3edf2ecd058d088f961bbc889a34171e8140ed93142546c9af57de388c7b23e9db74189c2e9c01dbecbf3cc4c9342b6c684224cf524340390e1d5a42b
|
|
@@ -38,7 +38,7 @@ module DangerPackwerk
|
|
|
38
38
|
constant_source_package = T.must(ParsePackwerk.all.find { |p| p.name == constant_source_package_name })
|
|
39
39
|
constant_source_package_ownership_info = Private::OwnershipInformation.for_package(constant_source_package, org_name)
|
|
40
40
|
|
|
41
|
-
disclaimer = 'Before you run `bin/packwerk update-
|
|
41
|
+
disclaimer = 'Before you run `bin/packwerk update-todo`, check out these quick suggestions:'
|
|
42
42
|
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}`"
|
|
43
43
|
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}`"
|
|
44
44
|
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}?"
|
|
@@ -28,7 +28,7 @@ module DangerPackwerk
|
|
|
28
28
|
|
|
29
29
|
package_referring_to_constant_owner = Private::OwnershipInformation.for_package(referencing_file_pack, org_name)
|
|
30
30
|
|
|
31
|
-
disclaimer = 'We noticed you ran `bin/packwerk update-
|
|
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.'
|
|
32
32
|
pluralized_violation = offenses.count > 1 ? 'these violations' : 'this violation'
|
|
33
33
|
request_to_add_context = "- Could you add some context as a reply here about why we needed to add #{pluralized_violation}?\n"
|
|
34
34
|
|