style: add blank lines between declarations and statement blocks

Separate top-level declarations and multi-line statements with blank
lines, keeping an "if err != nil" check next to the statement it
belongs to. Expand semicolon one-liners, group the nativeTransport
fields by purpose, and format the cgo preamble as readable C.
Apart from the expanded one-liners and the C preamble, the change
is whitespace only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 18:36:19 +01:00
1 parent ec0297fd23
commit a6fda8f8d3
25 files changed
+929 -41

No files matched your search

+3
View File
@@ -14,14 +14,17 @@ func TestCLIRejectsFinalizationWithoutWriterStop(t *testing.T) {
t.Fatalf("got %v", err)
}
}
func TestCLIUsage(t *testing.T) {
var out, log bytes.Buffer
if err := run(context.Background(), []string{"--help"}, &out, &log); err != nil {
t.Fatal(err)
}
if !strings.Contains(out.String(), "finalize") {
t.Fatal("help missing")
}
for _, args := range [][]string{nil, {"unknown"}, {"sync"}, {"status"}, {"sync", "--config", "x", "extra"}} {
if err := run(context.Background(), args, &out, &log); err == nil {
t.Fatalf("accepted %v", args)