containerd / containerd/nerdctl

Refactor code to enable some lint checks

Open
#4,493 10 comments 0 reactions 1 assignee Claimed by @yashkukrecha View on GitHub
good first issue kind/refactor priority/low
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

After upgrading golangci-lint to v2.4.0 (2025-08-14), CI started failing:

https://github.com/containerd/nerdctl/actions/runs/17294879972/job/49090536229?pr=4490
https://github.com/containerd/nerdctl/actions/runs/17294879986/job/49090535739?pr=4490

As a temporary workaround, we’ve disabled the following linters:
```
- name: redundant-test-main-exit
disabled: true
- name: enforce-switch-style
disabled: true
- name: var-naming
disabled: true
```

We need refactor code to re-enabe these checks.

Details: https://github.com/containerd/nerdctl/pull/4490

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.