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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06110e0f6aa92cc465dbafc1701b335b1b41df6e1a3596bb2480fcf4f895583f
4
- data.tar.gz: e0df57418273b9ca113f161c120243833aedd0c3cf7410126b7c7663309d478e
3
+ metadata.gz: a11af7ad61c78b12fc5a5c14b23df969c8ea0009811bdba4b3921f5ad900bcfb
4
+ data.tar.gz: d049e6f4b1b353824bf1f4666e37a62d9e44c0b9045ee57d9e1cbb9718ff5c8b
5
5
  SHA512:
6
- metadata.gz: ce5f6b6d6e2f015988d4953bcd7230075153afd0a5a83cfdd113bf42e6fa2fa6b98ec4225da57d3ff0833f23c2225b16241f3fd118c37766e78e069011539bdd
7
- data.tar.gz: b8d956e4ea9591b88be2a2f4a27b991d969cea7b2cec4a55e04d863c8a1af5d43df5229a0a796f19ecea877659bc822e09658fd98e026f49bb2353bdb5012c31
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
@@ -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:
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-dubit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dubit Limited