Skip to content

Commit 2850185

Browse files
committed
fix windows only nolint, enforce no unused nolints
1 parent 54f6a8b commit 2850185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ linters:
4646
- pkg: gitea.com/go-chi/cache
4747
desc: do not use the go-chi cache package, use gitea's cache system
4848
nolintlint:
49+
allow-unused: false
4950
require-explanation: true
5051
require-specific: true
5152
gocritic:

modules/graceful/manager_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ func (g *Manager) start() {
4141
// Make SVC process
4242
run := svc.Run
4343

44-
//lint:ignore SA1019 We use IsAnInteractiveSession because IsWindowsService has a different permissions profile
45-
isAnInteractiveSession, err := svc.IsAnInteractiveSession() //nolint:staticcheck
44+
isAnInteractiveSession, err := svc.IsAnInteractiveSession() //nolint:staticcheck // SA1019 We use IsAnInteractiveSession because IsWindowsService has a different permissions profile
4645
if err != nil {
4746
log.Error("Unable to ascertain if running as an Windows Service: %v", err)
4847
return

0 commit comments

Comments
 (0)