paperlint 18.2.2 → 18.3.1

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 (36) hide show
  1. package/dist/readability.d.ts +12 -9
  2. package/dist/readability.d.ts.map +1 -1
  3. package/dist/readability.js +3 -3
  4. package/dist/readability.js.map +1 -1
  5. package/dist/skills/pc-panel-review/scripts/prior-reviews-core.d.ts +19 -0
  6. package/dist/skills/pc-panel-review/scripts/prior-reviews.d.ts +2 -0
  7. package/docs/optional-rules.md +2 -2
  8. package/docs/rules/tex/max-paragraph-numbers.md +13 -7
  9. package/docs/rules/tex/max-paragraph-words.md +17 -28
  10. package/docs/rules.md +2 -2
  11. package/package.json +1 -1
  12. package/scripts/grow-real-papers/archive.test.ts +294 -0
  13. package/scripts/grow-real-papers/archive.ts +287 -0
  14. package/scripts/grow-real-papers/collect.test.ts +329 -0
  15. package/scripts/grow-real-papers/collect.ts +316 -0
  16. package/scripts/grow-real-papers/http.test.ts +95 -0
  17. package/scripts/grow-real-papers/http.ts +76 -0
  18. package/scripts/grow-real-papers/main.test.ts +295 -0
  19. package/scripts/grow-real-papers/main.ts +221 -0
  20. package/scripts/grow-real-papers/paper.test.ts +305 -0
  21. package/scripts/grow-real-papers/paper.ts +241 -0
  22. package/scripts/grow-real-papers/rules.test.ts +222 -0
  23. package/scripts/grow-real-papers/rules.ts +250 -0
  24. package/scripts/grow-real-papers/sources.test.ts +275 -0
  25. package/scripts/grow-real-papers/sources.ts +239 -0
  26. package/scripts/grow-real-papers/testkit.ts +79 -0
  27. package/skills/pc-panel-review/SKILL.md +18 -11
  28. package/skills/pc-panel-review/SKILL.md.spec.ts +17 -10
  29. package/skills/pc-panel-review/scripts/prior-reviews-core.js +44 -0
  30. package/skills/pc-panel-review/scripts/prior-reviews-core.ts +66 -0
  31. package/skills/pc-panel-review/scripts/prior-reviews.js +14 -0
  32. package/skills/pc-panel-review/scripts/prior-reviews.test.ts +206 -0
  33. package/skills/pc-panel-review/scripts/prior-reviews.ts +19 -0
  34. package/src/readability.test.ts +44 -41
  35. package/src/readability.ts +12 -9
  36. package/src/rule-cases.test.ts +6 -6
@@ -1373,21 +1373,21 @@ const CASES: Readonly<Record<string, RuleCases>> = {
1373
1373
  // below): its cases turn it on in the paper's paperlint.json, as study/declare-sample's do.
1374
1374
  "tex/max-paragraph-words": {
1375
1375
  reports: {
1376
- tree: paper(tex(wordsParagraph(151)), MAX_PARAGRAPH_WORDS_ON),
1376
+ tree: paper(tex(wordsParagraph(251)), MAX_PARAGRAPH_WORDS_ON),
1377
1377
  file: TEX_FILE,
1378
1378
  severity: 1,
1379
1379
  line: 3,
1380
1380
  },
1381
- silent: paper(tex(wordsParagraph(150)), MAX_PARAGRAPH_WORDS_ON),
1381
+ silent: paper(tex(wordsParagraph(250)), MAX_PARAGRAPH_WORDS_ON),
1382
1382
  },
1383
1383
  "tex/max-paragraph-numbers": {
1384
1384
  reports: {
1385
- tree: paper(tex(numbersParagraph(9)), CEILINGS_ON),
1385
+ tree: paper(tex(numbersParagraph(11)), CEILINGS_ON),
1386
1386
  file: TEX_FILE,
1387
1387
  severity: 1,
1388
1388
  line: 3,
1389
1389
  },
1390
- silent: paper(tex(numbersParagraph(8)), CEILINGS_ON),
1390
+ silent: paper(tex(numbersParagraph(10)), CEILINGS_ON),
1391
1391
  },
1392
1392
  "tex/max-sentence-words": {
1393
1393
  reports: {
@@ -1842,10 +1842,10 @@ describe("tex/max-paragraph-words is off by default", () => {
1842
1842
  });
1843
1843
 
1844
1844
  describe("the other two ceilings are off by default", () => {
1845
- it("nine numbers and a 56-word sentence produce nothing under the default config", async () => {
1845
+ it("eleven numbers and a 56-word sentence produce nothing under the default config", async () => {
1846
1846
  const ids = async (tree: Record<string, string>) =>
1847
1847
  (await lintTree(tree)).map((m) => m.ruleId);
1848
- const body = `${numbersParagraph(9)} ${longSentence(56)}`;
1848
+ const body = `${numbersParagraph(11)} ${longSentence(56)}`;
1849
1849
  const off = await ids(paper(tex(body)));
1850
1850
  expect(off).not.toContain("tex/max-paragraph-numbers");
1851
1851
  expect(off).not.toContain("tex/max-sentence-words");