package_protections 0.65.0 → 0.66.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/package_protections/rubocop_protection_interface.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa463f6b2b4909e574bf47e2f5b4f330a48c074ada35eb451339a3ba6d35840
|
4
|
+
data.tar.gz: 07ead3e39863fed6327a677d1eff361e8f00a55db847df59b8e05a244e75228c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2fa4b640763d49d80adc1e3f400c617eaf348df01a5126d875cc4d6c4c2ec3c3b719ee3bb54923f2eaf86f48ed09159fdf90088c72d97e88a40971d16b759c
|
7
|
+
data.tar.gz: 7496fb3bc5d5727729432e5b9447c52b01428679aa0269bf5b92049a922e91c831656cb21f32ddd56c76444c9c7826b332ff7704f12327dca4cf17dd452ef3db
|
@@ -32,7 +32,16 @@ module PackageProtections
|
|
32
32
|
|
33
33
|
sig { returns(String) }
|
34
34
|
def to_rubocop_yml_compatible_format
|
35
|
-
cop_config = {
|
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
|
+
}
|
36
45
|
|
37
46
|
if include_paths.any?
|
38
47
|
cop_config['Include'] = include_paths
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: package_protections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|