Skip to content

Conversation

zijiren233
Copy link
Member

@zijiren233 zijiren233 commented Aug 1, 2025

PR: Bump golangci-lint to v2.3.1

need close #5755

πŸ“‹ Task Assignment & Completion Status

Services Group

Status Module Assignee
βœ… golangci-lint (./service/devbox) @zijiren233
βœ… golangci-lint (./service/vlogs) @zijiren233
βœ… golangci-lint (./service/pay) @zijiren233
βœ… golangci-lint (./service/exceptionmonitor) @zijiren233
βœ… golangci-lint (./service) @zijiren233
⬜ golangci-lint (./service/account) @bxy4543
βœ… golangci-lint (./service/database) @zijiren233
βœ… golangci-lint (./service/launchpad) @zijiren233

Controllers Group

Status Module Assignee
βœ… golangci-lint (./controllers/db/adminer) @zijiren233
βœ… golangci-lint (./controllers/devbox) @zijiren233
βœ… golangci-lint (./controllers/pkg) @zijiren233
βœ… golangci-lint (./controllers/resources) @zijiren233
βœ… golangci-lint (./controllers/user) @zijiren233
βœ… golangci-lint (./controllers/terminal) @lingdie
βœ… golangci-lint (./controllers/job/init) @zijiren233
βœ… golangci-lint (./controllers/job/heartbeat) @zijiren233
βœ… golangci-lint (./controllers/app) @zijiren233
βœ… golangci-lint (./controllers/license) @zijiren233
βœ… golangci-lint (./controllers/objectstorage) @zijiren233
βœ… golangci-lint (./controllers/db) @zijiren233
βœ… golangci-lint (./controllers/account) @zijiren233
βœ… golangci-lint (./controllers/node) @zijiren233

Kubernetes Group

Status Module Assignee
⬜ golangci-lint (./lifecycle) @cuisongliu

Note: Replace ⬜ with βœ… when completed

πŸ› οΈ Local Testing & Quick Fix Guide

To test and fix lint issues locally:

# Navigate to your module directory
cd controllers/account

# Run linter to check for issues
golangci-lint-v2 run --color=always --config=../../.golangci.yml

# Auto-fix issues (only for linters that support --fix)
golangci-lint-v2 run --color=always --config=../../.golangci.yml --fix

Note: The --fix flag only works for certain linters. Manual fixes may still be required for some issues.

@zijiren233 zijiren233 changed the title chore: bumo golangci-lint to v2.3.0 chore: bump golangci-lint to v2.3.0 Aug 1, 2025
@zijiren233 zijiren233 force-pushed the bump-golangci-lint branch 2 times, most recently from 3115421 to fffc65d Compare August 2, 2025 10:00
@zijiren233 zijiren233 changed the title chore: bump golangci-lint to v2.3.0 chore: bump golangci-lint to v2.3.1 Aug 4, 2025
Copy link

cla-assistant bot commented Aug 6, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

zijiren233 and others added 19 commits October 14, 2025 11:10
* fix: service pay and vlogs ci lint

* fix: pay ci lint
* fix: controller objectstorage ci lint

* fix: main.go gofumpt lint error
* fix: standardize variable naming conventions in cert generation functions

Signed-off-by: cuisongliu <[email protected]>

* fix: use file permissions from header for directory creation in compress.go

Signed-off-by: cuisongliu <[email protected]>

* fix: add G402 linter rule to golangci configuration

Signed-off-by: cuisongliu <[email protected]>

* fix: update go.mod and go.sum to remove unused dependencies and add missing ones

Signed-off-by: cuisongliu <[email protected]>

* fix: add nolint directive for musttag in crictl_checker.go

Signed-off-by: cuisongliu <[email protected]>

* fix: delete progress_download.go

Signed-off-by: cuisongliu <[email protected]>

* fix: refactor bailOnError function to simplify parameters and improve error logging

Signed-off-by: cuisongliu <[email protected]>

* fix: refactor server URL construction to use net.JoinHostPort for consistency

Signed-off-by: cuisongliu <[email protected]>

* fix: simplify function signatures and improve error handling in various files. fix golang lint unparam.

Signed-off-by: cuisongliu <[email protected]>

* fix: golangci lint predeclared.

Signed-off-by: cuisongliu <[email protected]>

* fix: golangci lint prealloc.

Signed-off-by: cuisongliu <[email protected]>

* fix: remove unused imports and simplify code formatting in test files

Signed-off-by: cuisongliu <[email protected]>

* fix(image-cri-shim): improve code formatting and consistency across multiple files

Signed-off-by: cuisongliu <[email protected]>

* fix: add missing error import in server.go

Signed-off-by: cuisongliu <[email protected]>

* fix(lvscare): improve code formatting and consistency across multiple files

Signed-off-by: cuisongliu <[email protected]>

* fix(e2e): improve code formatting and consistency across multiple files

Signed-off-by: cuisongliu <[email protected]>

* fix(yaml): optimize slice initialization in MarshalConfigs function

Signed-off-by: cuisongliu <[email protected]>

* fix: format code use gofmt

Signed-off-by: cuisongliu <[email protected]>

* fix: clean up import statements across multiple files

Signed-off-by: cuisongliu <[email protected]>

---------

Signed-off-by: cuisongliu <[email protected]>
@zijiren233 zijiren233 requested review from a team as code owners October 14, 2025 03:20
@zijiren233 zijiren233 changed the title chore: bump golangci-lint to v2.3.1 ci: bump golangci-lint to v2.3.1 Oct 14, 2025
@zijiren233 zijiren233 changed the title ci: bump golangci-lint to v2.3.1 ci: bump golangci-lint to v2.5.0 Oct 14, 2025
@zijiren233 zijiren233 changed the title ci: bump golangci-lint to v2.5.0 chore(ci): bump golangci-lint to v2.5.0 Oct 14, 2025
@zijiren233 zijiren233 closed this Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment