Skip to content

Commit

Permalink
Add exclude in ForbidSuperclassConstLiteral for migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Brushett committed Mar 16, 2021
1 parent 74b3e86 commit f414b56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/default.yml
Expand Up @@ -70,7 +70,9 @@ Sorbet/ForbidSuperclassConstLiteral:
Description: 'Forbid superclasses which are non-literal constants.'
Enabled: false
VersionAdded: 0.2.0
VersionChanged: 0.5.0
VersionChanged: 0.6.1
Exclude:
- db/migrate/*.rb

Sorbet/ForbidUntypedStructProps:
Description: >-
Expand Down
8 changes: 7 additions & 1 deletion manual/cops_sorbet.md
Expand Up @@ -217,10 +217,16 @@ No documentation

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Disabled | Yes | No | 0.2.0 | 0.5.0
Disabled | Yes | No | 0.2.0 | 0.6.1

No documentation

### Configurable attributes

Name | Default value | Configurable values
--- | --- | ---
Exclude | `db/migrate/*.rb` | Array

## Sorbet/ForbidUntypedStructProps

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
Expand Down

0 comments on commit f414b56

Please sign in to comment.