|  Lunny Xiao | 1d8543e7db | Move some files into models' sub packages (#20262) * Move some files into models' sub packages
* Move functions
* merge main branch
* Fix check
* fix check
* Fix some tests
* Fix lint
* Fix lint
* Revert lint changes
* Fix error comments
* Fix lint
Co-authored-by: 6543 <6543@obermui.de> | 2022-08-25 10:31:57 +08:00 | 
				
					
						|  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 | 
				
					
						|  Lunny Xiao | fd7d83ace6 | Move almost all functions' parameter db.Engine to context.Context (#19748) * Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions | 2022-05-20 22:08:52 +08:00 | 
				
					
						|  Lunny Xiao | cbd45471b1 | Move access and repo permission to models/perm/access (#19350) * Move access and repo permission to models/perm/access
* Remove unnecessary code | 2022-05-11 12:09:36 +02:00 |