Commit Graph

108 Commits

Author SHA1 Message Date
Sebastian Poxhofer 91e068f1fd test(linters): add linting rule to enforce v8 ignore reason declaration (#44726)
* ci(linter): add renovate/v8-ignore-reason rule

Flag coverage-ignore comments ("v8 ignore") that carry no justification.
Accepted forms: "-- reason" / "--- reason" (recommended) and the legacy
colon form "v8 ignore <kind>[ <count>]: reason", which is already
widespread in the codebase (29 sites). Bare "v8 ignore stop" markers are
exempt because the justification lives on the paired "start" marker. The
"v8 ignore next <N>" count form remains allowed; this rule only requires
a justification.

Registered as "warn" instead of "error": the repo currently has 119
reason-less v8 ignore comments, too many to fix mechanically in one PR,
so existing sites are left untouched and can be fixed incrementally.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): promote renovate/v8-ignore-reason to error

Record the empirical verdict on the contested "v8 ignore next <N>" count
semantics in the rule doc: verified against vitest 4 with
ast-v8-to-istanbul that the count is not honored - the ignore hint always
exempts exactly the next AST node regardless of N. Counts are therefore
inert and stay allowed; the rule keeps requiring only a justification.

Promoting to error so all remaining reason-less coverage-ignore comments
must be fixed; the burndown follows in subsequent commits.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RxHFNsSworLcv23xXk9Hk

* refactor: add justifications to coverage-ignore comments (batch 1)

Give every reason-less "v8 ignore" comment outside the large platform
index files a site-specific justification explaining why the exempted
branch is untestable or defensive, as now required by the
renovate/v8-ignore-reason rule.

Also guard against a nullish comment.loc in the rule itself; the
merged-in stricter tools typechecking flagged the unguarded access.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RxHFNsSworLcv23xXk9Hk

* refactor: add justifications to coverage-ignore comments (batch 2)

Cover the five large platform index files (github, bitbucket,
bitbucket-server, codecommit, gitlab) with site-specific reasons on
every "v8 ignore" comment, completing the renovate/v8-ignore-reason
burndown. Two meaningless ignore hints inside commented-out CodeCommit
mergePr code are dropped instead of annotated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RxHFNsSworLcv23xXk9Hk

* Apply suggestions from code review

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>

