gitea/models/organization
silverwind 74f0c84fa4
Enable more `revive` linter rules ()
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.
..
main_test.go make writing main test easier ()
mini_org.go Next round of `db.DefaultContext` refactor ()
org.go Check the token's owner and repository when registering a runner ()
org_repo.go Use RepositoryList instead of []*Repository ()
org_test.go Use db.Find instead of writing methods for every object ()
org_user.go Even more `db.DefaultContext` refactor ()
org_user_test.go Even more `db.DefaultContext` refactor ()
team.go Enable more `revive` linter rules ()
team_invite.go Implement FSFE REUSE for golang files ()
team_invite_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()
team_list.go Another round of `db.DefaultContext` refactor ()
team_repo.go Use RepositoryList instead of []*Repository ()
team_test.go Even more `db.DefaultContext` refactor ()
team_unit.go Even more `db.DefaultContext` refactor ()
team_user.go Add user blocking ()