forgejo/services/webhook
silverwind 12b199c5e5
Enable more revive linter rules (#30608)
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.

(cherry picked from commit 74f0c84fa4245a20ce6fb87dac1faf2aeeded2a2)

Conflicts:
	.golangci.yml
	apply the linter recommendations to Forgejo code as well
2024-04-28 15:39:00 +02:00
..
shared [FEAT] sourcehut webhooks 2024-04-05 10:20:40 +02:00
sourcehut webhook: sourcehut_builds: ask for access_token instead of authorization_header 2024-04-16 08:59:55 +02:00
default.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
deliver.go webhook deliver: keep Bearer prefix in history 2024-04-16 08:59:56 +02:00
deliver_test.go webhook: matrix use v3 endpoint and drop headers 2024-04-16 08:59:56 +02:00
dingtalk.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
dingtalk_test.go
discord.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
discord_test.go
feishu.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
feishu_test.go
general.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
general_test.go
gogs.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
main_test.go
matrix.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
matrix_test.go webhook: matrix use v3 endpoint and drop headers 2024-04-16 08:59:56 +02:00
msteams.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
msteams_test.go
notifier.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
packagist.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
packagist_test.go
slack.go s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
slack_test.go
telegram.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
telegram_test.go
webhook.go webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
webhook_test.go
wechatwork.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00