mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-29 04:30:07 +08:00
816222243a
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 ``` |
||
---|---|---|
.. | ||
archiver | ||
commitstatus | ||
files | ||
adopt_test.go | ||
adopt.go | ||
avatar_test.go | ||
avatar.go | ||
branch.go | ||
cache.go | ||
check.go | ||
collaboration_test.go | ||
collaboration.go | ||
commit.go | ||
contributors_graph_test.go | ||
contributors_graph.go | ||
create_test.go | ||
create.go | ||
delete_test.go | ||
delete.go | ||
fork_test.go | ||
fork.go | ||
generate_test.go | ||
generate.go | ||
hooks.go | ||
init.go | ||
lfs_test.go | ||
lfs.go | ||
main_test.go | ||
migrate.go | ||
push.go | ||
repository_test.go | ||
repository.go | ||
review_test.go | ||
review.go | ||
setting.go | ||
template.go | ||
transfer_test.go | ||
transfer.go |