Shopify / rubocop-sorbet

A collection of RuboCop rules for Sorbet
MIT License
182 stars 27 forks source link

Enforce parentheses around return values in signatures #190

Open andyw8 opened 1 year ago

andyw8 commented 1 year ago

For consistency, we should have a cop to ensure that

sig { returns String }

is written as

sig { returns(String) }
andyw8 commented 1 year ago

Note: This only happens if Style/MethodCallWithArgsParentheses is configured as IgnoreMacros: false. I would say rubocop-shopify should take precedence over that for sigs.