Bump golangci to use 1.18 (#20010)

https://mattermost.atlassian.net/browse/MM-42148

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker 2022-04-18 13:53:07 +05:30 committed by GitHub
parent c09c36ce5e
commit 98e7bb9ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 3 deletions

View File

@ -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:

View File

@ -48,3 +48,7 @@ issues:
- linters:
- misspell
path: "shared/markdown/html_entities.go"
- linters:
- staticcheck
text: SA1019

View File

@ -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 ./...

View File

@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.

View File

@ -1,3 +1,4 @@
//go:build maincoverage
// +build maincoverage
package main

View File

@ -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(' ')
}
}