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
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
..
agit Add more linters to improve code readability (#19989) 2 years ago
asymkey Move issues related files into models/issues (#19931) 2 years ago
attachment Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
auth Add more linters to improve code readability (#19989) 2 years ago
automerge Add more linters to improve code readability (#19989) 2 years ago
comments Move issues related files into models/issues (#19931) 2 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
cron Move some code into models/git (#19879) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Move issues related files into models/issues (#19931) 2 years ago
gitdiff Add more linters to improve code readability (#19989) 2 years ago
issue Add more linters to improve code readability (#19989) 2 years ago
lfs Move some code into models/git (#19879) 2 years ago
mailer Add more linters to improve code readability (#19989) 2 years ago
migrations Add more linters to improve code readability (#19989) 2 years ago
mirror Always try to fetch repo for mirrors (#19975) 2 years ago
org Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
packages Package registry changes (#19305) 2 years ago
pull Add more linters to improve code readability (#19989) 2 years ago
release fix permission check for delete tag (#19985) 2 years ago
repository Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2 years ago
task Add more linters to improve code readability (#19989) 2 years ago
user Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
webhook Add more linters to improve code readability (#19989) 2 years ago
wiki Move some helper files out of models (#19355) 2 years ago