mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
chore: bump golangci-lint
This commit is contained in:
@@ -136,7 +136,7 @@ jobs:
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.11.3
|
||||
version: v2.12.2
|
||||
working-directory: spinifex
|
||||
|
||||
- name: Govulncheck
|
||||
|
||||
@@ -93,6 +93,7 @@ linters:
|
||||
modernize:
|
||||
disable:
|
||||
- newexpr # don't replace aws.String() with new() — AWS SDK idiom
|
||||
- slicesbackward # less readable
|
||||
- stringsbuilder # don't replace small string concatenations with strings.Builder
|
||||
|
||||
perfsprint:
|
||||
|
||||
@@ -397,7 +397,7 @@ func (m *DHCPManager) trackAndRenew(lease *dhcp.Lease) {
|
||||
}
|
||||
|
||||
// cancel is stored in tracker.renewStop and fired from forget() or Close().
|
||||
ctx, cancel := context.WithCancel(m.stopCtx) //nolint:gosec // G118: cancel stored in tracker.renewStop, fired via forget()/Close()
|
||||
ctx, cancel := context.WithCancel(m.stopCtx)
|
||||
tracker := &managedLease{
|
||||
lease: lease,
|
||||
renewStop: cancel,
|
||||
|
||||
Reference in New Issue
Block a user