Skip to content

Commit 1e92d8b

Browse files
committed
Enable nolintlint linter, and fix warnings
1 parent d9e299c commit 1e92d8b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ linters:
77
- exhaustive
88
- makezero
99
- nakedret
10+
- nolintlint
1011
- prealloc
1112
- thelper
1213
- tparallel

pkg/gui/controllers/files_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
type FilesController struct {
21-
baseController // nolint: unused
21+
baseController
2222
*ListControllerTrait[*filetree.FileNode]
2323
c *ControllerCommon
2424
}

pkg/gui/controllers/list_controller_trait.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (self *ListControllerTrait[T]) itemRangeSelected(callbacks ...func([]T, int
8787
}
8888
}
8989

90-
func (self *ListControllerTrait[T]) itemsSelected(callbacks ...func([]T) *types.DisabledReason) func() *types.DisabledReason { //nolint:unused
90+
func (self *ListControllerTrait[T]) itemsSelected(callbacks ...func([]T) *types.DisabledReason) func() *types.DisabledReason {
9191
return func() *types.DisabledReason {
9292
items, _, _ := self.getSelectedItems()
9393
if len(items) == 0 {

pkg/gui/gui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess *oscommands.CmdObj) (bool,
965965
return true, nil
966966
}
967967

968-
func (gui *Gui) runSubprocess(cmdObj *oscommands.CmdObj) error { //nolint:unparam
968+
func (gui *Gui) runSubprocess(cmdObj *oscommands.CmdObj) error {
969969
gui.LogCommand(cmdObj.ToString(), true)
970970

971971
subprocess := cmdObj.GetCmd()

pkg/integration/components/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func RunTests(args RunTestArgs) error {
4848
}
4949

5050
for _, test := range args.Tests {
51-
args.TestWrapper(test, func() error { //nolint: thelper
51+
args.TestWrapper(test, func() error {
5252
paths := NewPaths(
5353
filepath.Join(testDir, test.Name()),
5454
)

0 commit comments

Comments
 (0)