simplycop 2.32.2 → 2.32.3

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: ea87f617fd66aa7213adb29043be2cfd8b231268b5121162ab1a181291f30106
4
- data.tar.gz: 698dd1c6d048b1ae4fc73b1bde8fb01a8e8048f17dcbd0faafe14098d7393377
3
+ metadata.gz: 073d22578a6b87ff2286c4045872e0708bc075ff127af5bc61dce4031f89fb55
4
+ data.tar.gz: 5b0a936829c85ccec94f911840d3b9a4bfc09c343eae563acc61fcf924fc919d
5
5
  SHA512:
6
- metadata.gz: 1d84221e17596aa24e1d9e772620d53c8adb5b9fd07703227ca33d646db4683132046f0661b6eee1f69ca8200057ccfbe42ae875edcb7e56fbba010249e203dd
7
- data.tar.gz: fec010b3e61b699c7bae29068aa77c4ab975a79675096a476987864aff88b8de6d0b89f5e6f7dbe4b2d18ab0612531d198bf2475c4025717c99567586038a23c
6
+ metadata.gz: 1277134e6d294360af50dc6e0548770b41eb6b4d6a59dbf9612eaed868c9eb9992e417ebfbcb5b3ad8c0a48610cbe9d7f053049630d16ca0271477adcffd7c4e
7
+ data.tar.gz: f01c22a237a20dc9ef6ff7908eea24732718e6f8b6935ee47585313a75dc71ea98a14b5e8ba2031dff3db103041e9d163b4b44ade54a91833f5f8f52135cc6db
data/docs/index.md CHANGED
@@ -105,30 +105,6 @@ inherit_gem:
105
105
  AllCops:
106
106
  Exclude:
107
107
  - 'vendor/**/*'
108
-
109
- Rails:
110
- Enabled: false
111
- ```
112
-
113
- #### Legacy Project (Gradual Migration)
114
-
115
- ```yaml
116
- inherit_gem:
117
- simplycop: .simplycop.yml
118
-
119
- AllCops:
120
- Exclude:
121
- - 'vendor/**/*'
122
- - 'legacy/**/*' # Exclude legacy code initially
123
- NewCops: disable # Don't enable new cops automatically
124
-
125
- # Start with just a few departments
126
- Style:
127
- Enabled: true
128
- Layout:
129
- Enabled: true
130
- Lint:
131
- Enabled: true
132
108
  ```
133
109
 
134
110
  ### Available Configurations
@@ -177,10 +153,10 @@ Run RuboCop as you would usually do:
177
153
  $ bundle exec rubocop
178
154
 
179
155
  # Run with auto-correction
180
- $ bundle exec rubocop --auto-correct
156
+ $ bundle exec rubocop -A
181
157
 
182
158
  # Run only safe auto-corrections
183
- $ bundle exec rubocop --safe-auto-correct
159
+ $ bundle exec rubocop -a
184
160
 
185
161
  # Run on specific files or directories
186
162
  $ bundle exec rubocop app/ spec/
@@ -248,14 +224,16 @@ Example for legacy projects:
248
224
 
249
225
  ```yaml
250
226
  inherit_gem:
251
- simplycop: .simplycop.yml
252
- inherit_from: .rubocop_todo.yml
227
+ simplycop:
228
+ - .simplycop_layout.yml
229
+ - .simplycop_lint.yml
230
+ - .simplycop_style.yml
253
231
 
254
232
  AllCops:
255
- NewCops: disable # Don't enable new cops automatically
256
233
  Exclude:
257
234
  - 'vendor/**/*'
258
235
  - 'legacy_code/**/*' # Exclude problematic areas initially
236
+ NewCops: disable # Don't enable new cops automatically
259
237
  ```
260
238
 
261
239
  ## Development
@@ -397,28 +375,6 @@ If you're migrating from another shared RuboCop configuration:
397
375
  3. **Test incrementally**: Apply changes in small batches to understand the impact
398
376
  4. **Update CI/CD**: Ensure your continuous integration tools use the new configuration
399
377
 
400
- ### From Simplycop v1 to v2
401
-
402
- Key changes in v2:
403
- - Uses RuboCop RSpec v3
404
- - Capybara, FactoryBot, and RSpecRails cops are now separate packages
405
- - Some cop names and configurations may have changed
406
-
407
- Migration steps:
408
- 1. **Update your Gemfile**: Ensure you're using simplycop v2
409
- 2. **Update your configuration**: If you use RSpec testing cops, explicitly include the new packages:
410
- ```yaml
411
- inherit_gem:
412
- simplycop:
413
- - .simplycop.yml
414
- - .simplycop_rspec.yml
415
- - .simplycop_capybara.yml # Add if you use Capybara
416
- - .simplycop_factory_bot.yml # Add if you use FactoryBot
417
- - .simplycop_rspec_rails.yml # Add if you use RSpec Rails
418
- ```
419
- 3. **Test thoroughly**: Run RuboCop and address any new or changed violations
420
- 4. **Update documentation**: Ensure your team is aware of the changes
421
-
422
378
  ---
423
379
 
424
380
  For more information, visit the [simplycop repository](https://github.com/simplybusiness/simplycop) or reach out to the team in `#technical-excellence-community`.
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '2.32.2'
10
+ VERSION = '2.32.3'
11
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.2
4
+ version: 2.32.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-12-11 00:00:00.000000000 Z
10
+ date: 2025-12-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rubocop