You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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)
2 years ago
..
deliver.go Use queue instead of memory queue in webhook send service (#19390) 2 years ago
deliver_test.go format with gofumpt (#18184) 2 years ago
dingtalk.go format with gofumpt (#18184) 2 years ago
dingtalk_test.go Move webhook into models/webhook/ (#17579) 3 years ago
discord.go format with gofumpt (#18184) 2 years ago
discord_test.go Move webhook into models/webhook/ (#17579) 3 years ago
feishu.go format with gofumpt (#18184) 2 years ago
feishu_test.go Move webhook into models/webhook/ (#17579) 3 years ago
general.go fix(telegram): fix link bot to release tag (#19830) 2 years ago
general_test.go Add tests for all webhooks (#16214) 3 years ago
main_test.go Use queue instead of memory queue in webhook send service (#19390) 2 years ago
matrix.go format with gofumpt (#18184) 2 years ago
matrix_test.go fix(telegram): fix link bot to release tag (#19830) 2 years ago
msteams.go format with gofumpt (#18184) 2 years ago
msteams_test.go Move webhook into models/webhook/ (#17579) 3 years ago
packagist.go Add packagist webhook (#18224) 2 years ago
packagist_test.go Add packagist webhook (#18224) 2 years ago
payloader.go Move webhook into models/webhook/ (#17579) 3 years ago
slack.go format with gofumpt (#18184) 2 years ago
slack_test.go fix(telegram): fix link bot to release tag (#19830) 2 years ago
telegram.go format with gofumpt (#18184) 2 years ago
telegram_test.go fix(telegram): fix link bot to release tag (#19830) 2 years ago
webhook.go Add more linters to improve code readability (#19989) 2 years ago
webhook_test.go Move repository model into models/repo (#17933) 3 years ago
wechatwork.go format with gofumpt (#18184) 2 years ago