config/default.yml in rubocop-sorbet-0.7.0 vs config/default.yml in rubocop-sorbet-0.7.1
- old
+ new
@@ -118,11 +118,12 @@
Sorbet/HasSigil:
Description: 'Makes the Sorbet typed sigil mandatory in all files.'
Enabled: false
SuggestedStrictness: "false"
- MinimumStrictness: "false"
+ MinimumStrictness: nil
+ ExactStrictness: nil
VersionAdded: 0.3.3
Include:
- "**/*.{rb,rbi,rake,ru}"
Exclude:
- bin/**/*
@@ -139,20 +140,39 @@
Exclude:
- bin/**/*
- db/**/*.rb
- script/**/*
+Sorbet/ImplicitConversionMethod:
+ Description: >-
+ This cop disallows declaring implicit conversion methods, as sorbet does
+ not support implicit conversion.
+ Enabled: false
+ VersionAdded: '<<next>>'
+
Sorbet/KeywordArgumentOrdering:
Description: >-
Enforces a compatible keyword arguments with Sorbet.
All keyword arguments must be at the end of the parameters
list, and all keyword arguments with a default value must be
after those without default values.
Enabled: true
VersionAdded: 0.2.0
+Sorbet/ObsoleteStrictMemoization:
+ Description: >-
+ This cop checks for the obsolete pattern for initializing instance variables that was required for older Sorbet
+ versions in `#typed: strict` files.
+
+ It's no longer required, as of Sorbet 0.5.10210
+ See https://sorbet.org/docs/type-assertions#put-type-assertions-behind-memoization
+ Enabled: true
+ VersionAdded: '0.7.1'
+ Safe: true
+ SafeAutoCorrect: true
+
Sorbet/OneAncestorPerLine:
Description: 'Enforces one ancestor per call to requires_ancestor'
Enabled: false
VersionAdded: '0.6.0'
@@ -233,10 +253,11 @@
Sorbet/ValidSigil:
Description: 'All files must have a valid sigil.'
Enabled: true
RequireSigilOnAllFiles: false
SuggestedStrictness: "false"
- MinimumStrictness: "false"
+ MinimumStrictness: nil
+ ExactStrictness: nil
VersionAdded: 0.3.3
Include:
- "**/*.{rb,rbi,rake,ru}"
Exclude:
- bin/**/*