* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w`

* added goimports lint check to .golangci.yml

* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` for a corner case

* make app-layers, *-mocks and store-layers for ci check

Co-authored-by: Mahmudul Haque <mahmudulhaque@protonmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2021-01-07 22:42:43 +05:30
коммит произвёл GitHub
родитель 0c2c31bb0a
Коммит e89b26e8f3
337 изменённых файлов: 728 добавлений и 508 удалений

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

@@ -11,9 +11,9 @@ import (
"path/filepath"
"testing"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
)
func TestSanitizePath(t *testing.T) {

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

@@ -15,6 +15,7 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/mattermost/go-i18n/i18n"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
)

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

@@ -12,6 +12,7 @@ import (
"strings"
"github.com/mattermost/go-i18n/i18n"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"

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

@@ -7,9 +7,10 @@ import (
"bytes"
"testing"
"github.com/mattermost/mattermost-server/v5/utils/testutils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v5/utils/testutils"
)
func TestCountFrames(t *testing.T) {

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

@@ -3,7 +3,9 @@
package markdown
import "strings"
import (
"strings"
)
type Line struct {
Range

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

@@ -4,12 +4,13 @@
package utils
import (
"github.com/pkg/errors"
"io/ioutil"
"net"
"net/http"
"net/url"
"strings"
"github.com/pkg/errors"
)
func StringInSlice(a string, slice []string) bool {