summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar nicole mikołajczyk <git@mkljczk.pl>2025-08-21 15:57:25 +0200
committerLibravatar tobi <kipvandenbos@noreply.codeberg.org>2025-08-21 15:57:25 +0200
commit8c619d51b5f9ab368b375dfa643ee70b6f34e656 (patch)
treeaa5d0485f9f8124f255e7e2c017076f92982e818
parent[feature] add metrics for worker counts, and worker queue sizes (#4387) (diff)
downloadgotosocial-8c619d51b5f9ab368b375dfa643ee70b6f34e656.tar.xz
[chore] bump golangci-lint version in CI, disable var-naming package name checks (#4372)
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl> # 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 <git@mkljczk.pl> Co-committed-by: nicole mikołajczyk <git@mkljczk.pl>
-rw-r--r--.golangci.yml6
-rw-r--r--.woodpecker/pr.yaml2
2 files changed, 7 insertions, 1 deletions
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