Ville Vesilehto
eeb1663847
lint: enable usetesting linter ( #7322 )
...
Enable the usetesting linter in golangci.yml configuration to
enforce proper testing practices. Replace manual temporary
directory and file creation with t.TempDir() in test files.
This improves test reliability by ensuring proper cleanup and
follows Go testing best practices.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2025-05-27 10:02:55 -07:00
Manuel Rüger
76ba39ffe9
chore: Upgrade to golangci-lint v2 ( #7236 )
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu >
2025-04-04 14:27:39 -04:00
Zhizhen He
5de473da1c
fix: remove unnecessary conversion ( #6258 )
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-08-14 15:14:09 +02:00
Ondřej Benkovský
8c489bd400
replace reviewdog fully by golangci-lint ( #6139 )
...
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com >
2023-06-09 18:08:23 +02:00
Ondřej Benkovský
257ca65a17
GO linting bump and removal of deprecated linters ( #5624 )
...
* bump golangci-lint with support of go 1.19
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com >
* remove deprecated usage of varcheck, deadcode, and structcheck
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com >
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com >
2022-09-19 05:53:43 -07:00
Ondřej Benkovský
c2dbb7141a
add golangci-lint linter ( #5499 )
2022-07-10 11:06:33 -07:00