From 8c619d51b5f9ab368b375dfa643ee70b6f34e656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 21 Aug 2025 15:57:25 +0200 Subject: [PATCH] [chore] bump golangci-lint version in CI, disable var-naming package name checks (#4372) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk # Description This PR bumps golangci-lint used by CI to the latest version and partially disables the `var-naming` rule, which complains about the `common` and `util` package names. ## Checklist - [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [x] I/we have not leveraged AI to create the proposed changes. - [ ] I/we have performed a self-review of added code. - [ ] I/we have written code that is legible and maintainable by others. - [ ] I/we have commented the added code, particularly in hard-to-understand areas. - [ ] I/we have made any necessary changes to documentation. - [ ] I/we have added tests that cover new code. - [ ] I/we have run tests and they pass locally with the changes. - [ ] I/we have run `go fmt ./...` and `golangci-lint run`. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4372 Co-authored-by: nicole mikołajczyk Co-committed-by: nicole mikołajczyk --- .golangci.yml | 6 ++++++ .woodpecker/pr.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 86b71194a..62c10e4f3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -74,6 +74,12 @@ linters: disabled: true - name: unused-parameter disabled: true + - name: var-naming + arguments: + - [] + - [] + - - skip-package-name-checks: true + # https://golangci-lint.run/usage/linters/#staticcheck staticcheck: # Enable all checks, but disable SA1012: nil context passing. diff --git a/.woodpecker/pr.yaml b/.woodpecker/pr.yaml index 050b989e4..0e6266807 100644 --- a/.woodpecker/pr.yaml +++ b/.woodpecker/pr.yaml @@ -22,7 +22,7 @@ steps: # We use golangci-lint for linting. # See: https://golangci-lint.run/ - image: golangci/golangci-lint:v2.1.6 + image: golangci/golangci-lint:v2.3.1 pull: true # https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user