forgejo/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 Exclude Archived repos from Dashboard Milestones (#19882) 2022-06-04 19:30:01 +01:00
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 Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2022-05-08 15:46:34 +02:00
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 Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
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.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
action_list.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
action_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
consistency.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
error.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
fixture_generation.go Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
fixture_test.go
main_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrate.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrate_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
notification.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
notification_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
org.go In code search, get code unit accessible repos in one (main) query (#19764) 2022-06-16 02:24:10 +03:00
org_team.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
org_team_test.go Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
org_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
release.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
repo.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
repo_activity.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo_collaboration.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo_collaboration_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
repo_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
repo_transfer.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo_transfer_test.go
statistic.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
task.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
token.go
token_test.go
upload.go
user.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
user_heatmap.go
user_heatmap_test.go