1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 01:34:25 +00:00
gitea/services/webhook
Wim cb50375e2b
Add more linters to improve code readability (#19989)
Add nakedret, unconvert, wastedassign, stylecheck and nolintlint linters to improve code readability

- nakedret - https://github.com/alexkohler/nakedret - nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.
- unconvert - https://github.com/mdempsky/unconvert - Remove unnecessary type conversions
- wastedassign - https://github.com/sanposhiho/wastedassign -  wastedassign finds wasted assignment statements.
- notlintlint -  Reports ill-formed or insufficient nolint directives
- stylecheck - https://staticcheck.io/docs/checks/#ST - keep style consistent
  - excluded: [ST1003 - Poorly chosen identifier](https://staticcheck.io/docs/checks/#ST1003) and [ST1005 - Incorrectly formatted error string](https://staticcheck.io/docs/checks/#ST1005)
2022-06-20 12:02:49 +02:00
..
deliver_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
deliver.go Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00
dingtalk_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
dingtalk.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
discord_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
discord.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
feishu_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
feishu.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
general_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
general.go fix(telegram): fix link bot to release tag (#19830) 2022-05-28 16:44:51 -04:00
main_test.go Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00
matrix_test.go fix(telegram): fix link bot to release tag (#19830) 2022-05-28 16:44:51 -04:00
matrix.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
msteams_test.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
msteams.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
packagist_test.go Add packagist webhook (#18224) 2022-01-23 21:46:30 +08:00
packagist.go Add packagist webhook (#18224) 2022-01-23 21:46:30 +08:00
payloader.go Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
slack_test.go fix(telegram): fix link bot to release tag (#19830) 2022-05-28 16:44:51 -04:00
slack.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
telegram_test.go fix(telegram): fix link bot to release tag (#19830) 2022-05-28 16:44:51 -04:00
telegram.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
webhook_test.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
webhook.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
wechatwork.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00