mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-12 20:48:40 +00:00
Some files excluded from the nilnil lint and listed in https://codeberg.org/forgejo/forgejo/issues/11261 contain no violations of the lint anymore. I removed them from the list. They are - `routers/api/packages/container/auth.go` - `routers/api/packages/nuget/auth.go` - `routers/web/repo/setting/runners.go` - `services/issue/commit.go` - `services/migrations/onedev.go` Other files contained lints that are triggered by returning `nil` for maps. This can be mitigated easily by returning `make(map[...]...)`. All except one of those return statements are already covered by tests. I list the ones that have coverage now, the statement that has no coverage was not changed. ### Tests for Go changes - I ran... - [x] `make pr-go` before pushing ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change. - [x] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13230 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org> |
||
|---|---|---|
| .. | ||
| TestFindOrgs | ||
| TestInconsistentOwnerTeam | ||
| main_test.go | ||
| org.go | ||
| org_list.go | ||
| org_list_test.go | ||
| org_repo.go | ||
| org_test.go | ||
| org_user.go | ||
| org_user_test.go | ||
| team.go | ||
| team_invite.go | ||
| team_invite_test.go | ||
| team_list.go | ||
| team_repo.go | ||
| team_test.go | ||
| team_unit.go | ||
| team_user.go | ||