wsl
wsl copied to clipboard
Require new lines after multiline function signature
The rule for a block should not start with a whitespace should not apply to a multiline function signature. Instead a no cuddle rule should be in place instead.
Example
func (c *Client) GetSegment(
ctx context.Context,
uri *url.URL,
out io.Writer,
) (written int64, err error) {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, uri.String(), http.NoBody)
if err != nil {
return 0, errors.Wrap(err, "failed to create request for getting segment")
}
...
}