Skip to content

Commit ad2864f

Browse files
committed
style(lsp/rename_test): gofmt comment spacing in TestRefUseLabelBytesAllForms
Double-space alignment before inline // comments is not gofmt-canonical; collapse to single space so golangci-lint gofmt check passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUK9cuin8PW6MjnK2JTxLb
1 parent de3056b commit ad2864f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

internal/lsp/rename_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -677,15 +677,15 @@ func TestRefUseLabelBytesAllForms(t *testing.T) {
677677
wantOK bool
678678
wantLabel string
679679
}{
680-
{`[text][docs]`, 2, "docs", true, "docs"}, // full: cursor in text
681-
{`[text][docs]`, 5, "docs", true, "docs"}, // full: cursor at ] of text (pr.close boundary)
682-
{`[text][docs]`, 6, "docs", true, "docs"}, // full: cursor at [ of label (pr.open boundary)
683-
{`[text][docs]`, 8, "docs", true, "docs"}, // full: cursor in label
684-
{`[docs]`, 2, "docs", true, "docs"}, // shortcut
685-
{`[docs][]`, 2, "docs", true, "docs"}, // collapsed: cursor in leading
686-
{`[docs][]`, 7, "docs", true, "docs"}, // collapsed: cursor in trailing
687-
{`[other]`, 2, "docs", false, ""}, // wrong label
688-
{`[docs]`, 99, "docs", false, ""}, // cursor outside
680+
{`[text][docs]`, 2, "docs", true, "docs"}, // full: cursor in text
681+
{`[text][docs]`, 5, "docs", true, "docs"}, // full: cursor at ] of text (pr.close boundary)
682+
{`[text][docs]`, 6, "docs", true, "docs"}, // full: cursor at [ of label (pr.open boundary)
683+
{`[text][docs]`, 8, "docs", true, "docs"}, // full: cursor in label
684+
{`[docs]`, 2, "docs", true, "docs"}, // shortcut
685+
{`[docs][]`, 2, "docs", true, "docs"}, // collapsed: cursor in leading
686+
{`[docs][]`, 7, "docs", true, "docs"}, // collapsed: cursor in trailing
687+
{`[other]`, 2, "docs", false, ""}, // wrong label
688+
{`[docs]`, 99, "docs", false, ""}, // cursor outside
689689
}
690690
for _, tc := range cases {
691691
row := []byte(tc.row)

0 commit comments

Comments
 (0)