* adopt golangci-lint v2

No actual linting changes in this commit, just upgraded tooling and
directives to ignore new linter rules. Adopting v2 solves some
gosec issues in v1 and also happens to be a nice performance boost!
As part of this PR, we also drop support for `MM_NO_ENTERPRISE_LINT`
which hasn't been need for a while anyway.

* simplify: go install is fine!

* missing GOBIN

* golangci-lint: drop legacy preset exclusion
Этот коммит содержится в:
Jesse Hallam
2025-05-30 12:31:30 -03:00
коммит произвёл GitHub
родитель 761584c040
Коммит e04f487cb8
3 изменённых файлов: 241 добавлений и 201 удалений

2
.github/workflows/server-ci-template.yml поставляемый
Просмотреть файл

@@ -130,7 +130,7 @@ jobs:
- name: Run plugin-checker
run: make plugin-checker
- name: Run mattermost-vet
run: make vet BUILD_NUMBER='${GITHUB_HEAD_REF}' MM_NO_ENTERPRISE_LINT=true
run: make vet BUILD_NUMBER='${GITHUB_HEAD_REF}'
check-mattermost-vet-api:
name: Vet API
runs-on: ubuntu-22.04