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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d88381cc31fe478662a2be25b85704c798c2b890aca03fd399d38c3e3e4036f7
4
- data.tar.gz: d1451e08e65506b3524ae32eaad2b6e8375cf600e6b11bb381426fc0e15490fd
3
+ metadata.gz: 2aa463f6b2b4909e574bf47e2f5b4f330a48c074ada35eb451339a3ba6d35840
4
+ data.tar.gz: 07ead3e39863fed6327a677d1eff361e8f00a55db847df59b8e05a244e75228c
5
5
  SHA512:
6
- metadata.gz: fa85b6989d368a73734516df0e26bc5132024c70da4f4562db0ef868a289101441d640d8d39d65502696cd91dbf9066d5214cd10e20b4d19e894c6ef1372d251
7
- data.tar.gz: a877190298f30b829e18f5626f15ac9af3175a852a339cb36b474e4760805c8e3265cc008cd7f4edb64917ba49231633faad7e6763a952ac493005849897fff8
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 = { 'Enabled' => enabled }
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.65.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-01 00:00:00.000000000 Z
11
+ date: 2022-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport