Skip to content

Commit

Permalink
Merge pull request #195 from Shopify/andyw8/clarify-rubocop-rbi-setup
Browse files Browse the repository at this point in the history
Clarify RuboCop setup for RBI files
  • Loading branch information
andyw8 authored Dec 19, 2023
2 parents a414cb7 + 6cbe174 commit 5e5e119
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ inherit_gem:

This will turn off default cops for `**/*.rbi` files and enable the RBI specific cops.

You'll also need to add an entry to the main `.rubocop.yml` so that RBI files are included, e.g.:

```yaml
AllCops:
Include:
- "sorbet/rbi/shims/**/*.rbi"
```

## The Cops
All cops are located under [`lib/rubocop/cop/sorbet`](lib/rubocop/cop/sorbet), and contain examples/documentation.

Expand Down

0 comments on commit 5e5e119

Please sign in to comment.