Enforce multiline rule for single multiline arguments
Update go-style guide and cursor rule to clarify that even a single argument spanning multiple lines must break after the opening parenthesis. Fix six violations across the branch. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -251,10 +251,13 @@ RETURNING id, (xmax = 0) AS inserted
|
||||
Inserted bool
|
||||
}
|
||||
|
||||
res, err := pgx.CollectExactlyOneRow(rows, func(row pgx.CollectableRow) (upsertResult, error) {
|
||||
var r upsertResult
|
||||
return r, row.Scan(&r.ID, &r.Inserted)
|
||||
})
|
||||
res, err := pgx.CollectExactlyOneRow(
|
||||
rows,
|
||||
func(row pgx.CollectableRow) (upsertResult, error) {
|
||||
var r upsertResult
|
||||
return r, row.Scan(&r.ID, &r.Inserted)
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return gid.GID{}, false, fmt.Errorf("cannot collect upsert result: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user