mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-03 20:51:07 -05:00
To make sure that the code stays maintainable, I added the `importas` linter to ensure that the imports for models and services stay consistent. I realised that this might be needed after finding some discrepancies between singular/plural naming, and, especially in the case of the `forgejo.org/services/context` package, multiple different aliases like `gitea_ctx`, `app_context` and `forgejo_context`. I decided for `app_context`, as that seems to be the most commonly used naming. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10253 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: nachtjasmin <nachtjasmin@posteo.de> Co-committed-by: nachtjasmin <nachtjasmin@posteo.de> |
||
|---|---|---|
| .. | ||
| TestDeleteUser | ||
| TestDeleteUserCleansUpBranchProtectionRules | ||
| TestPurgeUser | ||
| TestReplaceInactivePrimaryEmail | ||
| avatar.go | ||
| avatar_test.go | ||
| block.go | ||
| block_test.go | ||
| delete.go | ||
| email.go | ||
| email_test.go | ||
| update.go | ||
| update_test.go | ||
| user.go | ||
| user_test.go | ||