1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

Enable nolintlint linter, and fix warnings

This commit is contained in:
Stefan Haller
2025-06-30 10:40:02 +02:00
parent d9e299c1df
commit 1e92d8b7f3
5 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@ linters:
- exhaustive
- makezero
- nakedret
- nolintlint
- prealloc
- thelper
- tparallel

View File

@ -18,7 +18,7 @@ import (
)
type FilesController struct {
baseController // nolint: unused
baseController
*ListControllerTrait[*filetree.FileNode]
c *ControllerCommon
}

View File

@ -87,7 +87,7 @@ func (self *ListControllerTrait[T]) itemRangeSelected(callbacks ...func([]T, int
}
}
func (self *ListControllerTrait[T]) itemsSelected(callbacks ...func([]T) *types.DisabledReason) func() *types.DisabledReason { //nolint:unused
func (self *ListControllerTrait[T]) itemsSelected(callbacks ...func([]T) *types.DisabledReason) func() *types.DisabledReason {
return func() *types.DisabledReason {
items, _, _ := self.getSelectedItems()
if len(items) == 0 {

View File

@ -965,7 +965,7 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess *oscommands.CmdObj) (bool,
return true, nil
}
func (gui *Gui) runSubprocess(cmdObj *oscommands.CmdObj) error { //nolint:unparam
func (gui *Gui) runSubprocess(cmdObj *oscommands.CmdObj) error {
gui.LogCommand(cmdObj.ToString(), true)
subprocess := cmdObj.GetCmd()

View File

@ -48,7 +48,7 @@ func RunTests(args RunTestArgs) error {
}
for _, test := range args.Tests {
args.TestWrapper(test, func() error { //nolint: thelper
args.TestWrapper(test, func() error {
paths := NewPaths(
filepath.Join(testDir, test.Name()),
)