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:
Émile Ré
2026-05-19 09:47:52 +04:00
parent cfbd761a93
commit 091be2653a
5 changed files with 78 additions and 34 deletions

View File

@@ -91,10 +91,12 @@ func firecrawlSearch(
return nil, fmt.Errorf("cannot build search URL: %w", err)
}
body, err := json.Marshal(firecrawlRequest{
Query: query,
Limit: maxResults,
})
body, err := json.Marshal(
firecrawlRequest{
Query: query,
Limit: maxResults,
},
)
if err != nil {
return nil, fmt.Errorf("cannot marshal request: %w", err)
}
@@ -132,11 +134,14 @@ func firecrawlSearch(
results := make([]searchResult, 0, len(fcResp.Data.Web))
for _, r := range fcResp.Data.Web {
results = append(results, searchResult{
Title: r.Title,
URL: r.URL,
Snippet: r.Description,
})
results = append(
results,
searchResult{
Title: r.Title,
URL: r.URL,
Snippet: r.Description,
},
)
}
return results, nil