Skip to content

Commit 626de38

Browse files
committed
refactor: remove unused linter annotations
Remove unnecessary nolint directives that were previously used to suppress linter warnings for unused code and magic numbers. These annotations are no longer needed as the code has been properly refactored. Also renamed an unused parameter in handlerWorkspaceDidChange Configuration to underscore to indicate it's intentionally unused.
1 parent fad050a commit 626de38

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

golangci-lint.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ func (i Issue) DiagSeverity() DiagnosticSeverity {
4242
}
4343
}
4444

45-
//nolint:unused,deadcode
4645
type GolangCILintResult struct {
4746
Issues []Issue `json:"Issues"`
4847
Report struct {

handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,6 @@ func (h *langHandler) handleTextDocumentDidSave(_ context.Context, _ *jsonrpc2.C
234234
return nil, nil
235235
}
236236

237-
func (h *langHandler) handlerWorkspaceDidChangeConfiguration(_ context.Context, _ *jsonrpc2.Conn, req *jsonrpc2.Request) (result any, err error) {
237+
func (h *langHandler) handlerWorkspaceDidChangeConfiguration(_ context.Context, _ *jsonrpc2.Conn, _ *jsonrpc2.Request) (result any, err error) {
238238
return nil, nil
239239
}

lsp.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type InitializeResult struct {
1717

1818
type TextDocumentSyncKind int
1919

20-
//nolint:unused,deadcode
2120
const (
2221
TDSKNone TextDocumentSyncKind = iota
2322
TDSKFull
@@ -89,7 +88,6 @@ type DiagnosticRelatedInformation struct {
8988

9089
type DiagnosticSeverity int
9190

92-
//nolint:unused,deadcode
9391
const (
9492
DSError DiagnosticSeverity = iota + 1
9593
DSWarning

uri.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func uriToPath(uri string) string {
2727
}
2828

2929
func isWindowsDriveURIPath(uri string) bool {
30-
//nolint:gomnd
3130
if len(uri) < 4 {
3231
return false
3332
}

0 commit comments

Comments
 (0)