mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 11:12:25 -05:00
[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>
This commit is contained in:
parent
1144ac037f
commit
8c619d51b5
2 changed files with 7 additions and 1 deletions
|
|
@ -74,6 +74,12 @@ linters:
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: unused-parameter
|
- name: unused-parameter
|
||||||
disabled: true
|
disabled: true
|
||||||
|
- name: var-naming
|
||||||
|
arguments:
|
||||||
|
- []
|
||||||
|
- []
|
||||||
|
- - skip-package-name-checks: true
|
||||||
|
|
||||||
# https://golangci-lint.run/usage/linters/#staticcheck
|
# https://golangci-lint.run/usage/linters/#staticcheck
|
||||||
staticcheck:
|
staticcheck:
|
||||||
# Enable all checks, but disable SA1012: nil context passing.
|
# Enable all checks, but disable SA1012: nil context passing.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ steps:
|
||||||
|
|
||||||
# We use golangci-lint for linting.
|
# We use golangci-lint for linting.
|
||||||
# See: https://golangci-lint.run/
|
# See: https://golangci-lint.run/
|
||||||
image: golangci/golangci-lint:v2.1.6
|
image: golangci/golangci-lint:v2.3.1
|
||||||
pull: true
|
pull: true
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user
|
# https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue