rubocop-dubit 2.0.0 → 2.1.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/config/default.yml +7 -0
- data/config/rails.rubocop.yml +15 -0
- data/config/ruby.rubocop.yml +5 -0
- 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: a11af7ad61c78b12fc5a5c14b23df969c8ea0009811bdba4b3921f5ad900bcfb
|
|
4
|
+
data.tar.gz: d049e6f4b1b353824bf1f4666e37a62d9e44c0b9045ee57d9e1cbb9718ff5c8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c430bd196c9044cadeb4e9a0d5db26799241c0d74993e97d1875ce7ea1c0ccbc296a7a854428e85874160b731d13fb7655647ef3e363eb0533c7c70827ed169
|
|
7
|
+
data.tar.gz: 69223b450b4a524af21820f4f2e72fc00314e34981c11bd25f08c2e67fecbc8eb24114075e0ee641ffba625dd60df280920876e67bd0ce2e7da1fc56dffa3339
|
data/config/default.yml
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# Merge (rather than override) list-valued keys such as `Exclude` when combining the language-,
|
|
2
|
+
# framework- and test-specific configs below. Without this, each file's `Metrics/BlockLength: Exclude`
|
|
3
|
+
# would clobber the previous one and only the last-loaded list (rspec) would survive.
|
|
4
|
+
inherit_mode:
|
|
5
|
+
merge:
|
|
6
|
+
- Exclude
|
|
7
|
+
|
|
1
8
|
inherit_from:
|
|
2
9
|
- ruby.rubocop.yml
|
|
3
10
|
- rails.rubocop.yml
|
data/config/rails.rubocop.yml
CHANGED
|
@@ -28,6 +28,21 @@ Metrics/MethodLength:
|
|
|
28
28
|
- libs/tasks/*/**.rake
|
|
29
29
|
- 'db/migrate/*'
|
|
30
30
|
|
|
31
|
+
# Migration `change`/`up`/`down` methods routinely have a high ABC size (many column/table calls)
|
|
32
|
+
# and refactoring them adds no value.
|
|
33
|
+
Metrics/AbcSize:
|
|
34
|
+
Exclude:
|
|
35
|
+
- 'db/migrate/*'
|
|
36
|
+
|
|
37
|
+
# Migrations are historical and frequently auto-generated; they legitimately bulk-update rows and
|
|
38
|
+
# define columns without the conventions enforced on application code.
|
|
39
|
+
Rails/SkipsModelValidations:
|
|
40
|
+
Exclude:
|
|
41
|
+
- 'db/migrate/*'
|
|
42
|
+
Rails/ThreeStateBooleanColumn:
|
|
43
|
+
Exclude:
|
|
44
|
+
- 'db/migrate/*'
|
|
45
|
+
|
|
31
46
|
# Set rails actions in standard CRUD order
|
|
32
47
|
Rails/ActionOrder:
|
|
33
48
|
ExpectedOrder:
|
data/config/ruby.rubocop.yml
CHANGED
|
@@ -36,3 +36,8 @@ Naming/RescuedExceptionsVariableName:
|
|
|
36
36
|
|
|
37
37
|
Style/HashSyntax:
|
|
38
38
|
EnforcedShorthandSyntax: never
|
|
39
|
+
|
|
40
|
+
# Dubit's apps and internal libraries are not public gems, so mandatory top-level class/module
|
|
41
|
+
# documentation comments add noise (migrations, initializers, small service objects) without value.
|
|
42
|
+
Style/Documentation:
|
|
43
|
+
Enabled: false
|