wsl icon indicating copy to clipboard operation
wsl copied to clipboard

Require new lines after multiline function signature

Open thaney071 opened this issue 3 years ago • 0 comments

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")
	}
...
}

thaney071 avatar Nov 13 '21 05:11 thaney071