-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.go
51 lines (48 loc) · 1.72 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package main
import (
"github.com/mattermost/mattermost-govet/v2/apiAuditLogs"
"github.com/mattermost/mattermost-govet/v2/configtelemetry"
"github.com/mattermost/mattermost-govet/v2/emptyInterface"
"github.com/mattermost/mattermost-govet/v2/emptyStrCmp"
"github.com/mattermost/mattermost-govet/v2/equalLenAsserts"
"github.com/mattermost/mattermost-govet/v2/errorAssertions"
"github.com/mattermost/mattermost-govet/v2/errorVars"
"github.com/mattermost/mattermost-govet/v2/errorVarsName"
"github.com/mattermost/mattermost-govet/v2/immut"
"github.com/mattermost/mattermost-govet/v2/inconsistentReceiverName"
"github.com/mattermost/mattermost-govet/v2/license"
"github.com/mattermost/mattermost-govet/v2/mutexLock"
"github.com/mattermost/mattermost-govet/v2/openApiSync"
"github.com/mattermost/mattermost-govet/v2/pointerToSlice"
"github.com/mattermost/mattermost-govet/v2/rawSql"
"github.com/mattermost/mattermost-govet/v2/structuredLogging"
"github.com/mattermost/mattermost-govet/v2/tFatal"
"github.com/mattermost/mattermost-govet/v2/wraperrors"
"golang.org/x/tools/go/analysis/unitchecker"
)
func main() {
unitchecker.Main(
license.Analyzer,
license.EEAnalyzer,
structuredLogging.Analyzer,
// appErrorWhere.Analyzer,
tFatal.Analyzer,
equalLenAsserts.Analyzer,
openApiSync.Analyzer,
rawSql.Analyzer,
inconsistentReceiverName.Analyzer,
apiAuditLogs.Analyzer,
immut.Analyzer,
emptyInterface.Analyzer,
emptyStrCmp.Analyzer,
configtelemetry.Analyzer,
errorAssertions.Analyzer,
errorVarsName.Analyzer,
errorVars.Analyzer,
pointerToSlice.Analyzer,
mutexLock.Analyzer,
wraperrors.Analyzer,
)
}