mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-25 12:24:47 +02:00
no more naked returns
This commit is contained in:
parent
cf74c2cf96
commit
f9979879a1
@ -13,6 +13,7 @@ linters:
|
|||||||
- unconvert
|
- unconvert
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- makezero
|
- makezero
|
||||||
|
- nakedret
|
||||||
# - goconst # TODO: enable and fix issues
|
# - goconst # TODO: enable and fix issues
|
||||||
fast: false
|
fast: false
|
||||||
|
|
||||||
@ -20,5 +21,9 @@ linters-settings:
|
|||||||
exhaustive:
|
exhaustive:
|
||||||
default-signifies-exhaustive: true
|
default-signifies-exhaustive: true
|
||||||
|
|
||||||
|
nakedret:
|
||||||
|
# the gods will judge me but I just don't like naked returns at all
|
||||||
|
max-func-lines: 0
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go: 1.18
|
go: 1.18
|
||||||
|
@ -72,7 +72,7 @@ func CopyFile(src, dst string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return //nolint: nakedret
|
||||||
}
|
}
|
||||||
|
|
||||||
// CopyDir recursively copies a directory tree, attempting to preserve permissions.
|
// CopyDir recursively copies a directory tree, attempting to preserve permissions.
|
||||||
@ -133,5 +133,5 @@ func CopyDir(src string, dst string) (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return //nolint: nakedret
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user