1
0
Fork 0
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 [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
discord.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
discord_test.go [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
feishu.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
feishu_test.go [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
general.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
general_test.go Fix Matrix and MSTeams nil dereference (#28089) 2023-11-17 12:17:33 +01:00
gogs.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
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 [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
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 [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
slack.go s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
slack_test.go [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
telegram.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00
telegram_test.go Merge pull request '[REFACTOR] webhook.Handler interface' (#2758) from oliverpool/forgejo:webhook_2_interface into forgejo 2024-03-27 13:45:04 +00:00
webhook.go webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
webhook_test.go [REFACTOR] webhook.Handler interface 2024-03-24 10:35:06 +01:00
wechatwork.go [REFACTOR] webhook shared code to prevent import cycles 2024-04-04 08:24:33 +02:00