* Update lib/util/regex.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-07-20 13:01:39 +00:00
renovate[bot] a561b74314 chore(deps): update dependency @biomejs/biome to v2.4.11 (main) (#42034)
* chore(deps): update dependency @biomejs/biome to v2.4.11

| datasource | package        | from  | to     |
| ---------- | -------------- | ----- | ------ |
| npm        | @biomejs/biome | 2.4.6 | 2.4.11 |

* fixup linter changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2026-04-20 21:45:46 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Michael Kriese 9fe353adb4 test: add coverage (part1) (#40636) 2026-01-23 15:09:01 +00:00
Michael Kriese 5897f3057d fix: refactor http (take 2) (#34558) 2025-02-28 17:17:09 +00:00
Michael Kriese 593a92655e feat: refactor http (#34550) 2025-02-28 14:40:04 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
Sergei Zharinov c3814ab0ad feat(http): Return stale cache on revalidation errors (#33852) 2025-01-28 15:36:36 +00:00
Sergei Zharinov d934216a90 feat(http): Create package cache provider (#33742) 2025-01-24 09:30:13 +00:00
Sergei Zharinov 9b4e515024 refactor(http): Separate getJson and getJsonUnchecked (#33651) 2025-01-17 14:18:00 +00:00
Sergei Zharinov a9985dad34 refactor(http): Separate getYaml and getYamlUnchecked (#33653) 2025-01-17 06:14:47 +00:00
Sergei Zharinov 76ff1df549 refactor(http): Add getYaml and getYamlSafe methods (#33578) 2025-01-13 09:46:21 +00:00
Sebastian Poxhofer 3681b2a945 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
Sergei Zharinov 8d183d6b25 feat(http): Force default rate limits for some known hosts (#30207)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-07-22 16:59:29 +00:00
Florian Greinacher c608ceeaac feat(gitlab): retry requests on resource locks (#29019)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-05-14 09:15:12 +00:00
RahulGautamSingh 5558b0d3da feat(config/self-hosted): userAgent (#28737)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-29 16:16:35 +00:00
Sergei Zharinov 5c0628bf3b feat(host-rules): Support readOnly request matching (#28562)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-23 03:26:20 +00:00
Sergei Zharinov 8596967060 feat(http): Switch to pluggable HTTP cache implementation (#27966)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-03-19 16:34:05 +00:00
Sergei Zharinov 4f70ff15cd feat(http): Add pluggable HTTP cache implementation (#27998) 2024-03-19 14:49:59 +00:00
Sergei Zharinov c25804194d refactor(http): Remove unused HTTP etag caching implementation (#28000) 2024-03-18 13:58:31 +00:00
Sergei Zharinov 5d7372f917 feat: Http cache stats (#27956) 2024-03-16 13:17:10 +00:00
Sergei Zharinov fd8684ba6e refactor: Extract "HttpStats" utility class (#27944) 2024-03-15 12:39:31 +00:00
Rhys Arkins 4bfd0f304e fix: Revert "feat: Limit HTTP concurrency and frequency by default" (#27765) 2024-03-07 08:01:34 +00:00
Sergei Zharinov 147d38a2a4 feat: Limit HTTP concurrency and frequency by default (#27621) 2024-03-05 14:50:09 +00:00
Rhys Arkins 10292f2123 feat(cache): prefer If-Modified-Since over If-None-Match (#27394) 2024-02-19 18:46:56 +00:00
Rhys Arkins 23a334c7e3 feat(cache): etag caching for github GET (#26788)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-01-22 11:49:40 +00:00
Sergei Zharinov 3aaa3e57e2 feat(http): Support for Retry-After header (#25859)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-12-14 07:10:50 +00:00
Sergei Zharinov 383bc11d4c refactor(http): Separate search and apply of host rules (#26067) 2023-12-01 12:00:20 +00:00
Sergei Zharinov 19e9e8ea50 refactor(http): Extract GotTask type (#25713) 2023-11-12 21:01:09 +00:00
Sergei Zharinov 75df23bfe4 test(http): Disable http retries for tests inside constructor (#25711) 2023-11-12 19:05:37 +00:00
Sebastian Poxhofer d10dcff495 refactor(custom/datasource): prepare for additional format types (#25640) 2023-11-08 06:05:22 +00:00
renovate[bot] e5cbbaaf09 build(deps): update dependency prettier to v3 (#23627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2023-11-07 17:12:01 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Rhys Arkins 128f7475fb refactor(http): set timeout implicitly, not through hostRules (#24938) 2023-10-09 09:39:26 +00:00
Rhys Arkins 36e2b328bb chore: update types reference 2023-08-15 11:31:15 +02:00
renovate[bot] fe739befbf chore(deps): update linters to v6 (major) (#23325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-02 15:07:49 +00:00
Sergei Zharinov 674c6fca49 feat: Support Zod values in Result transforms (#23583) 2023-07-27 15:17:18 +00:00
Adam Setch 39c907231b refactor(util/hash): replace hasha sha512 use cases (#23548) 2023-07-24 22:54:28 +00:00
Sergei Zharinov f8da82cf25 feat(http): Add getHttpSafe() method (#23337) 2023-07-19 16:26:49 +00:00
Sergei Zharinov ce41717678 refactor(http): Fix coverage (#23004)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-06-28 11:55:26 +02:00
Sergei Zharinov bd30baa833 feat(rubygems): API throttling for rubygems.org (#22855) 2023-06-18 13:38:21 +00:00
renovate[bot] 7aeb529fcf chore(deps): update dependency typescript to v5.1.3 (#22641)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2023-06-13 05:46:11 +00:00
Sergei Zharinov 290b78d87d feat(http): Etag support (#22302) 2023-05-25 12:17:43 +00:00
Sergei Zharinov 8cdd1a20f4 refactor(http): Rename useCache option to memCache (#22300) 2023-05-18 14:33:11 +00:00
Sergei Zharinov cd5abc87b8 refactor(rubygems): Use schema for fallback API (#21933) 2023-05-17 08:12:20 +00:00
Sergei Zharinov e1d5012e4c feat(http): Throw errors for schema mismatch (#21395) 2023-04-11 04:42:34 +00:00
Sergei Zharinov dfb1ef47bc refactor(http): Don't use shallow copy for JSON results (#21401) 2023-04-09 21:44:05 +00:00
Sergei Zharinov 8081d08ec4 refactor(http): Enhanced integration with data schemas (#21338) 2023-04-06 15:56:27 +00:00
Sebastian Poxhofer 871cea19b7 feat(http): set by default Accept header for json requests (#19202)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-12-01 18:48:45 +01:00
RahulGautamSingh d869c946d1 refactor: reduce debug metadata (#18737) 2022-11-07 11:29:02 +00:00