1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00: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
..
2022-06-04 17:43:25 -04:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2020-03-22 11:12:55 -04:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-11-12 16:33:34 +08:00
2020-03-22 11:12:55 -04:00
2020-01-13 18:33:46 +01:00
2020-03-09 00:08:05 +02:00
2020-04-01 01:14:46 -03:00
2020-05-15 15:05:18 +01:00
2021-01-28 23:58:33 +01:00
2022-06-04 20:18:50 +01:00
2020-09-20 00:44:55 +08:00
2022-06-04 20:18:50 +01:00
2021-02-20 15:02:39 +01:00
2021-01-29 23:52:13 +08:00
2021-02-11 18:32:25 +01:00
2022-01-20 18:46:10 +01:00
2021-03-24 19:27:22 +01:00
2022-01-20 18:46:10 +01:00
2021-03-24 19:27:22 +01:00
2021-04-08 18:25:57 -04:00
2022-06-04 20:18:50 +01:00
2022-01-20 18:46:10 +01:00
2021-06-23 17:12:38 -04:00
2022-01-20 18:46:10 +01:00
2021-06-23 17:12:38 -04:00
2021-06-25 16:28:55 +02:00
2022-01-20 18:46:10 +01:00
2022-01-20 18:46:10 +01:00
2021-09-08 17:19:30 +02:00
2022-01-20 18:46:10 +01:00
2021-09-29 22:53:12 +02:00
2021-12-20 18:58:38 +01:00
2022-06-04 20:18:50 +01:00
2022-03-30 16:42:47 +08:00