Skip to content

Conversation

@TheFox0x7
Copy link
Contributor

@TheFox0x7 TheFox0x7 commented Dec 13, 2025

onedev migration never used the migration transport, it now uses it the same way gogs one does


cuts 3 nilnils for #36152

Applies the same override as with gogs downloader
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 13, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/cli PR changes something on the CLI, i.e. gitea doctor or gitea admin labels Dec 13, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 14, 2025
@silverwind
Copy link
Member

I guess it's fine to place unused // nolint statements now, but later we should make the linter report unused directives, similar to eslint reportUnusedDisableDirectives, if such an option exists.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 14, 2025
@TheFox0x7
Copy link
Contributor Author

it does https://golangci-lint.run/docs/linters/configuration/#nolintlint and we have it on (in fact I added it)

gitea/.golangci.yml

Lines 18 to 20 in 1f5237e

- nakedret
- nolintlint
- perfsprint

gitea/.golangci.yml

Lines 49 to 52 in 1f5237e

nolintlint:
allow-unused: false
require-explanation: true
require-specific: true

I'm very confused why it didn't complain about the nolint here...

@silverwind
Copy link
Member

silverwind commented Dec 15, 2025

Might be a bug in golangci-lint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/cli PR changes something on the CLI, i.e. gitea doctor or gitea admin modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants