Skip to content

Commit 1d0ba14

Browse files
author
Alexander Belovitskiy
committed
style: fix gofumpt - group function parameters of same type
1 parent f557ae8 commit 1d0ba14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/cli/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (o *Output) PrintStatistics(stats *Statistics) {
195195
}
196196

197197
// PrintDiagnostic prints a single diagnostic with context.
198-
func (o *Output) PrintDiagnostic(file string, line int, col int, severity string, message string) {
198+
func (o *Output) PrintDiagnostic(file string, line, col int, severity, message string) {
199199
if o.quiet && severity == "warning" {
200200
return
201201
}

internal/lsp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Document struct {
5252
}
5353

5454
// NewServer creates a new LSP server.
55-
func NewServer(in io.Reader, out io.Writer, logger io.Writer) *Server {
55+
func NewServer(in io.Reader, out, logger io.Writer) *Server {
5656
return &Server{
5757
reader: json.NewDecoder(in),
5858
writer: json.NewEncoder(out),

internal/messages/messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func getMessage(msgType MessageType) DiagnosticMessage {
171171
}
172172

173173
// FormatDiagnostic formats a diagnostic message with file location.
174-
func FormatDiagnostic(file string, line int, col int, msgType MessageType, verbose bool) string {
174+
func FormatDiagnostic(file string, line, col int, msgType MessageType, verbose bool) string {
175175
location := fmt.Sprintf("%s:%d:%d", file, line, col)
176176
message := GetEnhancedMessage(msgType, verbose)
177177

internal/tui/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
)
6868

6969
// RenderDiffPreview renders a diff preview showing before/after changes.
70-
func RenderDiffPreview(original, modified string, lineNum int, contextLines int) string {
70+
func RenderDiffPreview(original, modified string, lineNum, contextLines int) string {
7171
var b strings.Builder
7272

7373
b.WriteString(previewTitleStyle.Render("📋 Preview Changes"))

0 commit comments

Comments
 (0)