pluginctl: update to v0.1.2

This commit is contained in:
Felipe M 2025-08-04 13:49:25 +02:00
parent a95ca8fb76
commit 35174c61a2
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
3 changed files with 110 additions and 48 deletions

View file

@ -1,48 +1,88 @@
run:
timeout: 5m
modules-download-mode: readonly
linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/mattermost/mattermost-plugin-bridge-xmpp
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
misspell:
locale: US
version: "2"
linters:
disable-all: true
enable:
- bodyclose
- errcheck
- gocritic
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- revive
- staticcheck
- stylecheck
- staticcheck # Now includes gosimple and stylecheck
- typecheck
- unconvert
- unused
- whitespace
- govet # Ensure this is included
settings:
errcheck:
# Add any errcheck settings here
exclude-functions:
- io.Copy(*bytes.Buffer)
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
gosec:
# Add gosec settings
excludes:
- G104 # Errors unhandled
staticcheck:
# Configure staticcheck (includes gosimple/stylecheck checks)
checks: ["all"]
revive:
# Add revive rules
rules:
- name: exported
disabled: false
exclusions:
presets:
- comments
- std-error-handling
- common-false-positives
rules:
- path: '_test\.go'
linters:
- errcheck
- gosec
formatters:
enable:
- gofmt
- goimports
settings:
gofmt:
simplify: true
goimports:
local-prefixes:
- github.com/mattermost/mattermost-plugin-bridge-xmpp
output:
formats:
text:
path: stdout
colors: true
print-linter-name: true
run:
timeout: 5m
tests: true
issues:
exclude-rules:
- path: server/configuration.go
linters:
- unused
- path: _test\.go
linters:
- bodyclose
- scopelint # https://github.com/kyoh86/scopelint/issues/4
max-issues-per-linter: 0
max-same-issues: 0
fix: false