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

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-04-18 13:53:07 +05:30
коммит произвёл GitHub
родитель c09c36ce5e
Коммит 98e7bb9ee9
6 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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