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/modules/context
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
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
api.go Add more linters to improve code readability (#19989) 2 years ago
api_org.go Move organization related structs into sub package (#18518) 2 years ago
api_test.go format with gofumpt (#18184) 2 years ago
auth.go Respond with a 401 on git push when password isn't changed yet (#20026) 2 years ago
captcha.go format with gofumpt (#18184) 2 years ago
context.go Call MultipartForm.RemoveAll when request finishes (#19606) 2 years ago
csrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
form.go Add config options to hide issue events (#17414) 2 years ago
org.go Only show accessible teams in dashboard dropdown list (#19642) 2 years ago
package.go Fix org package owner permissions (#19742) 2 years ago
pagination.go Remove tab/TabName usage where it's not needed (#19973) 2 years ago
permission.go Move access and repo permission to models/perm/access (#19350) 2 years ago
private.go Add more linters to improve code readability (#19989) 2 years ago
repo.go Add more linters to improve code readability (#19989) 2 years ago
response.go format with gofumpt (#18184) 2 years ago
utils.go Add more linters to improve code readability (#19989) 2 years ago
xsrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
xsrf_test.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago