mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* inline mattermost-govet * fix style issues * simplify the openApiSync spec test * README.md tweaks * fix missing licenses * simplify README.md * trigger server-ci on tools/mattermost-govet/** * Apply https://github.com/mattermost/mattermost-govet/commit/470cf78253f0aa85a4f4b5b50002682bf823e729 --------- Co-authored-by: Mattermost Build <[email protected]>
58 lines
2.3 KiB
Go
58 lines
2.3 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/apiAuditLogs"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/concurrentIndex"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/configtelemetry"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/emptyInterface"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/emptyStrCmp"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/equalLenAsserts"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/errorAssertions"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/errorVars"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/errorVarsName"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/immut"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/inconsistentReceiverName"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/license"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/mutexLock"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/noSelectStar"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/openApiSync"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/pointerToSlice"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/rawSql"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/requestCtxNaming"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/structuredLogging"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/tFatal"
|
|
"github.com/mattermost/mattermost/tools/mattermost-govet/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,
|
|
noSelectStar.Analyzer,
|
|
requestCtxNaming.Analyzer,
|
|
concurrentIndex.Analyzer,
|
|
)
|
|
}
|