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 +4 -4
- data/CHANGELOG.md +14 -0
- data/config/default.yml +7 -17
- data/lib/rubocop/cop/gusto/discouraged_gem.rb +1 -1
- data/lib/rubocop/cop/rack/lowercase_header_keys.rb +2 -2
- data/lib/rubocop/gusto/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9326f07188d8534d2cad736cf8d79c3e9a40d0296ef6630dd6d88cf859851df2
|
|
4
|
+
data.tar.gz: '05178b0a1c63907c768878e893529eb3c095fb1a89f88b0810d58a5ae9a91f0b'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
375
|
-
#
|
|
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
|
|
@@ -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
|
|
125
|
+
message = format(MSG, downcased:, original: key_value)
|
|
126
126
|
|
|
127
|
-
add_offense(node, message:
|
|
127
|
+
add_offense(node, message:) do |corrector|
|
|
128
128
|
corrector.replace(node, "'#{downcased}'")
|
|
129
129
|
end
|
|
130
130
|
end
|