gitforge/models/organization
Clouds c90d5b0336 chore(nilnil lint): resolve low-hanging fruit nilnil lint violations (#13230)
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>
2026-07-03 23:48:03 +02:00
..
TestFindOrgs
TestInconsistentOwnerTeam
main_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
org.go fix: add missing deleting beans for organizations (#11699) 2026-03-17 09:11:52 +01:00
org_list.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_list_test.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_repo.go
org_test.go
org_user.go chore(nilnil lint): resolve low-hanging fruit nilnil lint violations (#13230) 2026-07-03 23:48:03 +02:00
org_user_test.go fix: UserTypeRemoteUser is an eligible organization member (#11326) 2026-02-17 02:39:46 +01:00
team.go fix: paginate list of repositories in a team (#12549) 2026-05-14 22:30:56 +02:00
team_invite.go feat: setting to add team members by invitations (#12845) 2026-06-15 01:46:25 +02:00
team_invite_test.go feat: setting to add team members by invitations (#12845) 2026-06-15 01:46:25 +02:00
team_list.go feat: add dynamic group mappings for OIDC (#11656) 2026-05-22 12:38:20 +02:00
team_repo.go chore: split AddRepository and AddTeamMember to return the inserted value (#11342) 2026-03-11 03:40:32 +01:00
team_test.go
team_unit.go
team_user.go