rubocop-packs 0.0.37 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +0 -8
- data/config/erb_populated_data.yml +7 -0
- data/config/pack_config.yml +6 -0
- data/lib/rubocop/packs/private.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d88f485f918ad13a51e6b07c7d2777b3d6ea1f841bd8c5d00a745b0ef1021e44
|
4
|
+
data.tar.gz: 003f98900ab977a97c55860ca4c8dfc024818a249afdfc43c76aecf17383e639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df9a6bd0d19b1824cf6927e1fe1076b36042bde212a9859dde4912e2af5e49af53bb941e6cc190eec31483962dae009d956d9050b09f5132ee1cf809de5d5f5
|
7
|
+
data.tar.gz: db92154be004acb720da8ffdba1624dbbfac68a170fc7cbe214a3c5294e7c945ab9ea6308198bbf02ffd1189e823c948632ca086bd3c431b0b6875fb23576c81
|
data/config/default.yml
CHANGED
@@ -27,11 +27,3 @@ PackwerkLite/Privacy:
|
|
27
27
|
PackwerkLite/Dependency:
|
28
28
|
# It is recommended to use packwerk
|
29
29
|
Enabled: false
|
30
|
-
|
31
|
-
# We do this inherit *after* setting the defaults so that pack-specific rubocops can override the defaults
|
32
|
-
# Relevant documentation:
|
33
|
-
# - Inheriting config from a gem:
|
34
|
-
# - https://docs.rubocop.org/rubocop/configuration.html#inheriting-configuration-from-a-dependency-gem
|
35
|
-
# - ERB in a .rubocop.yml file
|
36
|
-
# - https://docs.rubocop.org/rubocop/configuration.html#pre-processing
|
37
|
-
<%= RuboCop::Packs.pack_based_rubocop_config %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# We do this inherit *after* setting the defaults so that pack-specific rubocops can override the defaults
|
2
|
+
# Relevant documentation:
|
3
|
+
# - Inheriting config from a gem:
|
4
|
+
# - https://docs.rubocop.org/rubocop/configuration.html#inheriting-configuration-from-a-dependency-gem
|
5
|
+
# - ERB in a .rubocop.yml file
|
6
|
+
# - https://docs.rubocop.org/rubocop/configuration.html#pre-processing
|
7
|
+
<%= RuboCop::Packs.pack_based_rubocop_config %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# Relevant documentation:
|
2
|
+
# - Inheriting config from a gem:
|
3
|
+
# - https://docs.rubocop.org/rubocop/configuration.html#inheriting-configuration-from-a-dependency-gem
|
4
|
+
# - ERB in a .rubocop.yml file
|
5
|
+
# - https://docs.rubocop.org/rubocop/configuration.html#pre-processing
|
6
|
+
inherit_from: ./erb_populated_data.yml
|
@@ -58,7 +58,7 @@ module RuboCop
|
|
58
58
|
else
|
59
59
|
loaded_rubocop_todo[key]['Exclude'].each do |filepath|
|
60
60
|
pack = ::Packs.for_file(filepath)
|
61
|
-
|
61
|
+
next unless pack && pack.name != package.name
|
62
62
|
|
63
63
|
errors << <<~ERROR_MESSAGE
|
64
64
|
#{rubocop_todo} contains invalid configuration for #{key}.
|
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.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -201,6 +201,8 @@ extra_rdoc_files: []
|
|
201
201
|
files:
|
202
202
|
- README.md
|
203
203
|
- config/default.yml
|
204
|
+
- config/erb_populated_data.yml
|
205
|
+
- config/pack_config.yml
|
204
206
|
- lib/rubocop-packs.rb
|
205
207
|
- lib/rubocop/cop/packs/class_methods_as_public_apis.rb
|
206
208
|
- lib/rubocop/cop/packs/documented_public_apis.rb
|