Bump golangci to use 1.18 (#20010)
https://mattermost.atlassian.net/browse/MM-42148 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c09c36ce5e
Коммит
98e7bb9ee9
@@ -192,7 +192,7 @@ jobs:
|
|||||||
check-golangci-lint:
|
check-golangci-lint:
|
||||||
docker:
|
docker:
|
||||||
# Keep the version in sync with the command in Makefile
|
# Keep the version in sync with the command in Makefile
|
||||||
- image: golangci/golangci-lint:v1.39.0
|
- image: golangci/golangci-lint:v1.45.2
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
|||||||
@@ -48,3 +48,7 @@ issues:
|
|||||||
- linters:
|
- linters:
|
||||||
- misspell
|
- misspell
|
||||||
path: "shared/markdown/html_entities.go"
|
path: "shared/markdown/html_entities.go"
|
||||||
|
|
||||||
|
- linters:
|
||||||
|
- staticcheck
|
||||||
|
text: SA1019
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -250,7 +250,7 @@ endif
|
|||||||
|
|
||||||
golangci-lint: ## Run golangci-lint on codebase
|
golangci-lint: ## Run golangci-lint on codebase
|
||||||
@# Keep the version in sync with the command in .circleci/config.yml
|
@# Keep the version in sync with the command in .circleci/config.yml
|
||||||
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.39.0
|
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
|
||||||
|
|
||||||
@echo Running golangci-lint
|
@echo Running golangci-lint
|
||||||
$(GOBIN)/golangci-lint run ./...
|
$(GOBIN)/golangci-lint run ./...
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build maincoverage
|
||||||
// +build maincoverage
|
// +build maincoverage
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ func (r *notificationRenderer) renderText(w util.BufWriter, source []byte, node
|
|||||||
|
|
||||||
func (r *notificationRenderer) renderTextBlock(w util.BufWriter, _ []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
|
func (r *notificationRenderer) renderTextBlock(w util.BufWriter, _ []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
|
||||||
if !entering {
|
if !entering {
|
||||||
if _, ok := node.NextSibling().(ast.Node); ok && node.FirstChild() != nil {
|
if node.NextSibling() != nil && node.FirstChild() != nil {
|
||||||
_ = w.WriteByte(' ')
|
_ = w.WriteByte(' ')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user