ci: remove stylecheck linter

It is to be merged into staticcheck linter in golangci-lint v2.0.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-27 16:06:57 -07:00
parent 5aa035c69c
commit f4f2580b0d
33 changed files with 101 additions and 116 deletions

View File

@ -16,12 +16,9 @@ import (
)
const (
//nolint:stylecheck
MB_ICONWARNING = 0x00000030
//nolint:stylecheck
MB_OK = 0x00000000
//nolint:stylecheck
MB_DEFBUTTON1 = 0x00000000
MB_OK = 0x00000000
MB_DEFBUTTON1 = 0x00000000
)
const KernelWarning = "WSL Kernel installation did not complete successfully. " +

View File

@ -252,10 +252,10 @@ func combineBytesValues(a, b uint64) string {
func outputJSON(stats []containerStats) error {
type jstat struct {
Id string `json:"id"` //nolint:revive,stylecheck
Id string `json:"id"` //nolint:revive
Name string `json:"name"`
CPUTime string `json:"cpu_time"`
CpuPercent string `json:"cpu_percent"` //nolint:revive,stylecheck
CpuPercent string `json:"cpu_percent"` //nolint:revive
AverageCPU string `json:"avg_cpu"`
MemUsage string `json:"mem_usage"`
MemPerc string `json:"mem_percent"`

View File

@ -221,7 +221,7 @@ func (l ListPodReporter) ID() string {
}
// Id returns the Pod id
func (l ListPodReporter) Id() string { //nolint:revive,stylecheck
func (l ListPodReporter) Id() string { //nolint:revive
if noTrunc {
return l.ListPodsReport.Id
}
@ -235,7 +235,7 @@ func (l ListPodReporter) InfraID() string {
// InfraId returns the infra container id for the pod
// depending on trunc
func (l ListPodReporter) InfraId() string { //nolint:revive,stylecheck
func (l ListPodReporter) InfraId() string { //nolint:revive
if len(l.ListPodsReport.InfraId) == 0 {
return ""
}

View File

@ -20,7 +20,7 @@ type SpecData struct {
}
func TestDualStackSplit(t *testing.T) {
//nolint:revive,stylecheck
//nolint:revive
const (
IP4_ALL = "0.0.0.0"
IP4__LO = "127.0.0.1"

View File

@ -18,15 +18,10 @@ import (
type operation int
const (
//nolint:stylecheck
HWND_BROADCAST = 0xFFFF
//nolint:stylecheck
HWND_BROADCAST = 0xFFFF
WM_SETTINGCHANGE = 0x001A
//nolint:stylecheck
SMTO_ABORTIFHUNG = 0x0002
//nolint:stylecheck
ERR_BAD_ARGS = 0x000A
//nolint:stylecheck
ERR_BAD_ARGS = 0x000A
OPERATION_FAILED = 0x06AC
Environment = "Environment"