gitea/models
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
..
admin Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
appstate
asymkey Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
auth Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
avatars
db Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
fixtures
foreignreference
git Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
issues Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
migrations Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
organization Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
packages Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
perm Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
project Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
pull
repo Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
unit Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
unittest
user Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
webhook Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
action_list.go
action_test.go
action.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
consistency.go
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
notification_test.go
notification.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
org_team_test.go
org_team.go
org_test.go
org.go
release.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
repo_activity.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
statistic.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
task.go
token_test.go
token.go
upload.go
user_heatmap_test.go
user_heatmap.go
user.go