jojo/routers/web/repo
nachtjasmin 8ee4a7d658 chore: ensure consistent import aliasing for services and models (#10253)
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>
2025-11-30 17:00:57 +01:00
..
actions chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
badges chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
flags chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
setting chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
action_aggregator_test.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
activity.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
attachment.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
blame.go blame: count lines without reading blob 2025-06-24 17:36:13 +02:00
branch.go feat: always publish the link to the commit status (#8177) 2025-06-13 12:41:34 +02:00
card.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
cherry_pick.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
code_frequency.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
commit.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
compare.go feat: allow PRs between common forks of the same base repository (#9045) 2025-10-01 04:58:12 +02:00
contributors.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
download.go git/commit: re-implement submodules file reader (#8438) 2025-07-15 00:20:00 +02:00
editor.go feat: Drag and drop nested directories (#6687) 2025-10-03 00:16:40 +02:00
editor_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
find.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
githttp.go fix: do permission check for repository redirect 2025-08-30 09:37:34 +02:00
githttp_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
helper.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00
helper_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue.go feat(issue-search): support query syntax (#9109) 2025-11-19 16:05:42 +01:00
issue_content_history.go 2025-11-21 combined security patches (#10037) 2025-11-21 05:23:43 +01:00
issue_dependency.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_label.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_label_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
issue_lock.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_pin.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_stopwatch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_timetrack.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_watch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
middlewares.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
migrate.go chore: remove redundant code (#9378) 2025-09-22 09:18:19 +02:00
milestone.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
patch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
projects.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
projects_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull.go feat: allow/disallow users to run workflows when pushing to a pull request from a fork (#9397) 2025-11-09 01:40:29 +01:00
pull_review.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
pull_review_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
recent_commits.go Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission (#34053) 2025-04-01 02:28:02 +02:00
release.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
release_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
render.go feat: detect Interlisp sources as text (#8377) 2025-07-02 07:38:46 +02:00
repo.go feat: always publish the link to the commit status (#8177) 2025-06-13 12:41:34 +02:00
search.go fix(code-search): fix broken pagination. (#9000) 2025-08-23 13:06:41 +02:00
topic.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
treelist.go git/commit: re-implement submodules file reader (#8438) 2025-07-15 00:20:00 +02:00
view.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
view_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
wiki.go feat: always publish the link to the commit status (#8177) 2025-06-13 12:41:34 +02:00
wiki_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00