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:
Issy Long 2024-02-24 23:53:26 +00:00
parent c11a07db5b
commit e654af3e15
No known key found for this signature in database

View File

@ -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