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.
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
```
8 months ago
..
codebase.go Replace `interface{}` with `any` (#25686) 2 years ago
codebase_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
common.go Adjust object format interface (#28469) 1 year ago
dump.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
error.go Bump `github.com/google/go-github` to v61 (#30738) 9 months ago
git.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 10 months ago
gitea_downloader.go Enable more `revive` linter rules (#30608) 9 months ago
gitea_downloader_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitea_uploader.go Fix "force private" logic (#31012) 9 months ago
gitea_uploader_test.go remove util.OptionalBool and related functions (#29513) 11 months ago
github.go Bump `github.com/google/go-github` to v61 (#30738) 9 months ago
github_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitlab.go Enable more `revive` linter rules (#30608) 9 months ago
gitlab_test.go Properly migrate target branch change GitLab comment (#29340) 11 months ago
gogs.go Rewrite logger system (#24726) 2 years ago
gogs_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
http_client.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
migrate.go Add `lint-go-gopls` (#30729) 8 months ago
migrate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
onedev.go Replace `interface{}` with `any` (#25686) 2 years ago
onedev_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
restore.go Implement FSFE REUSE for golang files (#21840) 2 years ago
update.go Use db.Find instead of writing methods for every object (#28084) 1 year ago