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.
- package/dist/readability.d.ts +12 -9
- package/dist/readability.d.ts.map +1 -1
- package/dist/readability.js +3 -3
- package/dist/readability.js.map +1 -1
- package/dist/skills/pc-panel-review/scripts/prior-reviews-core.d.ts +19 -0
- package/dist/skills/pc-panel-review/scripts/prior-reviews.d.ts +2 -0
- package/docs/optional-rules.md +2 -2
- package/docs/rules/tex/max-paragraph-numbers.md +13 -7
- package/docs/rules/tex/max-paragraph-words.md +17 -28
- package/docs/rules.md +2 -2
- package/package.json +1 -1
- package/scripts/grow-real-papers/archive.test.ts +294 -0
- package/scripts/grow-real-papers/archive.ts +287 -0
- package/scripts/grow-real-papers/collect.test.ts +329 -0
- package/scripts/grow-real-papers/collect.ts +316 -0
- package/scripts/grow-real-papers/http.test.ts +95 -0
- package/scripts/grow-real-papers/http.ts +76 -0
- package/scripts/grow-real-papers/main.test.ts +295 -0
- package/scripts/grow-real-papers/main.ts +221 -0
- package/scripts/grow-real-papers/paper.test.ts +305 -0
- package/scripts/grow-real-papers/paper.ts +241 -0
- package/scripts/grow-real-papers/rules.test.ts +222 -0
- package/scripts/grow-real-papers/rules.ts +250 -0
- package/scripts/grow-real-papers/sources.test.ts +275 -0
- package/scripts/grow-real-papers/sources.ts +239 -0
- package/scripts/grow-real-papers/testkit.ts +79 -0
- package/skills/pc-panel-review/SKILL.md +18 -11
- package/skills/pc-panel-review/SKILL.md.spec.ts +17 -10
- package/skills/pc-panel-review/scripts/prior-reviews-core.js +44 -0
- package/skills/pc-panel-review/scripts/prior-reviews-core.ts +66 -0
- package/skills/pc-panel-review/scripts/prior-reviews.js +14 -0
- package/skills/pc-panel-review/scripts/prior-reviews.test.ts +206 -0
- package/skills/pc-panel-review/scripts/prior-reviews.ts +19 -0
- package/src/readability.test.ts +44 -41
- package/src/readability.ts +12 -9
- package/src/rule-cases.test.ts +6 -6
package/src/rule-cases.test.ts
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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("
|
|
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(
|
|
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");
|