mirror of
https://github.com/hanzoai/team.git
synced 2026-11-01 07:55:31 +00:00
* AutoTranslate config settings * comment out Agents provider * Add auto translate timeout config validation * i18n messages for autotranslation config validation * fix test * validate url for libreTranslate * Feedback review * Admin Console UI for Auto-Translation * fix admin console conditional section display * i18n * removed unintentional change * update admin.general.localization.autoTranslateProviderDescription newline * fix lint * Fix types * UX feedback review * fix typo in i18n * Fix AutoTranslation feature flag * feedback review * Fix test default values * feedback review * re-add isHidden property to feature discovery * Database Migrations, Indexes and Methods for Auto-Translation * i18n * fix retrylayer and storetest * Fix search query * fix lint * remove the request.CTX and modify Translation model * fix lint and external url * Add settings to playwright * Add empty as a valid value for the Provider * Update jsonb queries * Fix queries and add model methods * fix go lint * go lint fix 2 * fix db migrations * feedback review + store cache * increase migration number * cleanup autotranslation store cache * use NULL as objectType for posts * fix bad merge * fix tests * add missing i18n * Switch prop bags column to boolean * fix lint * fix tests * Remove database search * use Builder methods --------- Co-authored-by: BenCookie95 <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
223 lines
7.9 KiB
YAML
223 lines
7.9 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- bidichk
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- makezero
|
|
- misspell
|
|
- modernize
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unqueryvet
|
|
- unused
|
|
- whitespace
|
|
settings:
|
|
govet:
|
|
disable:
|
|
- fieldalignment
|
|
enable-all: true
|
|
unqueryvet:
|
|
check-sql-builders: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- unused
|
|
text: SetupEnterprise
|
|
- linters:
|
|
- revive
|
|
text: var-naming|error-naming|exported|increment-decrement|error-strings|if-return|unused-parameter|blank-imports|empty-block
|
|
- linters:
|
|
- revive
|
|
path: enterprise
|
|
text: var-naming|error-naming|exported|increment-decrement|error-strings|if-return|unused-parameter|blank-imports|empty-block
|
|
- linters:
|
|
- misspell
|
|
path: platform/shared/markdown/html_entities.go
|
|
- linters:
|
|
- unqueryvet
|
|
path: channels/store/sqlstore/post_store.go
|
|
- linters:
|
|
- staticcheck
|
|
text: SA1019
|
|
- linters:
|
|
- staticcheck
|
|
text: ST1023
|
|
- linters:
|
|
- staticcheck
|
|
text: ST1012
|
|
- linters:
|
|
- staticcheck
|
|
text: ST1005
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1011
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1001
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1003
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1012
|
|
- linters:
|
|
- staticcheck
|
|
text: QT1019
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1008
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1004
|
|
- linters:
|
|
- staticcheck
|
|
text: ST1019
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1006
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1002
|
|
- linters:
|
|
- staticcheck
|
|
text: QF1007
|
|
- linters:
|
|
- errcheck
|
|
path: "\
|
|
channels/store/localcachelayer/autotranslation_layer.go|\
|
|
channels/store/localcachelayer/channel_layer.go|\
|
|
channels/store/localcachelayer/channel_layer_test.go|\
|
|
channels/store/localcachelayer/emoji_layer.go|\
|
|
channels/store/localcachelayer/emoji_layer_test.go|\
|
|
channels/store/localcachelayer/file_info_layer.go|\
|
|
channels/store/localcachelayer/file_info_layer_test.go|\
|
|
channels/store/localcachelayer/post_layer.go|\
|
|
channels/store/localcachelayer/post_layer_test.go|\
|
|
channels/store/localcachelayer/reaction_layer.go|\
|
|
channels/store/localcachelayer/reaction_layer_test.go|\
|
|
channels/store/localcachelayer/role_layer.go|\
|
|
channels/store/localcachelayer/role_layer_test.go|\
|
|
channels/store/localcachelayer/scheme_layer.go|\
|
|
channels/store/localcachelayer/scheme_layer_test.go|\
|
|
channels/store/localcachelayer/team_layer.go|\
|
|
channels/store/localcachelayer/terms_of_service_layer.go|\
|
|
channels/store/localcachelayer/terms_of_service_layer_test.go|\
|
|
channels/store/localcachelayer/user_layer.go|\
|
|
channels/store/localcachelayer/webhook_layer.go|\
|
|
channels/store/localcachelayer/webhook_layer_test.go|\
|
|
channels/store/retrylayer/retrylayer_test.go|\
|
|
channels/store/searchtest/channel_layer.go|\
|
|
channels/store/searchtest/file_info_layer.go|\
|
|
channels/store/searchtest/helper.go|\
|
|
channels/store/searchtest/post_layer.go|\
|
|
channels/store/searchtest/user_layer.go|\
|
|
channels/store/sqlstore/command_store.go|\
|
|
channels/store/sqlstore/integrity_test.go|\
|
|
channels/store/sqlstore/session_store.go|\
|
|
channels/store/sqlstore/store.go|\
|
|
channels/store/storetest/channel_bookmark.go|\
|
|
channels/store/storetest/channel_store.go|\
|
|
channels/store/storetest/channel_store_categories.go|\
|
|
channels/store/storetest/file_info_store.go|\
|
|
channels/store/storetest/group_store.go|\
|
|
channels/store/storetest/job_store.go|\
|
|
channels/store/storetest/post_persistent_notification_store.go|\
|
|
channels/store/storetest/post_store.go|\
|
|
channels/store/storetest/product_notices_store.go|\
|
|
channels/store/storetest/role_store.go|\
|
|
channels/store/storetest/scheme_store.go|\
|
|
channels/store/storetest/shared_channel_store.go|\
|
|
channels/store/storetest/team_store.go|\
|
|
channels/store/storetest/thread_store.go|\
|
|
channels/store/storetest/user_store.go|\
|
|
cmd/mattermost/commands/cmdtestlib.go|\
|
|
cmd/mattermost/commands/db.go|\
|
|
cmd/mattermost/commands/export.go|\
|
|
cmd/mattermost/commands/import.go|\
|
|
cmd/mattermost/commands/jobserver.go|\
|
|
cmd/mattermost/commands/server.go|\
|
|
cmd/mattermost/commands/server_test.go|\
|
|
cmd/mattermost/commands/test.go|\
|
|
cmd/mattermost/commands/version.go|\
|
|
platform/services/cache/lru_striped.go|\
|
|
platform/services/cache/lru_striped_bench_test.go|\
|
|
platform/services/cache/lru_striped_test.go|\
|
|
platform/services/cache/lru_test.go|\
|
|
platform/services/docextractor/combine.go|\
|
|
platform/services/docextractor/pdf.go|\
|
|
platform/services/imageproxy/atmos_camo_test.go|\
|
|
platform/services/imageproxy/local.go|\
|
|
platform/services/imageproxy/local_test.go|\
|
|
platform/services/remotecluster/invitation.go|\
|
|
platform/services/remotecluster/ping_test.go|\
|
|
platform/services/remotecluster/send_test.go|\
|
|
platform/services/remotecluster/sendfile.go|\
|
|
platform/services/remotecluster/sendprofileImage_test.go|\
|
|
platform/services/sharedchannel/attachment.go|\
|
|
platform/services/sharedchannel/channelinvite.go|\
|
|
platform/services/sharedchannel/permalink_test.go|\
|
|
platform/services/sharedchannel/sync_recv.go|\
|
|
platform/services/sharedchannel/sync_send.go|\
|
|
platform/services/slackimport/slackimport.go|\
|
|
platform/services/telemetry/telemetry.go|\
|
|
platform/services/telemetry/telemetry_test.go|\
|
|
platform/services/upgrader/upgrader_linux.go|\
|
|
platform/services/upgrader/upgrader_linux_test.go|\
|
|
platform/shared/filestore/filesstore_test.go|\
|
|
platform/shared/filestore/s3store.go|\
|
|
platform/shared/filestore/s3store_test.go|\
|
|
platform/shared/mail/inbucket.go|\
|
|
platform/shared/mail/mail.go|\
|
|
platform/shared/mail/mail_test.go|\
|
|
platform/shared/mfa/mfa.go|\
|
|
platform/shared/templates/templates_test.go|\
|
|
public/model/channel.go|\
|
|
public/model/client4.go|\
|
|
public/model/config.go|\
|
|
public/model/incoming_webhook.go|\
|
|
public/model/license.go|\
|
|
public/model/link_metadata.go|\
|
|
public/model/post.go|\
|
|
public/model/preference.go|\
|
|
public/model/user.go|\
|
|
public/model/utils.go|\
|
|
public/model/websocket_client.go|\
|
|
public/model/websocket_message_test.go|\
|
|
public/plugin/http.go|\
|
|
public/plugin/supervisor_test.go|\
|
|
public/shared/mlog/default.go|\
|
|
public/shared/mlog/global_test.go|\
|
|
public/shared/mlog/mlog.go"
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
gofmt:
|
|
simplify: true
|
|
rewrite-rules:
|
|
- pattern: interface{}
|
|
replacement: any
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- mock.*
|
|
issues:
|
|
max-issues-per-linter: 0 # no maximum
|
|
max-same-issues: 0 # no maximum
|