README.md in rubocop-sorbet-0.7.6 vs README.md in rubocop-sorbet-0.7.7
- old
+ new
@@ -67,9 +67,17 @@
rubocop-sorbet: config/rbi.yml
```
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.
In your `.rubocop.yml`, you may treat the Sorbet cops just like any other cop. For example: