judgelint 0.2.2-x86_64-linux → 0.2.3-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +24 -6
  4. data/libexec/judgelint +0 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dae6f5f5e9fd33ae7c3a831d1f097db46f329845ea6c5d90a979cd6eb309706
4
- data.tar.gz: dbfad61daa8ffc5ac52ac97bc6b9b455f081224b0eaecf36a3ce73bd7cf1f524
3
+ metadata.gz: 12da6e983fcf023f08443fbf156ec8af38a7508df7f3a536c7c737c13937f46c
4
+ data.tar.gz: a50ceba857187174c2b64bd337e8e17228a454b0f3f4fa201c82899a73c4bdcd
5
5
  SHA512:
6
- metadata.gz: 719691e6c0e7117a198c8bfb6962bba4e32a7e6aea820d079b8755ab37db9c62e2d1bd817fb517a7745dbc490345d37956cee0bcf8eb933ee9f08508bc13e0c6
7
- data.tar.gz: 7ddede0ac667d6af31ce4985545ed673877f426c46597b6459d28c3492c73db1111cdaf67dd093659cabc13a7e9fd0179747b0e9005e84fed0a5f966440dfe1b
6
+ metadata.gz: 4964d444b3877bfbc6c4b863a32d361ca098020dc04a30e6dfb6d1098096067443f86fd98ad1c7ac4e8e78a923099f60126483bd8c5bf17f3947fda4d42e7e28
7
+ data.tar.gz: 22fb7f8e136bb6d0d17e5ee4ab83d16fe9de6bb329a47d28eb0ddd28541deea334159f9075540371ae70405a2ef17b946433bf1e8235d6b13656ec961352e6f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3 (2026-10-30)
4
+
5
+ `--pr` uses the pull request's own specs and cache again, and hardening
6
+ from a fourth review.
7
+
8
+ - `--pr` reads only `.judgelint.yml` from the base branch, so a pull
9
+ request still can't change where its code is sent or which key goes with
10
+ it. Its own specs and cache are used, as in 0.2.0: a new convention
11
+ applies to the pull request that adds it, and CI can keep the cache
12
+ between pushes. 0.2.1 read both from the base branch, so new rules waited
13
+ for a merge and every push asked again.
14
+ - A `##` in a file name or an endpoint's error is escaped in text output,
15
+ so it can't run an Azure Pipelines (`##vso[`) or TeamCity command. JSON
16
+ and SARIF write it as `#\u0023`, which reads back the same.
17
+ - Under `--base` or `--pr`, adding or changing a link to a directory asks
18
+ that directory's directory rules.
19
+ - A directory with `[`, `*`, `?` or `{` in its name sends its own files to
20
+ directory rules. Its name was read as a pattern, which could match
21
+ nothing.
22
+ - A changed file whose name isn't UTF-8 fails the run. It was read as
23
+ whatever file its name decoded to.
24
+ - `judgelint init` won't write through a `CONVENTIONS.md` link.
25
+ - The README says that patterns skip names that start with a dot unless
26
+ they name the dot.
27
+
3
28
  ## 0.2.2 (2026-10-30)
4
29
 
5
30
  Fixes from a third review of 0.2.1, which found ways around its fixes.
data/README.md CHANGED
@@ -55,7 +55,9 @@ judgelint: 1 request, 940 input tokens, $0.0000, typesafe:jev-latest
55
55
  ```
56
56
 
57
57
  That's all the setup there is. A `CONVENTIONS.md` covers the files in its
58
- directory and below, except Markdown and lockfiles. In a git repository,
58
+ directory and below, except Markdown, lockfiles, and names that start with a
59
+ dot. A pattern in `paths:` matches a dotted name only when it names the dot,
60
+ like `.github/*.yml`. In a git repository,
59
61
  judgelint skips what git ignores. It also skips binary files.
60
62
 
61
63
  judgelint asks Jev on TypeSafe. To use another provider, set `models` in
@@ -251,13 +253,29 @@ run: one too large for the model, one the model refused to answer about,
251
253
  even in part, one that leads outside the project, or a binary one. Images,
252
254
  fonts, archives and other formats that are never code are left out instead.
253
255
 
256
+ To keep answers between pushes, keep the cache in your CI's cache. On
257
+ GitHub Actions:
258
+
259
+ ```yaml
260
+ - uses: actions/cache@v4
261
+ with:
262
+ path: .judgelint/cache.bin
263
+ key: judgelint-${{ github.run_id }}
264
+ restore-keys: judgelint-
265
+ - run: judgelint --pr --format github
266
+ ```
267
+
254
268
  ### Pull requests from people you don't trust
255
269
 
256
- `--pr` reads `.judgelint.yml`, the specs, and `.judgelint/cache.bin` from the
257
- base branch, not from the pull request, so a pull request can't change the
258
- rules it's checked against, where its code is sent, or the answers it's
259
- judged by. New or changed conventions apply once they're merged. The base
260
- branch's cache is read into memory, and the checkout's own is left alone.
270
+ `--pr` reads `.judgelint.yml` from the base branch, not from the pull
271
+ request, so a pull request can't change where its code is sent or which
272
+ API key goes with it.
273
+
274
+ The pull request's own specs and cache are used, so a new or changed
275
+ convention applies to it right away. That also means a pull request can
276
+ change its rules or the answers in its cache. Review those like any other
277
+ change, and have GitHub hold workflow runs on pull requests from forks
278
+ until you approve them (Settings → Actions).
261
279
 
262
280
  `--pr` judges what the pull request committed. Anything else in the
263
281
  checkout, like a file an earlier CI step wrote, is never sent, whatever the
data/libexec/judgelint CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judgelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - JP Camara