rubocop-dubit 1.3.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: 261d1ff43e6d49795a3aa332fa4b8f5667e08f18672ed491498314e26139f176
4
- data.tar.gz: 4d261ffedabe261f09ddfcb641364b001c10c9fadbb4771f68eac3b098ce4f3e
3
+ metadata.gz: a11af7ad61c78b12fc5a5c14b23df969c8ea0009811bdba4b3921f5ad900bcfb
4
+ data.tar.gz: d049e6f4b1b353824bf1f4666e37a62d9e44c0b9045ee57d9e1cbb9718ff5c8b
5
5
  SHA512:
6
- metadata.gz: d8e527913f8cc2f506c5275b1453bde5934299170d6a42be578ecb084ad4a7b8a57d0f5bf6ef0837e921ea3dd0ffa1e03f830f6fc1c311260ef8e8de36760f69
7
- data.tar.gz: cfbd2bc99fcbba00a7c6a38fb12e333d95525975b1b56bd1f00da3773d5a23181c6e917979c9e46d2572051053176307de584110d18bce602639c72b468a86ef
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
@@ -1,5 +1,7 @@
1
1
  # Linting specific for the Ruby on Rails applications
2
- require: rubocop-rails
2
+ plugins:
3
+ - rubocop-rails
4
+ - rubocop-rake
3
5
 
4
6
  # Exclude files that are auto-generated
5
7
  AllCops:
@@ -26,6 +28,21 @@ Metrics/MethodLength:
26
28
  - libs/tasks/*/**.rake
27
29
  - 'db/migrate/*'
28
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
+
29
46
  # Set rails actions in standard CRUD order
30
47
  Rails/ActionOrder:
31
48
  ExpectedOrder:
@@ -1,7 +1,11 @@
1
1
  # Linting for the RSpec test suites
2
+ # rubocop-rspec 3.x extracted the FactoryBot and Capybara cops into separate gems, so they are
3
+ # loaded explicitly here alongside rubocop-rspec.
2
4
 
3
- require:
5
+ plugins:
4
6
  - rubocop-rspec
7
+ - rubocop-factory_bot
8
+ - rubocop-capybara
5
9
 
6
10
  # You pass blocks to describe and context methods, that grow with the number of specs inside them. It's valid
7
11
  # to have many specs in a single describe or context definition.
@@ -1,21 +1,16 @@
1
1
  # Linting for the Ruby language
2
2
 
3
- require:
3
+ plugins:
4
4
  - rubocop-performance
5
5
 
6
+ AllCops:
7
+ # Opt in to cops added in new RuboCop releases rather than silently leaving them pending.
8
+ NewCops: enable
9
+
6
10
  # Raise linting errors for code lines longer than 120 characters (about half the width of a modern laptop screen)
7
11
  Layout/LineLength:
8
12
  Max: 120
9
13
 
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
-
19
14
  # The cop measures complexity of methods (nesting, branches, etc)
20
15
  # @see http://wiki.c2.com/?AbcMetric%20and%20https://en.wikipedia.org/wiki/ABC_Software_Metric
21
16
  Metrics/AbcSize:
@@ -39,17 +34,10 @@ Metrics/MethodLength:
39
34
  Naming/RescuedExceptionsVariableName:
40
35
  PreferredName: 'error'
41
36
 
42
- Style/ExponentialNotation: # Added in (0.82)
43
- Enabled: true
44
-
45
- Style/HashEachMethods: # Added in (0.80)
46
- Enabled: true
47
-
48
37
  Style/HashSyntax:
49
38
  EnforcedShorthandSyntax: never
50
39
 
51
- Style/HashTransformKeys: # Added in (0.80)
52
- Enabled: true
53
-
54
- Style/HashTransformValues: # Added in (0.80)
55
- Enabled: true
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-dubit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dubit Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-17 00:00:00.000000000 Z
11
+ date: 2026-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,70 +30,112 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.58.0
33
+ version: 0.74.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.58.0
40
+ version: 0.74.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.66.1
47
+ version: 1.88.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.66.1
54
+ version: 1.88.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-factory_bot
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.28.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.28.0
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rubocop-performance
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: 1.22.1
89
+ version: 1.26.1
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: 1.22.1
96
+ version: 1.26.1
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rubocop-rails
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 2.26.1
103
+ version: 2.35.5
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.35.5
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.7.1
76
118
  type: :runtime
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
79
121
  requirements:
80
122
  - - "~>"
81
123
  - !ruby/object:Gem::Version
82
- version: 2.26.1
124
+ version: 0.7.1
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: rubocop-rspec
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
129
  - - "~>"
88
130
  - !ruby/object:Gem::Version
89
- version: 3.0.5
131
+ version: 3.10.2
90
132
  type: :runtime
91
133
  prerelease: false
92
134
  version_requirements: !ruby/object:Gem::Requirement
93
135
  requirements:
94
136
  - - "~>"
95
137
  - !ruby/object:Gem::Version
96
- version: 3.0.5
138
+ version: 3.10.2
97
139
  description: Shared RuboCop rules for Ruby projects at Dubit
98
140
  email:
99
141
  - ops@dubitlimited.com
@@ -118,14 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
160
  requirements:
119
161
  - - ">="
120
162
  - !ruby/object:Gem::Version
121
- version: '3.1'
163
+ version: '3.3'
122
164
  required_rubygems_version: !ruby/object:Gem::Requirement
123
165
  requirements:
124
166
  - - ">="
125
167
  - !ruby/object:Gem::Version
126
168
  version: '0'
127
169
  requirements: []
128
- rubygems_version: 3.3.27
170
+ rubygems_version: 3.5.22
129
171
  signing_key:
130
172
  specification_version: 4
131
173
  summary: RuboCop Dubit