mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-04 10:34:55 +02:00
975d2bedb6
From the go 1.19 release notes: Command and LookPath no longer allow results from a PATH search to be found relative to the current directory. This removes a common source of security problems but may also break existing programs that depend on using, say, exec.Command("prog") to run a binary named prog (or, on Windows, prog.exe) in the current directory. See the os/exec package documentation for information about how best to update such programs.
30 lines
519 B
YAML
30 lines
519 B
YAML
linters:
|
|
disable:
|
|
- structcheck # gives false positives
|
|
enable:
|
|
- gofumpt
|
|
- thelper
|
|
- goimports
|
|
- tparallel
|
|
- wastedassign
|
|
- exportloopref
|
|
- unparam
|
|
- prealloc
|
|
- unconvert
|
|
- exhaustive
|
|
- makezero
|
|
- nakedret
|
|
# - goconst # TODO: enable and fix issues
|
|
fast: false
|
|
|
|
linters-settings:
|
|
exhaustive:
|
|
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:
|
|
go: 1.20
|