rubocop-gusto 10.9.3 → 10.10.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: 13b052509f1e53be9d64342ac76775f365d01f4f65227f08d7d6188570829927
4
- data.tar.gz: edb72d90f8ce3ddf7d09f814e83e966583373255ddbbdbdaceb6d5fbf0bd2daa
3
+ metadata.gz: 9326f07188d8534d2cad736cf8d79c3e9a40d0296ef6630dd6d88cf859851df2
4
+ data.tar.gz: '05178b0a1c63907c768878e893529eb3c095fb1a89f88b0810d58a5ae9a91f0b'
5
5
  SHA512:
6
- metadata.gz: facce0f6c1e7aada9d188605b7c9ef62a0ecf67308f851a59e3551c4956483371ee90ef658111a0637fd43629994f94943b29136467a95e9d3524b6ed5dfde62
7
- data.tar.gz: 0445fbe3ef6124a6cd264b7123aa5c320f64ece9cdbd8973c8db10530682276246e27d1b696cbdba00cec9b4aeba643ddb34715cebd96d3fbf034aeecd67e93c
6
+ metadata.gz: f78012905401ef80f171d1f05d50d85e4fa897225f3c36bca1f1cb508dd147b2b1809074c1fdef29ccb590c0b41f1d3b47453e6b02afab4c1be87bb6f5e7b65c
7
+ data.tar.gz: 25e25916a6a0e3096a5f64678d991674f4d6734abaac9dbb10956d825cb4189dd8f00cac23c9f0f9c28fc43efbbd638b0d48db8044dc60b159e738e09ec873ce
data/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  - Remove redundant `Rails: Enabled: true` from `config/rails.yml` (already set by rubocop-rails' own defaults)
4
4
  - Enable `Rails/DefaultScope` cop (disabled by default in rubocop-rails)
5
5
 
6
+ ## [10.10.0](https://github.com/Gusto/rubocop-gusto/compare/v10.9.4...v10.10.0) (2026-06-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * Set EnforcedShorthandSyntax to 'always' ([#116](https://github.com/Gusto/rubocop-gusto/issues/116)) ([650a8aa](https://github.com/Gusto/rubocop-gusto/commit/650a8aa26ee5af6d7558976dce6df18f053e1925))
12
+
13
+ ## [10.9.4](https://github.com/Gusto/rubocop-gusto/compare/v10.9.3...v10.9.4) (2026-06-01)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * tighten Sorbet sigil config and allow RBS inline annotations ([#120](https://github.com/Gusto/rubocop-gusto/issues/120)) ([0e9eef6](https://github.com/Gusto/rubocop-gusto/commit/0e9eef619b3123fc78004ee8466cf3b4137dd0b8))
19
+
6
20
  ## [10.9.3](https://github.com/Gusto/rubocop-gusto/compare/v10.9.2...v10.9.3) (2026-05-27)
7
21
 
8
22
 
data/config/default.yml CHANGED
@@ -176,6 +176,9 @@ Layout/FirstMethodArgumentLineBreak:
176
176
  Layout/FirstMethodParameterLineBreak:
177
177
  Enabled: true
178
178
 
179
+ Layout/LeadingCommentSpace:
180
+ AllowRBSInlineAnnotation: true
181
+
179
182
  Layout/LineLength:
180
183
  # TODO: Pick some maximum like 200 to start with
181
184
  Enabled: false
@@ -370,12 +373,9 @@ Rack/LowercaseHeaderKeys:
370
373
  Rake/ClassDefinitionInTask:
371
374
  Enabled: false
372
375
 
373
- Sorbet:
374
- # TODO: validate these choices for Harmonization
375
- # BindingConstantWithoutTypeAlias
376
- # EnforceSigilOrder # verify this works with Teams annotations
377
- # ForbidUntypedStructProps
378
- # SignatureBuildOrder
376
+ Sorbet/ForbidTUnsafe:
377
+ # T.unsafe completely disables typechecking. Prefer T.cast, shims, or
378
+ # reorganizing the code over silently turning off the type checker.
379
379
  Enabled: true
380
380
 
381
381
  Sorbet/Refinement:
@@ -387,21 +387,10 @@ Sorbet/StrictSigil:
387
387
  # Check this out: https://sorbet.org/docs/static#file-level-granularity-strictness-levels
388
388
  Enabled: true
389
389
  Exclude:
390
- - bin/**/*
391
- - db/**/*.rb
392
- - script/**/*
393
390
  - spec/**/*spec.rb
394
391
 
395
392
  Sorbet/ValidSigil:
396
393
  RequireSigilOnAllFiles: true
397
- # We don't want to require any specific typed level at this point – only that there IS a typed sigil.
398
- MinimumStrictness: ignore
399
- # We do suggest that the user type their file as `typed: strict`
400
- SuggestedStrictness: strict
401
- Exclude:
402
- - '**/db/migrate/**/*'
403
- - '**/*.{rake,arb,erb,rabl}'
404
- - '**/{Gemfile,Rakefile}'
405
394
 
406
395
  Style/AccessorGrouping:
407
396
  Enabled: false
@@ -473,6 +462,7 @@ Style/GuardClause:
473
462
 
474
463
  Style/HashSyntax:
475
464
  EnforcedStyle: ruby19_no_mixed_keys
465
+ EnforcedShorthandSyntax: always
476
466
 
477
467
  Style/HashTransformKeys:
478
468
  Enabled: false
@@ -34,7 +34,7 @@ module RuboCop
34
34
  end
35
35
 
36
36
  def message_for(gem)
37
- format(MSG, gem: gem, advice: advice_for(gem))
37
+ format(MSG, gem:, advice: advice_for(gem))
38
38
  end
39
39
 
40
40
  def advice_for(gem)
@@ -122,9 +122,9 @@ module RuboCop
122
122
 
123
123
  def add_offense_for_header(node, key_value)
124
124
  downcased = key_value.downcase
125
- message = format(MSG, downcased: downcased, original: key_value)
125
+ message = format(MSG, downcased:, original: key_value)
126
126
 
127
- add_offense(node, message: message) do |corrector|
127
+ add_offense(node, message:) do |corrector|
128
128
  corrector.replace(node, "'#{downcased}'")
129
129
  end
130
130
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Gusto
5
- VERSION = "10.9.3"
5
+ VERSION = "10.10.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-gusto
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.9.3
4
+ version: 10.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineering