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:
@ -7,6 +7,7 @@ linters:
|
||||
- exhaustive
|
||||
- makezero
|
||||
- nakedret
|
||||
- nolintlint
|
||||
- prealloc
|
||||
- thelper
|
||||
- tparallel
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
type FilesController struct {
|
||||
baseController // nolint: unused
|
||||
baseController
|
||||
*ListControllerTrait[*filetree.FileNode]
|
||||
c *ControllerCommon
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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()
|
||||
|
@ -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()),
|
||||
)
|
||||
|
Reference in New Issue
Block a user