mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Bump golangci to use 1.18 (#20010)
https://mattermost.atlassian.net/browse/MM-42148 ```release-note NONE ```
This commit is contained in:
parent
c09c36ce5e
commit
98e7bb9ee9
@ -192,7 +192,7 @@ jobs:
|
||||
check-golangci-lint:
|
||||
docker:
|
||||
# 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:
|
||||
- checkout
|
||||
- run:
|
||||
|
@ -48,3 +48,7 @@ issues:
|
||||
- linters:
|
||||
- misspell
|
||||
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
|
||||
@# 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
|
||||
$(GOBIN)/golangci-lint run ./...
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build gofuzz
|
||||
// +build gofuzz
|
||||
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build maincoverage
|
||||
// +build maincoverage
|
||||
|
||||
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) {
|
||||
if !entering {
|
||||
if _, ok := node.NextSibling().(ast.Node); ok && node.FirstChild() != nil {
|
||||
if node.NextSibling() != nil && node.FirstChild() != nil {
|
||||
_ = w.WriteByte(' ')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user