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.
forgejo/services/migrations
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
..
codebase.go Store the foreign ID of issues during migration (#18446) 2 years ago
codebase_test.go Update go tool dependencies (#19676) 2 years ago
dump.go Write Commit-Graphs in RepositoryDumper (#20004) 2 years ago
error.go Prevent NPE whilst migrating if there is a team request review (#19855) 2 years ago
git.go format with gofumpt (#18184) 2 years ago
gitbucket.go Store the foreign ID of issues during migration (#18446) 2 years ago
gitea_downloader.go Prevent NPE whilst migrating if there is a team request review (#19855) 2 years ago
gitea_downloader_test.go Update HTTP status codes to modern codes (#18063) 2 years ago
gitea_uploader.go Move issues related files into models/issues (#19931) 2 years ago
gitea_uploader_test.go Move issues related files into models/issues (#19931) 2 years ago
github.go Prevent NPE whilst migrating if there is a team request review (#19855) 2 years ago
github_test.go Store the foreign ID of issues during migration (#18446) 2 years ago
gitlab.go Update HTTP status codes to modern codes (#18063) 2 years ago
gitlab_test.go Update go tool dependencies (#19676) 2 years ago
gogs.go Store the foreign ID of issues during migration (#18446) 2 years ago
gogs_test.go Store the foreign ID of issues during migration (#18446) 2 years ago
http_client.go Use `hostmatcher` to replace `matchlist`, improve security (#17605) 3 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
migrate.go Unify repo settings & show better error (#19828) 2 years ago
migrate_test.go Move user related model into models/user (#17781) 3 years ago
onedev.go Add more linters to improve code readability (#19989) 2 years ago
onedev_test.go Update go tool dependencies (#19676) 2 years ago
restore.go Store the foreign ID of issues during migration (#18446) 2 years ago
update.go Move more model into models/user (#17826) 3 years ago