Disable RuboCop Naming/BlockForwarding and Style/ArgumentsForwarding
- These break Sorbet type signatures:
```
RuntimeError:
The declaration for is missing parameter(s): &
```
This commit is contained in:
parent
c11a07db5b
commit
e654af3e15
@ -171,6 +171,10 @@ Lint/UnusedMethodArgument:
|
||||
Metrics:
|
||||
Enabled: false
|
||||
|
||||
# Disabled because it breaks Sorbet: "The declaration for `with` is missing parameter(s): & (RuntimeError)"
|
||||
Naming/BlockForwarding:
|
||||
Enabled: false
|
||||
|
||||
# Allow dashes in filenames.
|
||||
Naming/FileName:
|
||||
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
|
||||
@ -289,6 +293,10 @@ Sorbet/TrueSigil:
|
||||
Style/AndOr:
|
||||
EnforcedStyle: always
|
||||
|
||||
# Disabled because it breaks Sorbet: "The declaration for `with` is missing parameter(s): & (RuntimeError)"
|
||||
Style/ArgumentsForwarding:
|
||||
Enabled: false
|
||||
|
||||
# Avoid leaking resources.
|
||||
Style/AutoResourceCleanup:
|
||||
Enabled: true
|
||||
@ -463,9 +471,3 @@ Style/UnlessLogicalOperators:
|
||||
# a bit confusing to non-Rubyists but useful for longer arrays
|
||||
Style/WordArray:
|
||||
MinSize: 4
|
||||
|
||||
# TODO: Enable these cops once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
|
||||
Naming/BlockForwarding:
|
||||
Enabled: false
|
||||
Style/ArgumentsForwarding:
|
||||
Enabled: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user