rubocop-packs 0.0.30 → 0.0.31

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: 208f3451084e5b67bb6484d96771a3147b0c7e15e9e9a39e983c60cf004108c1
4
- data.tar.gz: ffae4e770c695d8f3104e0c7aa1ed20191c254a6f6ec455631d4dce9717cf500
3
+ metadata.gz: b56947f928e3cd5bb8a70b1bc367b7f9739b374cdba442c3fe7ad2dd71b62841
4
+ data.tar.gz: a4cfae130a903a8d051d819c50e2569fa8e69c6dfa2844e97121941137ff7d7f
5
5
  SHA512:
6
- metadata.gz: 14f22913944fa75ff768cc3035096250e423b165cc4e99b3f30fad48982fcec96ed1bb377da658298254d73a48980cf4b1a9466c54767a1f438120a65aecd9a3
7
- data.tar.gz: 443627bfd6f22d890f79f1ede498cab604eb0fc421f8342dfe2268e230250b5cac09bfbb434bb10c94ddbbb3600c72f0f6b9e2411e8a480099d8bd6ae04005a7
6
+ metadata.gz: 8693b567291a632d72f71f266b1eb87a0c783014ca6e407449015d59fa7e33bec346bc47e958899c559d1c9ca8553bc2d21021a98c55ec9571a441594f0e60bb
7
+ data.tar.gz: 2477bd23e353ffb8a32fdecbf0c6377ba44e36ca9ac3e53126f091d4391ff1b0eca0c0d56f43f0479d0db07fbc94d2b428d4c83851bb1d56e35c1834fcfcf43e
@@ -59,7 +59,7 @@ module RuboCop
59
59
  is_new_violation = [
60
60
  !constant_reference.referencing_package.dependencies.include?(constant_reference.source_package.name),
61
61
  constant_reference.referencing_package.enforces_dependencies?,
62
- !Private.violation_in_deprecated_references_yml?(constant_reference, type: 'dependency')
62
+ !Private.violation_in_package_todo_yml?(constant_reference, type: 'dependency')
63
63
  ].all?
64
64
 
65
65
  if is_new_violation
@@ -60,7 +60,7 @@ module RuboCop
60
60
  is_new_violation = [
61
61
  !constant_reference.public_api?,
62
62
  constant_reference.source_package.enforces_privacy?,
63
- !Private.violation_in_deprecated_references_yml?(constant_reference)
63
+ !Private.violation_in_package_todo_yml?(constant_reference)
64
64
  ].all?
65
65
 
66
66
  if is_new_violation
@@ -24,8 +24,8 @@ module RuboCop
24
24
  end
25
25
 
26
26
  sig { params(constant_reference: ConstantResolver::ConstantReference, type: String).returns(T::Boolean) }
27
- def self.violation_in_deprecated_references_yml?(constant_reference, type: 'privacy')
28
- existing_violations = ParsePackwerk::DeprecatedReferences.for(constant_reference.referencing_package).violations
27
+ def self.violation_in_package_todo_yml?(constant_reference, type: 'privacy')
28
+ existing_violations = ParsePackwerk::PackageTodo.for(constant_reference.referencing_package).violations
29
29
  existing_violations.any? do |v|
30
30
  v.class_name == "::#{constant_reference.constant_name}" && (type == 'privacy' ? v.privacy? : v.dependency?)
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-packs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
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-12-09 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport