package_protections 0.66.0 → 0.67.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 +4 -4
- data/lib/package_protections/rubocop_protection_interface.rb +1 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0457664569f574f7252c13cd8236b6e267a114bd900a24da1aa4a89c4b5d13da'
|
4
|
+
data.tar.gz: 8495e9bc7343afa5c793ef7027c2e453dbe13424de49514e235dcd3f64327031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04cfbf3ce493c4dbb3a9ddfbeb89d725a1fbcc7d5d209e1a51e45ecee6fb56320dacb9fb271d3ca58d1b5d176b209a6410630de041d7e4f749368f7820443ed4
|
7
|
+
data.tar.gz: 67412edbc0ac4a0c64460419c482a141963120c89bb46c297bb84575c83b9f38920bfa7cee9549a7f8c135275eca0927127fa89c5f1879480d283201e757b60f
|
@@ -32,16 +32,7 @@ module PackageProtections
|
|
32
32
|
|
33
33
|
sig { returns(String) }
|
34
34
|
def to_rubocop_yml_compatible_format
|
35
|
-
cop_config = {
|
36
|
-
'Enabled' => enabled,
|
37
|
-
# Inherit mode ensures that the client can still use the cop outside of the context of package protections.
|
38
|
-
# For example, if a user wanted to use `Sorbet/StrictSigil` to keep *all* of their package strictly typed,
|
39
|
-
# this would permit that configuration. Likewise, this would permit a user to override portions of rubocop-implemented
|
40
|
-
# package protections. For example, they could have a hard-to-type portion of their public API (GraphQL maybe?).
|
41
|
-
# This would permit them to tell rubocop to selectively not enforce package protections in a particular place.
|
42
|
-
# See more: https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
|
43
|
-
'inherit_mode' => { 'merge' => %w[Include Exclude] }
|
44
|
-
}
|
35
|
+
cop_config = { 'Enabled' => enabled }
|
45
36
|
|
46
37
|
if include_paths.any?
|
47
38
|
cop_config['Include'] = include_paths
|