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 |
|
wxiaoguang
|
dd712b77f7
|
Refactor admin user filter query parameters (#18965)
Only pass `status_filter` on admin page
Use a more general method to pass query parameters, remove hard-coded keys
|
2022-03-02 16:30:14 +01:00 |
|
Gusted
|
d413a1f8a4
|
Improve the comment for 2FA filter in admin panel (#18017)
Replace TODO with explanation
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
|
2022-01-13 21:32:28 +01:00 |
|
Lunny Xiao
|
a666829a37
|
Move user related model into models/user (#17781)
* Move user related model into models/user
* Fix lint for windows
* Fix windows lint
* Fix windows lint
* Move some tests in models
* Merge
|
2021-11-24 17:49:20 +08:00 |
|