Skip to content

Commit

Permalink
Explicitly list ignored files for errcheck linter (mattermost#28329)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei authored Sep 30, 2024
1 parent 4c6ac0a commit a30e19c
Showing 1 changed file with 319 additions and 1 deletion.
320 changes: 319 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,322 @@ issues:

- linters:
- errcheck
path: "channels|platform|cmd/mattermost|public/model|public/plugin|public/shared/mlog"
path: "\
channels/api4/apitestlib.go|\
channels/api4/bot_test.go|\
channels/api4/brand.go|\
channels/api4/brand_test.go|\
channels/api4/channel.go|\
channels/api4/channel_bookmark_test.go|\
channels/api4/channel_category.go|\
channels/api4/channel_test.go|\
channels/api4/cloud.go|\
channels/api4/cloud_test.go|\
channels/api4/cluster.go|\
channels/api4/command.go|\
channels/api4/command_test.go|\
channels/api4/compliance.go|\
channels/api4/config.go|\
channels/api4/config_local.go|\
channels/api4/config_test.go|\
channels/api4/data_retention.go|\
channels/api4/emoji.go|\
channels/api4/emoji_test.go|\
channels/api4/export.go|\
channels/api4/export_test.go|\
channels/api4/file.go|\
channels/api4/file_test.go|\
channels/api4/group.go|\
channels/api4/group_local.go|\
channels/api4/group_test.go|\
channels/api4/handlers_test.go|\
channels/api4/image_test.go|\
channels/api4/import_test.go|\
channels/api4/integration_action.go|\
channels/api4/integration_action_test.go|\
channels/api4/ip_filtering.go|\
channels/api4/ip_filtering_test.go|\
channels/api4/job.go|\
channels/api4/job_test.go|\
channels/api4/ldap.go|\
channels/api4/license.go|\
channels/api4/license_local.go|\
channels/api4/license_test.go|\
channels/api4/oauth.go|\
channels/api4/oauth_test.go|\
channels/api4/outgoing_oauth_connection_test.go|\
channels/api4/permission.go|\
channels/api4/plugin.go|\
channels/api4/plugin_test.go|\
channels/api4/post.go|\
channels/api4/post_test.go|\
channels/api4/preference_test.go|\
channels/api4/reaction.go|\
channels/api4/reaction_test.go|\
channels/api4/remote_cluster.go|\
channels/api4/role.go|\
channels/api4/role_test.go|\
channels/api4/saml.go|\
channels/api4/scheme.go|\
channels/api4/scheme_test.go|\
channels/api4/shared_channel.go|\
channels/api4/shared_channel_test.go|\
channels/api4/status.go|\
channels/api4/status_test.go|\
channels/api4/system.go|\
channels/api4/system_local.go|\
channels/api4/system_test.go|\
channels/api4/team.go|\
channels/api4/team_local.go|\
channels/api4/team_test.go|\
channels/api4/upload_test.go|\
channels/api4/usage.go|\
channels/api4/usage_test.go|\
channels/api4/user.go|\
channels/api4/user_local.go|\
channels/api4/user_test.go|\
channels/api4/webhook.go|\
channels/api4/webhook_test.go|\
channels/api4/websocket_test.go|\
channels/app/admin.go|\
channels/app/admin_test.go|\
channels/app/app_test.go|\
channels/app/authorization_test.go|\
channels/app/auto_responder_test.go|\
channels/app/bot.go|\
channels/app/bot_test.go|\
channels/app/brand.go|\
channels/app/busy_test.go|\
channels/app/channel.go|\
channels/app/channel_bookmark_test.go|\
channels/app/channel_category_test.go|\
channels/app/channel_test.go|\
channels/app/config_test.go|\
channels/app/desktop_login.go|\
channels/app/email/email_test.go|\
channels/app/email/helper_test.go|\
channels/app/export.go|\
channels/app/export_test.go|\
channels/app/file.go|\
channels/app/file_bench_test.go|\
channels/app/file_helper_test.go|\
channels/app/file_info.go|\
channels/app/file_test.go|\
channels/app/group_test.go|\
channels/app/helper_test.go|\
channels/app/imaging/decode.go|\
channels/app/imaging/decode_test.go|\
channels/app/imaging/utils_test.go|\
channels/app/import_functions.go|\
channels/app/import_functions_test.go|\
channels/app/import_utils_test.go|\
channels/app/imports/import_validators.go|\
channels/app/integration_action.go|\
channels/app/integration_action_test.go|\
channels/app/job_test.go|\
channels/app/ldap.go|\
channels/app/login_test.go|\
channels/app/migrations.go|\
channels/app/notification_push.go|\
channels/app/notification_test.go|\
channels/app/oauth_test.go|\
channels/app/onboarding_test.go|\
channels/app/opengraph_test.go|\
channels/app/permissions.go|\
channels/app/permissions_test.go|\
channels/app/platform/busy_test.go|\
channels/app/platform/cluster_handlers.go|\
channels/app/platform/config_test.go|\
channels/app/platform/feature_flags.go|\
channels/app/platform/helper_test.go|\
channels/app/platform/license.go|\
channels/app/platform/link_cache.go|\
channels/app/platform/log.go|\
channels/app/platform/metrics.go|\
channels/app/platform/searchengine.go|\
channels/app/platform/service.go|\
channels/app/platform/service_test.go|\
channels/app/platform/session.go|\
channels/app/platform/session_test.go|\
channels/app/platform/status.go|\
channels/app/platform/web_broadcast_hook.go|\
channels/app/platform/web_conn.go|\
channels/app/platform/web_hub.go|\
channels/app/platform/web_hub_test.go|\
channels/app/plugin_api_test.go|\
channels/app/plugin_api_tests/manual.test_http_hijack_plugin/main.go|\
channels/app/plugin_api_tests/manual.test_serve_metrics_plugin/main.go|\
channels/app/plugin_api_tests/test_update_user_auth_plugin/main.go|\
channels/app/plugin_commands_test.go|\
channels/app/plugin_deadlock_test.go|\
channels/app/plugin_health_check_test.go|\
channels/app/plugin_hooks_test.go|\
channels/app/plugin_install.go|\
channels/app/plugin_reattach.go|\
channels/app/plugin_requests.go|\
channels/app/plugin_signature.go|\
channels/app/plugin_signature_test.go|\
channels/app/plugin_test.go|\
channels/app/post.go|\
channels/app/post_helpers_test.go|\
channels/app/post_metadata.go|\
channels/app/post_metadata_test.go|\
channels/app/post_persistent_notification_test.go|\
channels/app/post_test.go|\
channels/app/product_notices_test.go|\
channels/app/role_test.go|\
channels/app/security_update_check.go|\
channels/app/server.go|\
channels/app/server_test.go|\
channels/app/session_test.go|\
channels/app/slack.go|\
channels/app/slashcommands/auto_environment.go|\
channels/app/slashcommands/command_leave_test.go|\
channels/app/slashcommands/command_loadtest.go|\
channels/app/slashcommands/command_remove_test.go|\
channels/app/slashcommands/command_test.go|\
channels/app/slashcommands/helper_test.go|\
channels/app/status.go|\
channels/app/status_test.go|\
channels/app/support_packet_test.go|\
channels/app/syncables.go|\
channels/app/team.go|\
channels/app/team_test.go|\
channels/app/teams/helper_test.go|\
channels/app/upload.go|\
channels/app/upload_test.go|\
channels/app/user.go|\
channels/app/user_test.go|\
channels/app/user_viewmembers_test.go|\
channels/app/users/helper_test.go|\
channels/app/users/users_test.go|\
channels/app/web_broadcast_hooks_test.go|\
channels/app/webhook_test.go|\
channels/jobs/batch_migration_worker.go|\
channels/jobs/batch_report_worker.go|\
channels/jobs/batch_worker_test.go|\
channels/jobs/helper_test.go|\
channels/jobs/hosted_purchase_screening/worker.go|\
channels/jobs/jobs.go|\
channels/jobs/resend_invitation_email/worker.go|\
channels/jobs/schedulers_test.go|\
channels/manualtesting/manual_testing.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|\
channels/testlib/helper.go|\
channels/utils/fileutils/fileutils_test.go|\
channels/utils/license_test.go|\
channels/utils/subpath_test.go|\
channels/web/handlers.go|\
channels/web/oauth.go|\
channels/web/oauth_test.go|\
channels/web/response_writer_wrapper_test.go|\
channels/web/saml.go|\
channels/web/static.go|\
channels/web/web.go|\
channels/web/web_test.go|\
channels/web/webhook.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/searchengine/bleveengine/bleve_test.go|\
platform/services/searchengine/bleveengine/common.go|\
platform/services/searchengine/bleveengine/indexer/indexing_job.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"

0 comments on commit a30e19c

Please sign in to comment.