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 format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
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 Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
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 Use base32 for 2FA scratch token (#18384) 2022-01-26 12:10:10 +08:00
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 Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
user_heatmap_test.go RSS/Atom support for Repos (#19055) 2022-03-13 17:40:47 +01:00