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.
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
..
filebuffer Add Package Registry (#16510) 2 years ago
compare.go Simplify parameter types (#18006) 3 years ago
io.go Add more linters to improve code readability (#19989) 2 years ago
legacy.go Remove legacy `unknwon/com` package (#19298) 2 years ago
legacy_test.go Remove legacy `unknwon/com` package (#19298) 2 years ago
paginate.go
paginate_test.go format with gofumpt (#18184) 2 years ago
path.go Refactor git module, make Gitea use internal git config (#19732) 2 years ago
path_test.go format with gofumpt (#18184) 2 years ago
remove.go Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 3 years ago
sanitize.go Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2 years ago
sanitize_test.go Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2 years ago
sec_to_time.go Refactor SecToTime() function (#18863) 2 years ago
sec_to_time_test.go Refactor SecToTime() function (#18863) 2 years ago
shellquote.go format with gofumpt (#18184) 2 years ago
shellquote_test.go
slice.go Cleanup protected branches when deleting users & teams (#19158) 2 years ago
string.go Remove legacy `unknwon/com` package (#19298) 2 years ago
string_test.go Remove legacy `unknwon/com` package (#19298) 2 years ago
timer.go
truncate.go format with gofumpt (#18184) 2 years ago
truncate_test.go Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 3 years ago
url.go
util.go Prettify number of issues (#17760) 2 years ago
util_test.go Fix copy/paste of empty lines (#19798) 2 years ago