0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 09:15:03 +01:00
gitea/services/migrations
silverwind 816222243a
Add lint-go-gopls (#30729)
Uses `gopls check <files>` as a linter. Tested locally and brings up 149
errors currently for me. I don't think I want to fix them in this PR,
but I would like at least to get this analysis running on CI.

List of errors:
```
modules/indexer/code/indexer.go:181:11: impossible condition: nil != nil
routers/private/hook_post_receive.go:120:15: tautological condition: nil == nil
services/auth/source/oauth2/providers.go:185:9: tautological condition: nil == nil
services/convert/issue.go:216:11: tautological condition: non-nil != nil
tests/integration/git_test.go:332:9: impossible condition: nil != nil
services/migrations/migrate.go:179:24-43: unused parameter: ctx
services/repository/transfer.go:288:48-69: unused parameter: doer
tests/integration/api_repo_tags_test.go:75:41-61: unused parameter: session
tests/integration/git_test.go:696:64-74: unused parameter: baseBranch
tests/integration/gpg_git_test.go:265:27-39: unused parameter: t
tests/integration/gpg_git_test.go:284:23-29: unused parameter: tmpDir
tests/integration/gpg_git_test.go:284:31-35: unused parameter: name
tests/integration/gpg_git_test.go:284:37-42: unused parameter: email
```
2024-06-05 09:22:38 +08:00
..
codebase.go
codebase_test.go
common.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
dump.go
error.go Bump github.com/google/go-github to v61 (#30738) 2024-04-28 01:20:23 -04:00
git.go
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 2024-04-11 22:51:40 -04:00
gitea_downloader.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
gitea_downloader_test.go
gitea_uploader.go Fix "force private" logic (#31012) 2024-05-20 00:56:45 +00:00
gitea_uploader_test.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
github.go Bump github.com/google/go-github to v61 (#30738) 2024-04-28 01:20:23 -04:00
github_test.go
gitlab.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
gitlab_test.go Properly migrate target branch change GitLab comment (#29340) 2024-02-24 07:49:16 +00:00
gogs.go
gogs_test.go
http_client.go
main_test.go
migrate.go Add lint-go-gopls (#30729) 2024-06-05 09:22:38 +08:00
migrate_test.go
onedev.go
onedev_test.go
restore.go
update.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00