Provide a channel header menu action and /cleanup-channel slash command so system administrators can remove all messages from a channel, with admin checks enforced on both the web app and server. Configure CI and release workflows for the Forgejo runner and signed plugin bundles. Co-authored-by: Cursor <cursoragent@cursor.com>
64 lines
1.1 KiB
YAML
64 lines
1.1 KiB
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
modules-download-mode: readonly
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- bidichk
|
|
- bodyclose
|
|
- errcheck
|
|
- gocritic
|
|
- gosec
|
|
- govet
|
|
- ineffassign
|
|
- makezero
|
|
- misspell
|
|
- modernize
|
|
- nakedret
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unqueryvet
|
|
- unused
|
|
- whitespace
|
|
settings:
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
revive:
|
|
rules:
|
|
- name: exported
|
|
disabled: true
|
|
- name: unused-parameter
|
|
disabled: true
|
|
unqueryvet:
|
|
check-sql-builders: true
|
|
exclusions:
|
|
paths:
|
|
- webapp
|
|
rules:
|
|
- path: server/configuration.go
|
|
linters:
|
|
- unused
|
|
- path: _test\.go
|
|
linters:
|
|
- bodyclose
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gofmt:
|
|
simplify: true
|
|
rewrite-rules:
|
|
- pattern: interface{}
|
|
replacement: any
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/fmartingr/mattermost-plugin-cleanup-channel
|