Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
version: "2"
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- durationcheck
|
|
- gocritic
|
|
- gomodguard
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
- usetesting
|
|
- whitespace
|
|
settings:
|
|
misspell:
|
|
locale: US
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
- -SA1008
|
|
- -SA1019
|
|
- -SA4000
|
|
- -SA9004
|
|
- -ST1000
|
|
- -ST1005
|
|
- -ST1016
|
|
- -ST1021
|
|
- -ST1020
|
|
- -U1000
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- path: (.+)\.go$
|
|
text: "empty-block:"
|
|
- path: (.+)\.go$
|
|
text: "unused-parameter:"
|
|
- path: (.+)\.go$
|
|
text: "dot-imports:"
|
|
- path: (.+)\.go$
|
|
text: "singleCaseSwitch: should rewrite switch statement to if statement"
|
|
- path: (.+)\.go$
|
|
text: "unlambda: replace"
|
|
- path: (.+)\.go$
|
|
text: "captLocal:"
|
|
- path: (.+)\.go$
|
|
text: "should have a package comment"
|
|
- path: (.+)\.go$
|
|
text: "ifElseChain:"
|
|
- path: (.+)\.go$
|
|
text: "elseif:"
|
|
- path: (.+)\.go$
|
|
text: "Error return value of"
|
|
- path: (.+)\.go$
|
|
text: "unnecessary conversion"
|
|
- path: (.+)\.go$
|
|
text: "Error return value is not checked"
|
|
issues:
|
|
max-issues-per-linter: 100
|
|
max-same-issues: 100
|
|
formatters:
|
|
enable:
|
|
- gofumpt
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|