config/default.yml in rubocop-sorbet-0.6.2 vs config/default.yml in rubocop-sorbet-0.6.3

- old
+ new

@@ -14,11 +14,12 @@ Enabled: true VersionAdded: 0.2.0 Sorbet/CallbackConditionalsBinding: Description: 'Ensures callback conditionals are bound to the right type.' - Enabled: true + Enabled: false + Safe: false VersionAdded: 0.7.0 Sorbet/CheckedTrueInSignature: Description: 'Disallows the usage of `checked(true)` in signatures.' Enabled: true @@ -36,10 +37,15 @@ Sorbet/EnforceSigilOrder: Description: 'Ensures that Sorbet sigil comes first in a file.' Enabled: true VersionAdded: 0.3.4 +Sorbet/sigils/EnforceSingleSigil: + Description: 'Ensures that there is only one Sorbet sigil in a file.' + Enabled: true + VersionAdded: '<<next>>' + Sorbet/EnforceSignatures: Description: 'Ensures all methods have a valid signature.' Enabled: false VersionAdded: 0.3.4 @@ -47,14 +53,11 @@ Description: 'All files must be at least at strictness `false`.' Enabled: true VersionAdded: 0.3.3 SuggestedStrictness: "false" Include: - - "**/*.rb" - - "**/*.rbi" - - "**/*.rake" - - "**/*.ru" + - "**/*.{rb,rbi,rake,ru}" Exclude: - bin/**/* - db/**/*.rb - script/**/* @@ -63,14 +66,16 @@ Enabled: true VersionAdded: '0.6.0' Include: - "**/*.rbi" -Sorbet/ForbidRBIOutsideOfSorbetDir: - Description: 'Forbids RBI files outside of the sorbet/ directory.' +Sorbet/ForbidRBIOutsideOfAllowedPaths: + Description: 'Forbids RBI files outside of the allowed paths' Enabled: true VersionAdded: 0.6.1 + AllowedPaths: + - "sorbet/rbi/**" Include: - "**/*.rbi" Sorbet/ForbidIncludeConstLiteral: Description: 'Forbids include of non-literal constants.' @@ -103,16 +108,28 @@ Description: 'Makes the Sorbet typed sigil mandatory in all files.' Enabled: false SuggestedStrictness: "false" MinimumStrictness: "false" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/* Sorbet/IgnoreSigil: Description: 'All files must be at least at strictness `ignore`.' Enabled: false SuggestedStrictness: "ignore" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/* Sorbet/KeywordArgumentOrdering: Description: >- Enforces a compatible keyword arguments with Sorbet. @@ -125,15 +142,10 @@ Sorbet/OneAncestorPerLine: Description: 'Enforces one ancestor per call to requires_ancestor' Enabled: false VersionAdded: '0.6.0' -Sorbet/ParametersOrderingInSignature: - Description: 'Enforces same parameter order between a method and its signature.' - Enabled: true - VersionAdded: 0.2.0 - Sorbet/SignatureBuildOrder: Description: >- Enforces the order of parts in a signature. The order is first inheritance related builders, @@ -152,25 +164,49 @@ Sorbet/StrictSigil: Description: 'All files must be at least at strictness `strict`.' Enabled: false SuggestedStrictness: "strict" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/* Sorbet/StrongSigil: Description: 'All files must be at least at strictness `strong`.' Enabled: false SuggestedStrictness: "strong" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/* Sorbet/TrueSigil: Description: 'All files must be at least at strictness `true`.' Enabled: false SuggestedStrictness: "true" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/* Sorbet/ValidSigil: Description: 'All files must have a valid sigil.' Enabled: true RequireSigilOnAllFiles: false SuggestedStrictness: "false" MinimumStrictness: "false" VersionAdded: 0.3.3 + Include: + - "**/*.{rb,rbi,rake,ru}" + Exclude: + - bin/**/* + - db/**/*.rb + - script/**/*