Skip to content

Commit

Permalink
Merge pull request #249 from Shopify/at-rbi-cop
Browse files Browse the repository at this point in the history
Enable `Layout/SpaceInsideReferenceBrackets` for RBIs
  • Loading branch information
Morriar committed Jul 25, 2024
2 parents d2ceae7 + 3c6ad00 commit 05c6081
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions config/rbi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ Layout/SpaceInsideBlockBraces:
Layout/SpaceInsideParens:
Enabled: true

Layout/SpaceInsideReferenceBrackets:
Enabled: true

Layout/TrailingEmptyLines:
Enabled: true
EnforcedStyle: final_newline
Expand Down Expand Up @@ -223,6 +226,16 @@ Sorbet/SingleLineRbiClassModuleDefinitions:
Sorbet/TypeAliasName:
Enabled: true

Sorbet/ValidGemVersionAnnotations:
Description: >-
Ensures all gem version annotations in RBI files are correctly formatted per
Ruby's gem version specification guidelines.
See the rubygems.org documentation for more information on how to format gem
versions: https://guides.rubygems.org/patterns/#pessimistic-version-constraint
Enabled: false
VersionAdded: 0.8.5

Sorbet/ValidSigil:
Enabled: true
RequireSigilOnAllFiles: true
Expand Down Expand Up @@ -272,13 +285,3 @@ Style/MixinUsage:
Style/ModuleFunction:
Enabled: true
EnforcedStyle: forbidden

Sorbet/ValidGemVersionAnnotations:
Description: >-
Ensures all gem version annotations in RBI files are correctly formatted per
Ruby's gem version specification guidelines.
See the rubygems.org documentation for more information on how to format gem
versions: https://guides.rubygems.org/patterns/#pessimistic-version-constraint
Enabled: false
VersionAdded: 0.8.5

0 comments on commit 05c6081

Please sign in to comment.