rubocop-dubit 1.2.0 → 1.2.1

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: 0f2da45274fc451ce0ee48c67264d5770d52f558644df6cf76dcdf45962a3355
4
- data.tar.gz: cb4ca9b588cba0a7e1e5c78b3a192eb89d523754e37c1985592faca6489f803e
3
+ metadata.gz: 65a3220d6742299f9b90c70d2c1597ddeb78dc2a8e8ea629905ccc2a36061221
4
+ data.tar.gz: 285b73e494e7507ad873d3f3d3ba471cbd5172b38f6ba0f525a2cc5d26a00dc4
5
5
  SHA512:
6
- metadata.gz: d8ac514cbfe7cb1562f3a4a6937285b55d5f3b281cbe3aa98e330d1cec3b88984a810d65eb7de6de3dd3ad8c65849eac686f54f929063205c13e639690d09e9d
7
- data.tar.gz: 928782162758655e8e0aea0f8549e5948b96f504c40fbd77903fb7dd015402ba7043068792182b25cba747f960f419d86d5e6b664a1fb17a0348fba647302daa
6
+ metadata.gz: ee611006e1387b5ae00a42b92e83c0c1a3174b193788fb32db88c6658df7a7ca22f56351d2b5e81890a40ebb0e695def878c836084d150b65cbbbda2121e5310
7
+ data.tar.gz: 2d94f3501e05f240b33300b77abc09216c4f359a4e9d233fa53de6cd50e90a0710f3c08b74600031a8682938bd9b47b8fc3607fb5d897cfc61e9af825e687e02
@@ -26,6 +26,17 @@ Metrics/MethodLength:
26
26
  - libs/tasks/*/**.rake
27
27
  - 'db/migrate/*'
28
28
 
29
+ # Set rails actions in standard CRUD order
30
+ Rails/ActionOrder:
31
+ ExpectedOrder:
32
+ - index
33
+ - new
34
+ - create
35
+ - show
36
+ - edit
37
+ - update
38
+ - destroy
39
+
29
40
  # Currently an issue with this cop and seems to require the MySQL adapter version of schema.rb to be committed
30
41
  # in order to determine whether columns have a unique index:
31
42
  # @see https://github.com/rubocop-hq/rubocop-rails/issues/226
@@ -7,24 +7,33 @@ require:
7
7
  Layout/LineLength:
8
8
  Max: 120
9
9
 
10
+ Layout/SpaceAroundMethodCallOperator: # Added in (0.82)
11
+ Enabled: true
12
+
13
+ Lint/RaiseException: # Added in (0.81)
14
+ Enabled: true
15
+
16
+ Lint/StructNewOverride: # Added in (0.81)
17
+ Enabled: true
18
+
10
19
  # The cop measures complexity of methods (nesting, branches, etc)
11
20
  # @see http://wiki.c2.com/?AbcMetric%20and%20https://en.wikipedia.org/wiki/ABC_Software_Metric
12
21
  Metrics/AbcSize:
13
22
  Max: 20
14
23
 
15
- # Methods longer than 25 lines long (excluding comments) should be broken up into smaller routines
16
- Metrics/MethodLength:
17
- CountComments: false
18
- Max: 20
24
+ # Exclude Guardfile configuration
25
+ Metrics/BlockLength:
26
+ Exclude:
27
+ - Guardfile
19
28
 
20
29
  # Default is 100 lines, which is not a strong indicator of a problem
21
30
  Metrics/ClassLength:
22
31
  Max: 200
23
32
 
24
- # Exclude Guardfile configuration
25
- Metrics/BlockLength:
26
- Exclude:
27
- - Guardfile
33
+ # Methods longer than 25 lines long (excluding comments) should be broken up into smaller routines
34
+ Metrics/MethodLength:
35
+ CountComments: false
36
+ Max: 20
28
37
 
29
38
  # Prefer to call error objects 'error' in catch blocks
30
39
  Naming/RescuedExceptionsVariableName:
@@ -36,17 +45,11 @@ Style/ExponentialNotation: # Added in (0.82)
36
45
  Style/HashEachMethods: # Added in (0.80)
37
46
  Enabled: true
38
47
 
48
+ Style/HashSyntax:
49
+ EnforcedShorthandSyntax: never
50
+
39
51
  Style/HashTransformKeys: # Added in (0.80)
40
52
  Enabled: true
41
53
 
42
54
  Style/HashTransformValues: # Added in (0.80)
43
55
  Enabled: true
44
-
45
- Layout/SpaceAroundMethodCallOperator: # Added in (0.82)
46
- Enabled: true
47
-
48
- Lint/RaiseException: # Added in (0.81)
49
- Enabled: true
50
-
51
- Lint/StructNewOverride: # Added in (0.81)
52
- Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-dubit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dubit Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake