gitea/modules/context
Wim cb50375e2b
Add more linters to improve code readability ()
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)
..
access_log.go
api.go Add more linters to improve code readability ()
api_org.go
api_test.go
auth.go Respond with a 401 on git push when password isn't changed yet ()
captcha.go
context.go
csrf.go
form.go
org.go
package.go Fix org package owner permissions ()
pagination.go Remove tab/TabName usage where it's not needed ()
permission.go Move access and repo permission to models/perm/access ()
private.go Add more linters to improve code readability ()
repo.go Add more linters to improve code readability ()
response.go
utils.go Add more linters to improve code readability ()
xsrf.go
xsrf_test.go