Commit Graph

1286 Commits

Author SHA1 Message Date
5998b59e81 refactor: extract helpers from fetchWithRetry to reduce gocognit 2026-06-11 14:32:02 +02:00
c5acc63370 refactor: extract helpers from FetchWeek to reduce gocognit 2026-06-11 14:29:59 +02:00
b0769ddce7 refactor: shorten ProvideRenderer to satisfy funlen 2026-06-11 14:26:35 +02:00
1c86f802b4 chore: remove stale comment about sqlc name conflict in skip segment overrides 2026-06-11 14:24:18 +02:00
97dcb19b7d refactor: split long functions in episode service to fix funlen linter 2026-06-11 14:23:18 +02:00
8e4ce81232 refactor: extract helpers to reduce funlen in command_palette 2026-06-11 13:08:44 +02:00
f360e22beb refactor: extract scanContinueWatchingEntry helper 2026-06-11 13:06:35 +02:00
27c84a9603 style: gofmt alignment in init 2026-06-11 13:05:25 +02:00
a925cc069e refactor: shorten init below funlen threshold 2026-06-11 13:04:51 +02:00
76af597f4d refactor: shorten TestBuildSourceReferences below funlen threshold 2026-06-11 13:03:19 +02:00
0227c8688b refactor: extract duplicate table-test loop into helper 2026-06-11 13:02:06 +02:00
188eec58a2 refactor: reduce cyclomatic complexity of UpsertSkipSegmentOverride 2026-06-11 12:59:58 +02:00
233472b14d refactor: reduce cyclomatic complexity of mergeEpisodes 2026-06-11 12:58:47 +02:00
7265dec446 refactor: reduce cyclomatic complexity of AuthMiddleware 2026-06-11 12:57:26 +02:00
1ad3be5160 refactor: extract helpers to reduce cyclomatic complexity in audit test 2026-06-11 12:56:19 +02:00
01ee9b1022 refactor: reduce cyclomatic complexity of GetAiringSchedule 2026-06-11 12:53:59 +02:00
e77debb085 refactor: extract candidate score adjustments into helpers 2026-06-11 12:48:58 +02:00
c575bfae47 refactor: extract section path in anime details handler 2026-06-11 12:47:31 +02:00
0262f22876 refactor: reduce cyclomatic complexity of HandleBrowse 2026-06-11 12:45:54 +02:00
e04b11f97f refactor: reduce cyclomatic complexity of HandleProducers 2026-06-11 12:42:35 +02:00
55095791c7 refactor: reduce cyclomatic complexity of parseM3U8 2026-06-11 12:40:41 +02:00
983d805240 refactor: extract string slice helper in allanime client 2026-06-11 12:38:38 +02:00
0beec5fd56 refactor: reduce cyclomatic complexity of resolveSourceReferences 2026-06-11 12:36:35 +02:00
650fac1c90 refactor: reduce graphqlRequestWithHash complexity 2026-06-11 12:35:11 +02:00
870f8086e2 refactor: extract show resolution helpers from GetStreams 2026-06-11 12:33:12 +02:00
7af597d8fc refactor: reduce DurationSeconds complexity with token parsing 2026-06-11 12:31:33 +02:00
b72bace16a refactor: use url.Values in proxy token url 2026-06-11 12:29:29 +02:00
de939cc5f3 refactor: use url.Values in avatar url 2026-06-11 12:29:28 +02:00
4d6736a439 refactor: use url.Values in command palette search url 2026-06-11 12:29:27 +02:00
02bbc6c4d4 refactor: use url.Values in allanime graphql request 2026-06-11 12:29:23 +02:00
5ada1f72e4 feat: add shared query param helpers for jikan 2026-06-11 12:27:56 +02:00
4b95f85d4d chore: remove stray blank line in test 2026-06-11 12:19:59 +02:00
c36f02862d refactor: split getFullRelations into smaller helpers 2026-06-11 12:19:43 +02:00
704058a512 refactor: extract helpers from TestGetWithCacheReturnsStaleAndRefreshesAsync
Split setup (newTestCacheDB, insertCachedResponse) and async
polling (waitForFreshCache) out of the test to reduce its
cyclomatic complexity below 10. Switch DB calls to ExecContext
/ QueryRowContext to fix noctx lint.
2026-06-11 12:17:40 +02:00
9b19661fa3 refactor: extract skip/level helpers from logJikanCache 2026-06-11 12:15:00 +02:00
ca957b5cdc refactor: reduce cyclomatic complexity in fetchWeekAPI 2026-06-11 12:13:22 +02:00
03ccd54c85 refactor: extract parseAirType from parseMeta 2026-06-11 12:09:57 +02:00
c70adbd0ec fix: only report new lint issues with --new-from-rev 2026-06-11 12:06:04 +02:00
5f346d8dec fix: run linter at package level, not file level 2026-06-11 12:05:38 +02:00
3ade952653 fix: scope pre-commit hooks to staged files 2026-06-11 12:05:18 +02:00
37d7e0f6f0 chore: scope pre-commit hooks to staged files 2026-06-11 11:28:26 +02:00
f32bcf1288 fix: close response body in FetchHTMLDocument 2026-06-11 11:25:51 +02:00
7f98fbfa7a chore: remove unused CORSMiddleware wrapper 2026-06-11 11:18:05 +02:00
827b77cb20 fix: remove leading space in class attributes 2026-06-09 19:11:48 +02:00
b67727c21c test: add template function and renderer tests 2026-06-09 19:10:25 +02:00
470039d9e9 refactor: use posterURL in templates 2026-06-09 19:10:16 +02:00
ea518a7d0a refactor: simplify browseURL, add posterURL helper 2026-06-09 19:10:10 +02:00
bd89715ea0 chore: remove unused template files
- delete dropdown.gohtml (unused — codebase uses <ui-dropdown> directly)
- delete footer.gohtml (never referenced)
- update components/README.md to reflect actual files
2026-06-09 19:09:10 +02:00
49512a6708 refactor: replace scrollbar hacks with scrollbar-hidden class 2026-06-09 18:21:27 +02:00
070375eaa5 refactor: reorder head and use non-blocking font loading 2026-06-09 18:21:16 +02:00