paperlint 17.2.0 → 18.0.0
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/.github/workflows/deadlines.yml +1 -1
- package/CONTRIBUTING.md +8 -5
- package/README.md +26 -23
- package/dist/adapters/latex/index.d.ts +1 -0
- package/dist/adapters/latex/index.d.ts.map +1 -1
- package/dist/adapters/latex/index.js +3 -0
- package/dist/adapters/latex/index.js.map +1 -1
- package/dist/adapters/latex/parse.d.ts +9 -0
- package/dist/adapters/latex/parse.d.ts.map +1 -1
- package/dist/adapters/latex/parse.js +12 -0
- package/dist/adapters/latex/parse.js.map +1 -1
- package/dist/adapters/latex/venue-lines.d.ts +10 -0
- package/dist/adapters/latex/venue-lines.d.ts.map +1 -0
- package/dist/adapters/latex/venue-lines.js +11 -0
- package/dist/adapters/latex/venue-lines.js.map +1 -0
- package/dist/build.d.ts +1 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +17 -6
- package/dist/cli.js.map +1 -1
- package/dist/domain/body-pages.d.ts +1 -1
- package/dist/domain/body-pages.js +1 -1
- package/dist/domain/edition.d.ts +35 -0
- package/dist/domain/edition.d.ts.map +1 -0
- package/dist/domain/edition.js +64 -0
- package/dist/domain/edition.js.map +1 -0
- package/dist/edition-rule.d.ts +17 -0
- package/dist/edition-rule.d.ts.map +1 -0
- package/dist/edition-rule.js +90 -0
- package/dist/edition-rule.js.map +1 -0
- package/dist/facts-file.d.ts +1 -1
- package/dist/facts-file.d.ts.map +1 -1
- package/dist/folder-layout-rule.js +1 -1
- package/dist/folder-layout-rule.js.map +1 -1
- package/dist/folder-venue-rule.d.ts +1 -1
- package/dist/folder-venue-rule.d.ts.map +1 -1
- package/dist/folder-venue-rule.js +15 -6
- package/dist/folder-venue-rule.js.map +1 -1
- package/dist/heading-case.js +1 -1
- package/dist/ports/latex.d.ts +6 -1
- package/dist/ports/latex.d.ts.map +1 -1
- package/dist/preset-card-rule.d.ts.map +1 -1
- package/dist/preset-card-rule.js +2 -1
- package/dist/preset-card-rule.js.map +1 -1
- package/dist/presets.d.ts +26 -8
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +86 -19
- package/dist/presets.js.map +1 -1
- package/dist/tex-requirements.d.ts +0 -2
- package/dist/tex-requirements.d.ts.map +1 -1
- package/dist/tex-requirements.js +0 -1
- package/dist/tex-requirements.js.map +1 -1
- package/dist/tex-venue-rules.d.ts +19 -8
- package/dist/tex-venue-rules.d.ts.map +1 -1
- package/dist/tex-venue-rules.js +81 -21
- package/dist/tex-venue-rules.js.map +1 -1
- package/dist/venue-rules.js +1 -1
- package/dist/venue-rules.js.map +1 -1
- package/docs/configuration.md +7 -6
- package/docs/optional-rules.md +2 -2
- package/docs/prior-art/hotcrp-option-types.md +1 -1
- package/docs/rules/anonymity/identity.md +2 -2
- package/docs/rules/cycle/record.md +4 -4
- package/docs/rules/paper/edition-over.md +66 -0
- package/docs/rules/paper/folder-venue-leftover.md +22 -18
- package/docs/rules/pdf/body-size.md +6 -6
- package/docs/rules/talk/profile.md +3 -3
- package/docs/rules/tex/claim-emphasis.md +1 -1
- package/docs/rules/tex/contrast-frames.md +1 -1
- package/docs/rules/tex/heading-case.md +20 -20
- package/docs/rules/tex/negated-sentences.md +1 -1
- package/docs/rules/tex/relation-markers.md +1 -1
- package/docs/rules/tex/venue-leftover.md +82 -44
- package/docs/rules.md +38 -23
- package/docs/submission.md +6 -6
- package/docs/talk.md +2 -2
- package/docs/venues.md +85 -5
- package/fixtures/build-e2e/acmart/expect.json +1 -1
- package/fixtures/build-e2e/acmart/paperlint.json +1 -1
- package/fixtures/build-e2e/aidc/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-ack/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-author/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-bib/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-href/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-macro/paperlint.json +1 -1
- package/fixtures/build-e2e/anon-pdfauthor/paperlint.json +1 -1
- package/fixtures/build-e2e/fallback/expect.json +1 -1
- package/fixtures/build-e2e/fse/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/fse/expect.json +15 -0
- package/fixtures/build-e2e/fse/paper.tex +42 -0
- package/fixtures/build-e2e/fse/paperlint.json +1 -0
- package/fixtures/build-e2e/fse-over/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/fse-over/expect.json +16 -0
- package/fixtures/build-e2e/fse-over/paper.tex +41 -0
- package/fixtures/build-e2e/fse-over/paperlint.json +1 -0
- package/fixtures/build-e2e/msr/paperlint.json +1 -1
- package/fixtures/build-e2e/msr-appendix-after/paperlint.json +1 -1
- package/lib/skill-checks.mjs +1 -1
- package/package.json +1 -1
- package/presets/acl-latex.jsonc +35 -0
- package/presets/acl-latex.md +40 -0
- package/presets/acm-acmsmall.jsonc +115 -0
- package/presets/acm-acmsmall.md +62 -0
- package/presets/acm-sigconf.jsonc +1 -1
- package/presets/acm-sigconf.md +1 -1
- package/presets/acsac-2026.jsonc +19 -0
- package/presets/acsac-2026.md +46 -0
- package/presets/{agent.jsonc → agent-2027.jsonc} +14 -7
- package/presets/{agent.md → agent-2027.md} +10 -6
- package/presets/{agenticdev.jsonc → agenticdev-2026.jsonc} +6 -3
- package/presets/{agenticdev.md → agenticdev-2026.md} +5 -5
- package/presets/{agentverify.jsonc → agentverify-2027.jsonc} +10 -2
- package/presets/{agentverify.md → agentverify-2027.md} +9 -3
- package/presets/{aidc.jsonc → aidc-2026.jsonc} +12 -4
- package/presets/{aidc.md → aidc-2026.md} +8 -4
- package/presets/{aisec.jsonc → aisec-2026.jsonc} +7 -4
- package/presets/{aisec.md → aisec-2026.md} +7 -6
- package/presets/{ase.jsonc → ase-2026.jsonc} +9 -9
- package/presets/{ase.md → ase-2026.md} +8 -8
- package/presets/{ccs.jsonc → ccs-2026.jsonc} +4 -4
- package/presets/{ccs.md → ccs-2026.md} +4 -4
- package/presets/emnlp-2026.jsonc +21 -0
- package/presets/emnlp-2026.md +46 -0
- package/presets/fse-2027.jsonc +92 -0
- package/presets/fse-2027.md +143 -0
- package/presets/icse-2027.jsonc +24 -0
- package/presets/icse-2027.md +53 -0
- package/presets/{icse.jsonc → icse-2028.jsonc} +8 -7
- package/presets/{icse.md → icse-2028.md} +9 -8
- package/presets/ieee-conference.jsonc +1 -1
- package/presets/ieee-conference.md +2 -2
- package/presets/{msr.jsonc → msr-2027.jsonc} +4 -5
- package/presets/{msr.md → msr-2027.md} +7 -7
- package/presets/{nlbse.jsonc → nlbse-2027.jsonc} +9 -1
- package/presets/{nlbse.md → nlbse-2027.md} +9 -3
- package/presets/{realm.jsonc → realm-2026.jsonc} +17 -27
- package/presets/{realm.md → realm-2026.md} +11 -4
- package/presets/{sp.jsonc → sp-2027.jsonc} +8 -8
- package/presets/{sp.md → sp-2027.md} +5 -5
- package/presets/tex/agenticdev.tex +1 -1
- package/presets/venue-profile.schema.json +28 -13
- package/scripts/refresh-deadlines/main.test.ts +4 -4
- package/scripts/refresh-deadlines/refresh.test.ts +9 -9
- package/skills/find-venue/SKILL.md +2 -2
- package/skills/find-venue/SKILL.md.spec.ts +1 -1
- package/skills/render-paper/extract-pdf-facts.harness.ts +2 -2
- package/skills/submit-paper/SKILL.md +7 -7
- package/skills/submit-paper/SKILL.md.spec.ts +6 -6
- package/src/adapters/latex/index.ts +3 -0
- package/src/adapters/latex/parse.ts +15 -0
- package/src/adapters/latex/venue-lines.ts +21 -0
- package/src/build.harness.mjs +5 -2
- package/src/build.ts +1 -1
- package/src/cli.test.ts +8 -6
- package/src/cli.ts +23 -6
- package/src/cycle-rules.test.ts +8 -6
- package/src/domain/body-pages.ts +1 -1
- package/src/domain/edition.ts +104 -0
- package/src/domain/submission-fields.test.ts +13 -10
- package/src/domain/venue-name.test.ts +41 -16
- package/src/domain/versions.test.ts +2 -2
- package/src/edition-rule.test.ts +164 -0
- package/src/edition-rule.ts +121 -0
- package/src/facts-file.test.ts +4 -4
- package/src/facts-file.ts +1 -1
- package/src/folder-layout-rule.test.ts +1 -1
- package/src/folder-layout-rule.ts +1 -1
- package/src/folder-venue-rule.test.ts +43 -10
- package/src/folder-venue-rule.ts +16 -7
- package/src/heading-case.test.ts +4 -4
- package/src/heading-case.ts +1 -1
- package/src/linted-set.test.ts +1 -1
- package/src/new-paper.test.ts +38 -25
- package/src/paper-files.test.ts +1 -1
- package/src/paper-settings-commands.test.ts +4 -4
- package/src/paper-settings.test.ts +16 -13
- package/src/ports/latex.ts +6 -0
- package/src/preset-card-rule.test.ts +31 -23
- package/src/preset-card-rule.ts +2 -1
- package/src/presets.test.ts +389 -61
- package/src/presets.ts +124 -31
- package/src/register-bands.test.ts +2 -2
- package/src/rule-cases.test.ts +26 -4
- package/src/submission-show.test.ts +3 -3
- package/src/submission-update.test.ts +1 -1
- package/src/submission.test.ts +1 -1
- package/src/talk-rules.test.ts +1 -1
- package/src/tex-requirements.harness.ts +2 -2
- package/src/tex-requirements.ts +2 -4
- package/src/tex-venue-rules.test.ts +231 -53
- package/src/tex-venue-rules.ts +129 -29
- package/src/venue-rules.test.ts +154 -21
- package/src/venue-rules.ts +1 -1
- package/src/versions-command.test.ts +2 -2
- package/templates/paper/paperlint.json +1 -1
package/src/tex-venue-rules.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* tex/required-section error each section the preset requires is there, titled exactly, and
|
|
8
8
|
* where the preset says (`last`: after every section of the body)
|
|
9
9
|
* tex/venue-leftover warn the text a reader sees names ANOTHER shipped venue — its `name`
|
|
10
|
-
* or one of its `aliases` — than the
|
|
10
|
+
* or one of its `aliases` — than the edition the paper extends: in
|
|
11
|
+
* prose beside a recent year, in a venue-identity command always
|
|
11
12
|
*
|
|
12
13
|
* and, in the `format` plugin (named for the requirement, not the input — paperlint#151):
|
|
13
14
|
*
|
|
@@ -48,6 +49,7 @@ import {
|
|
|
48
49
|
import type { LatexReader } from "./ports/latex.ts";
|
|
49
50
|
import { paperPreset, shippedVenueNames, type Preset } from "./presets.ts";
|
|
50
51
|
import type { NamedVenue } from "./domain/venue-name.ts";
|
|
52
|
+
import { editionLabel } from "./domain/edition.ts";
|
|
51
53
|
import type { PaperSource } from "./domain/paper-source.ts";
|
|
52
54
|
import { readPaper, reportInPaper, type ProseDeps } from "./tex-paper.ts";
|
|
53
55
|
import type { RequiredSection } from "./tex-requirements.ts";
|
|
@@ -269,50 +271,138 @@ export function judgeRequiredSections(
|
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
/**
|
|
272
|
-
* Another shipped venue: the word for it
|
|
273
|
-
*
|
|
274
|
+
* Another shipped venue as the text names it: the word for it (its `name`), every name it goes by,
|
|
275
|
+
* and its edition's year (from its id).
|
|
274
276
|
*/
|
|
275
|
-
export type OtherVenue = NamedVenue & Pick<Preset, "
|
|
277
|
+
export type OtherVenue = NamedVenue & Pick<Preset, "year" | "declaredAliases">;
|
|
276
278
|
|
|
277
279
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
+
* A year beside a name, right after it: `2027`, `'27` or `’27`, after spaces or none (`~` renders
|
|
281
|
+
* as a no-break space). Anchored: it is tried on the text after the name.
|
|
280
282
|
*/
|
|
281
|
-
const
|
|
283
|
+
const YEAR_AFTER = /^[\s\u00a0]*(?:(\d{4})|['’](\d{2}))(?![\p{L}\p{N}])/u;
|
|
284
|
+
|
|
285
|
+
/** The year written right after offset `end` of `text`, or null. `'27` is 2027. Pure. */
|
|
286
|
+
function yearAfter(text: string, end: number): number | null {
|
|
287
|
+
const m = YEAR_AFTER.exec(text.slice(end));
|
|
288
|
+
if (m === null) return null;
|
|
289
|
+
return m[1] !== undefined
|
|
290
|
+
? Number.parseInt(m[1], 10)
|
|
291
|
+
: 2000 + Number.parseInt(String(m[2]), 10);
|
|
292
|
+
}
|
|
282
293
|
|
|
283
294
|
/** `s` as a pattern that matches it literally. */
|
|
284
295
|
const literal = (s: string): string =>
|
|
285
296
|
s.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
286
297
|
|
|
298
|
+
/** One name a match is judged by: whether it is the paper's own, and the venue it shows as. */
|
|
299
|
+
interface NameToJudge {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
readonly own: boolean;
|
|
302
|
+
readonly shows: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Every name to look for, once each: every other shipped venue's, shown as that venue's `name`, and
|
|
307
|
+
* the paper's own and its parent's, which count only in another edition. Pure.
|
|
308
|
+
*/
|
|
309
|
+
function namesToJudge(
|
|
310
|
+
preset: Pick<Preset, "label" | "aliases" | "parentNames">,
|
|
311
|
+
others: readonly OtherVenue[],
|
|
312
|
+
): readonly NameToJudge[] {
|
|
313
|
+
const own = new Set([...preset.aliases, ...preset.parentNames]);
|
|
314
|
+
const shownBy = (name: string): string =>
|
|
315
|
+
others.find((o) => o.aliases.includes(name))?.label ??
|
|
316
|
+
(preset.aliases.includes(name) ? preset.label : name);
|
|
317
|
+
const all = [...new Set([...others.flatMap((o) => o.aliases), ...own])];
|
|
318
|
+
return all.map((name) => ({
|
|
319
|
+
name,
|
|
320
|
+
own: own.has(name),
|
|
321
|
+
shows: shownBy(name),
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
|
|
287
325
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
326
|
+
* Whether a name at a place, with `year` beside it (null: none), names another venue than the
|
|
327
|
+
* paper's edition (of year `paperYear`). Inside a venue-identity command (`inLine`) any other
|
|
328
|
+
* venue's name counts; in prose only beside a year no older than the paper's year minus one, so
|
|
329
|
+
* related work («ICSE 2019») and a bare acronym are not leftovers. The paper's own names, and its
|
|
330
|
+
* parent's, count only beside another year: another edition of its own series. Pure.
|
|
331
|
+
*/
|
|
332
|
+
export function namesAnotherEdition(
|
|
333
|
+
n: { readonly own: boolean; readonly inLine: boolean },
|
|
334
|
+
year: number | null,
|
|
335
|
+
paperYear: number | null,
|
|
336
|
+
): boolean {
|
|
337
|
+
const recent = paperYear === null || (year !== null && year >= paperYear - 1);
|
|
338
|
+
if (n.own)
|
|
339
|
+
return (
|
|
340
|
+
year !== null &&
|
|
341
|
+
paperYear !== null &&
|
|
342
|
+
year !== paperYear &&
|
|
343
|
+
(n.inLine || recent)
|
|
344
|
+
);
|
|
345
|
+
return n.inLine || (year !== null && recent);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** A name to look for, with the pattern that finds it as a whole word. */
|
|
349
|
+
type NameMatcher = NameToJudge & { readonly re: RegExp };
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The findings of one name in one run: each whole-word match judged with the year beside it and
|
|
353
|
+
* whether it stands in a venue-stating command (`inLine`). Pure.
|
|
354
|
+
*/
|
|
355
|
+
function matchesIn(
|
|
356
|
+
run: TextRun,
|
|
357
|
+
n: NameMatcher,
|
|
358
|
+
paper: {
|
|
359
|
+
readonly inLine: (at: Span | null) => boolean;
|
|
360
|
+
readonly year: number | null;
|
|
361
|
+
readonly venue: string;
|
|
362
|
+
},
|
|
363
|
+
): readonly Located[] {
|
|
364
|
+
const { inLine, venue } = paper;
|
|
365
|
+
const text = runText(run);
|
|
366
|
+
return [...text.matchAll(n.re)].flatMap((m) => {
|
|
367
|
+
const at = spanIn(run, m.index, m.index + m[0].length);
|
|
368
|
+
const year = yearAfter(text, m.index + m[0].length);
|
|
369
|
+
const judged = { own: n.own, inLine: inLine(at) };
|
|
370
|
+
if (!namesAnotherEdition(judged, year, paper.year)) return [];
|
|
371
|
+
const other = editionLabel(n.shows, year);
|
|
372
|
+
return [{ messageId: "leftover", data: { name: m[0], other, venue }, at }];
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Each place the rendered text names another venue than the paper's edition — a name as a whole
|
|
378
|
+
* word, case and all, judged with the year beside it (`namesAnotherEdition`). `lines` are the spans
|
|
379
|
+
* of the commands that state the paper's venue (`\acmConference` …).
|
|
291
380
|
*/
|
|
292
381
|
export function judgeLeftover(
|
|
293
382
|
runs: readonly TextRun[],
|
|
383
|
+
lines: readonly Place[],
|
|
294
384
|
preset: Preset,
|
|
295
385
|
others: readonly OtherVenue[],
|
|
296
386
|
): readonly Located[] {
|
|
297
|
-
const
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
387
|
+
const venue = editionLabel(preset.label, preset.year);
|
|
388
|
+
const inLine = (at: Span | null): boolean =>
|
|
389
|
+
at !== null &&
|
|
390
|
+
lines.some(
|
|
391
|
+
(l) =>
|
|
392
|
+
l.kind === "at" && l.span.start <= at.start && at.start < l.span.end,
|
|
393
|
+
);
|
|
394
|
+
const names: readonly NameMatcher[] = namesToJudge(preset, others).map(
|
|
395
|
+
(n) => ({
|
|
396
|
+
...n,
|
|
397
|
+
re: new RegExp(
|
|
398
|
+
`(?<![\\p{L}\\p{N}])${literal(n.name)}(?![\\p{L}\\p{N}])`,
|
|
399
|
+
"gu",
|
|
400
|
+
),
|
|
401
|
+
}),
|
|
308
402
|
);
|
|
309
403
|
return runs.flatMap((run) =>
|
|
310
|
-
names.flatMap((
|
|
311
|
-
|
|
312
|
-
messageId: "leftover",
|
|
313
|
-
data: { name: m[0], other, venue: preset.label },
|
|
314
|
-
at: spanIn(run, m.index, m.index + m[0].length),
|
|
315
|
-
})),
|
|
404
|
+
names.flatMap((n) =>
|
|
405
|
+
matchesIn(run, n, { inLine, year: preset.year, venue }),
|
|
316
406
|
),
|
|
317
407
|
);
|
|
318
408
|
}
|
|
@@ -437,7 +527,12 @@ const RULES: Readonly<
|
|
|
437
527
|
},
|
|
438
528
|
"venue-leftover": {
|
|
439
529
|
judge: (r) =>
|
|
440
|
-
judgeLeftover(
|
|
530
|
+
judgeLeftover(
|
|
531
|
+
r.latex.renderedRuns(r.src),
|
|
532
|
+
r.latex.venueLines(r.src),
|
|
533
|
+
r.preset,
|
|
534
|
+
r.others(),
|
|
535
|
+
),
|
|
441
536
|
meta: {
|
|
442
537
|
type: "suggestion",
|
|
443
538
|
docs: {
|
|
@@ -481,7 +576,12 @@ export function otherVenues(
|
|
|
481
576
|
): readonly OtherVenue[] {
|
|
482
577
|
return shippedVenueNames(deps)
|
|
483
578
|
.filter((v) => !v.chain.every((f) => preset.chain.includes(f)))
|
|
484
|
-
.map(({ label, aliases,
|
|
579
|
+
.map(({ label, aliases, year, declaredAliases }) => ({
|
|
580
|
+
label,
|
|
581
|
+
aliases,
|
|
582
|
+
year,
|
|
583
|
+
declaredAliases,
|
|
584
|
+
}));
|
|
485
585
|
}
|
|
486
586
|
|
|
487
587
|
/** What the venue-conformance rules are built with: the preset store, the LaTeX reader, and the paper's files as the build recorded them. */
|
package/src/venue-rules.test.ts
CHANGED
|
@@ -175,7 +175,7 @@ function lint(
|
|
|
175
175
|
return out;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
const DECL = { extends: "paperlint:agenticdev", kind: "short" };
|
|
178
|
+
const DECL = { extends: "paperlint:agenticdev-2026", kind: "short" };
|
|
179
179
|
const ids = (fs: readonly Finding[]) =>
|
|
180
180
|
fs.map((f) => `${f.rule}:${f.messageId}`).sort();
|
|
181
181
|
/** A patch that changes one field set of the `i`-th font. */
|
|
@@ -197,7 +197,7 @@ describe("a paper that meets its venue", () => {
|
|
|
197
197
|
|
|
198
198
|
it("is silent on aisec, a second shipped ACM profile", () => {
|
|
199
199
|
expect(
|
|
200
|
-
lint({ venue: { extends: "paperlint:aisec", kind: "research" } }),
|
|
200
|
+
lint({ venue: { extends: "paperlint:aisec-2026", kind: "research" } }),
|
|
201
201
|
).toEqual([]);
|
|
202
202
|
});
|
|
203
203
|
|
|
@@ -247,7 +247,7 @@ describe("a paper that names no venue", () => {
|
|
|
247
247
|
"the last cycle closed, none open",
|
|
248
248
|
{
|
|
249
249
|
id: "first-2026",
|
|
250
|
-
venue: { kind: "preset", extends: "paperlint:aisec" },
|
|
250
|
+
venue: { kind: "preset", extends: "paperlint:aisec-2026" },
|
|
251
251
|
opened: "2026-07-01",
|
|
252
252
|
outcome: { kind: "withdrawn", date: "2026-07-18", evidence: "n.md" },
|
|
253
253
|
},
|
|
@@ -271,13 +271,13 @@ describe("pdf/profile — the declaration must resolve, or nothing is judged", (
|
|
|
271
271
|
"an unknown venue (a typo would silently disable every check)",
|
|
272
272
|
{ extends: "paperlint:agentic-dev", kind: "short" },
|
|
273
273
|
"preset",
|
|
274
|
-
/agent, agenticdev, agentverify, aidc, aisec, ase, ccs, icse, ieee-conference, msr, nlbse, realm, sp/,
|
|
274
|
+
/acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
|
|
275
275
|
],
|
|
276
276
|
[
|
|
277
277
|
"the base TeX set is not a venue",
|
|
278
278
|
{ extends: "paperlint:tex-base" },
|
|
279
279
|
"preset",
|
|
280
|
-
/agent, agenticdev, agentverify, aidc, aisec, ase, ccs, icse, ieee-conference, msr, nlbse, realm, sp/,
|
|
280
|
+
/acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
|
|
281
281
|
],
|
|
282
282
|
[
|
|
283
283
|
"paperlint.json that is not JSON",
|
|
@@ -312,10 +312,10 @@ describe("pdf/profile — the declaration must resolve, or nothing is judged", (
|
|
|
312
312
|
|
|
313
313
|
describe("pdf/profile — the kind", () => {
|
|
314
314
|
it.each([
|
|
315
|
-
["no kind", { extends: "paperlint:agenticdev" }, "kindMissing"],
|
|
315
|
+
["no kind", { extends: "paperlint:agenticdev-2026" }, "kindMissing"],
|
|
316
316
|
[
|
|
317
317
|
"a kind the venue does not have",
|
|
318
|
-
{ extends: "paperlint:agenticdev", kind: "long" },
|
|
318
|
+
{ extends: "paperlint:agenticdev-2026", kind: "long" },
|
|
319
319
|
"kindUnknown",
|
|
320
320
|
],
|
|
321
321
|
])(
|
|
@@ -354,7 +354,7 @@ describe("pdf/profile — the kind", () => {
|
|
|
354
354
|
});
|
|
355
355
|
expect(
|
|
356
356
|
lint({
|
|
357
|
-
venue: { extends: "paperlint:realm", kind: "long" },
|
|
357
|
+
venue: { extends: "paperlint:realm-2026", kind: "long" },
|
|
358
358
|
facts: realm,
|
|
359
359
|
}),
|
|
360
360
|
).toEqual([]);
|
|
@@ -541,13 +541,16 @@ describe("format/page-limit", () => {
|
|
|
541
541
|
"format/page-limit:pages",
|
|
542
542
|
]);
|
|
543
543
|
expect(
|
|
544
|
-
lint({
|
|
544
|
+
lint({
|
|
545
|
+
venue: { extends: "paperlint:agenticdev-2026", kind: "full" },
|
|
546
|
+
facts,
|
|
547
|
+
}),
|
|
545
548
|
).toEqual([]);
|
|
546
549
|
});
|
|
547
550
|
});
|
|
548
551
|
|
|
549
552
|
describe("format/page-limit on a venue whose limit includes the references (AGENT)", () => {
|
|
550
|
-
const AGENT = { extends: "paperlint:agent", kind: "full" };
|
|
553
|
+
const AGENT = { extends: "paperlint:agent-2027", kind: "full" };
|
|
551
554
|
/** An AGENT full paper: a body that fills eight pages, its references on `refs` more. */
|
|
552
555
|
const spill = (refs: number): Facts =>
|
|
553
556
|
withFacts((f) => {
|
|
@@ -563,7 +566,7 @@ describe("format/page-limit on a venue whose limit includes the references (AGEN
|
|
|
563
566
|
expect(fs.map((f) => [f.messageId, f.message])).toEqual([
|
|
564
567
|
[
|
|
565
568
|
"pages",
|
|
566
|
-
"pages, references included: 9, over the limit 8 for AGENT
|
|
569
|
+
"pages, references included: 9, over the limit 8 for AGENT/full — a desk reject; cut the text",
|
|
567
570
|
],
|
|
568
571
|
]);
|
|
569
572
|
});
|
|
@@ -730,7 +733,7 @@ describe("the IEEE conference family and AIDC", () => {
|
|
|
730
733
|
const FAMILY = { extends: "paperlint:ieee-conference" };
|
|
731
734
|
const IDENTITY = ["Ada Example", "adaexample", "ada@example.org"];
|
|
732
735
|
const AIDC = {
|
|
733
|
-
extends: "paperlint:aidc",
|
|
736
|
+
extends: "paperlint:aidc-2026",
|
|
734
737
|
kind: "regular",
|
|
735
738
|
identity: IDENTITY,
|
|
736
739
|
};
|
|
@@ -758,7 +761,7 @@ describe("the IEEE conference family and AIDC", () => {
|
|
|
758
761
|
|
|
759
762
|
it.each([
|
|
760
763
|
["the family", FAMILY],
|
|
761
|
-
["aidc", AIDC],
|
|
764
|
+
["aidc-2026", AIDC],
|
|
762
765
|
])("the planted A4 build fails %s on both page dimensions", (_, venue) => {
|
|
763
766
|
const facts = ieeeFacts(
|
|
764
767
|
(f) => ((f.page_w_in = 8.264), (f.page_h_in = 11.694)),
|
|
@@ -771,7 +774,7 @@ describe("the IEEE conference family and AIDC", () => {
|
|
|
771
774
|
|
|
772
775
|
it.each([
|
|
773
776
|
["the family", FAMILY],
|
|
774
|
-
["aidc", AIDC],
|
|
777
|
+
["aidc-2026", AIDC],
|
|
775
778
|
])("the planted Computer Modern build fails %s: no Times", (_, venue) => {
|
|
776
779
|
const facts = ieeeFacts(
|
|
777
780
|
(f) => (f.fonts = type1(["CMBX12", "CMR10", "CMTI10"])),
|
|
@@ -782,13 +785,143 @@ describe("the IEEE conference family and AIDC", () => {
|
|
|
782
785
|
});
|
|
783
786
|
});
|
|
784
787
|
|
|
788
|
+
/**
|
|
789
|
+
* The facts of acmart's own `acmsmall-conf.tex` sample, measured for acm-acmsmall.jsonc
|
|
790
|
+
* (2026-11-19) without its appendix: banal's page, columns and sizes, pdf.js's fonts.
|
|
791
|
+
*/
|
|
792
|
+
const acmsmallFacts = (patch: Patch = () => {}): Facts =>
|
|
793
|
+
withFacts((f) => {
|
|
794
|
+
f.page_w_in = 6.75;
|
|
795
|
+
f.page_h_in = 10;
|
|
796
|
+
f.columns = 1;
|
|
797
|
+
f.body_pt = 10.3;
|
|
798
|
+
f.ref_pt = 8.3;
|
|
799
|
+
f.npages = 10;
|
|
800
|
+
f.body_pages = 8;
|
|
801
|
+
f.ref_pages = 1;
|
|
802
|
+
f.fonts = type1([
|
|
803
|
+
"LinBiolinumT",
|
|
804
|
+
"LinBiolinumTB",
|
|
805
|
+
"LinLibertineT",
|
|
806
|
+
"LinLibertineTB",
|
|
807
|
+
"LinLibertineTI",
|
|
808
|
+
"Inconsolatazi4-Regular",
|
|
809
|
+
]);
|
|
810
|
+
patch(f);
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
const ACMSMALL = { extends: "paperlint:acm-acmsmall" };
|
|
814
|
+
const FSE = {
|
|
815
|
+
extends: "paperlint:fse-2027",
|
|
816
|
+
kind: "research",
|
|
817
|
+
identity: ["Ada Example", "adaexample", "ada@example.org"],
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
describe("the ACM single-column family and FSE", () => {
|
|
821
|
+
it.each([
|
|
822
|
+
["the family", ACMSMALL],
|
|
823
|
+
["fse/research", FSE],
|
|
824
|
+
])("the measured acmsmall build passes %s", (_, venue) => {
|
|
825
|
+
expect(lint({ venue, facts: acmsmallFacts() })).toEqual([]);
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
it.each([
|
|
829
|
+
["the family", ACMSMALL],
|
|
830
|
+
["fse-2027", FSE],
|
|
831
|
+
])(
|
|
832
|
+
"🔴 the planted sigconf build fails %s: page, columns and body size",
|
|
833
|
+
(_, venue) => {
|
|
834
|
+
const facts = acmsmallFacts((f) => {
|
|
835
|
+
f.page_w_in = 8.5;
|
|
836
|
+
f.page_h_in = 11;
|
|
837
|
+
f.columns = 2;
|
|
838
|
+
f.body_pt = 9.3;
|
|
839
|
+
f.body_pages = 6;
|
|
840
|
+
});
|
|
841
|
+
expect(ids(lint({ venue, facts }))).toEqual([
|
|
842
|
+
"pdf/body-size:body",
|
|
843
|
+
"pdf/geometry:columns",
|
|
844
|
+
"pdf/geometry:dim",
|
|
845
|
+
"pdf/geometry:dim",
|
|
846
|
+
]);
|
|
847
|
+
},
|
|
848
|
+
);
|
|
849
|
+
|
|
850
|
+
it("🔴 the planted Computer Modern build fails: no Biolinum for the headings", () => {
|
|
851
|
+
const facts = acmsmallFacts(
|
|
852
|
+
(f) =>
|
|
853
|
+
(f.fonts = type1([
|
|
854
|
+
"LinLibertineT",
|
|
855
|
+
"SFRM1000",
|
|
856
|
+
"SFSX1440",
|
|
857
|
+
"SFSS0900",
|
|
858
|
+
])),
|
|
859
|
+
);
|
|
860
|
+
const fs = lint({ venue: ACMSMALL, facts });
|
|
861
|
+
expect(ids(fs)).toEqual(["pdf/fonts:noFamily"]);
|
|
862
|
+
expect(fs[0]?.message).toMatch(/LinBiolinum/);
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
it("🔴 a bibliography in \\small instead of the class's 8 pt fails pdf/body-size", () => {
|
|
866
|
+
const fs = lint({
|
|
867
|
+
venue: ACMSMALL,
|
|
868
|
+
facts: acmsmallFacts((f) => (f.ref_pt = 9.3)),
|
|
869
|
+
});
|
|
870
|
+
expect(fs.map((f) => f.message)).toEqual([
|
|
871
|
+
"the reference font size is 9.3 pt, outside 8 pt for acm-acmsmall (allowing ±0.5 pt for the measuring drift) — fix the bibliography's font size",
|
|
872
|
+
]);
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
describe("format/page-limit on FSE: 18 body pages and 4 of references, 20 and 4 after a major revision", () => {
|
|
877
|
+
const REVISION = { ...FSE, kind: "major-revision" };
|
|
878
|
+
it.each([
|
|
879
|
+
{ name: "research: 18 + 4 pass", venue: FSE, body: 18, refs: 4, want: [] },
|
|
880
|
+
{
|
|
881
|
+
name: "🔴 research: a 19th body page fails",
|
|
882
|
+
venue: FSE,
|
|
883
|
+
body: 19,
|
|
884
|
+
refs: 4,
|
|
885
|
+
want: ["format/page-limit:pages"],
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: "🔴 research: a 5th page of references fails",
|
|
889
|
+
venue: FSE,
|
|
890
|
+
body: 18,
|
|
891
|
+
refs: 5,
|
|
892
|
+
want: ["format/page-limit:pages"],
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
name: "major-revision: 20 + 4 pass",
|
|
896
|
+
venue: REVISION,
|
|
897
|
+
body: 20,
|
|
898
|
+
refs: 4,
|
|
899
|
+
want: [],
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
name: "🔴 major-revision: a 21st body page fails",
|
|
903
|
+
venue: REVISION,
|
|
904
|
+
body: 21,
|
|
905
|
+
refs: 4,
|
|
906
|
+
want: ["format/page-limit:pages"],
|
|
907
|
+
},
|
|
908
|
+
])("$name", ({ venue, body, refs, want }) => {
|
|
909
|
+
const facts = acmsmallFacts((f) => {
|
|
910
|
+
f.body_pages = body;
|
|
911
|
+
f.ref_pages = refs;
|
|
912
|
+
f.npages = body + refs;
|
|
913
|
+
});
|
|
914
|
+
expect(ids(lint({ venue, facts }))).toEqual(want);
|
|
915
|
+
});
|
|
916
|
+
});
|
|
917
|
+
|
|
785
918
|
describe("pdf/body-size on the IEEE family: 10 pt body, 8 pt references", () => {
|
|
786
919
|
it("a body size off the family's 10 pt fails pdf/body-size", () => {
|
|
787
920
|
expect(
|
|
788
921
|
ids(
|
|
789
922
|
lint({
|
|
790
923
|
venue: {
|
|
791
|
-
extends: "paperlint:aidc",
|
|
924
|
+
extends: "paperlint:aidc-2026",
|
|
792
925
|
kind: "regular",
|
|
793
926
|
identity: ["Ada Example"],
|
|
794
927
|
},
|
|
@@ -817,7 +950,7 @@ describe("pdf/body-size on the IEEE family: 10 pt body, 8 pt references", () =>
|
|
|
817
950
|
|
|
818
951
|
/** An AIDC regular paper (12 body pages), for the page-limit tests. */
|
|
819
952
|
const AIDC_REGULAR = {
|
|
820
|
-
extends: "paperlint:aidc",
|
|
953
|
+
extends: "paperlint:aidc-2026",
|
|
821
954
|
kind: "regular",
|
|
822
955
|
identity: ["Ada Example"],
|
|
823
956
|
};
|
|
@@ -1055,7 +1188,7 @@ describe("format/page-limit with `appendix_in_body`: the appendix is body, the r
|
|
|
1055
1188
|
|
|
1056
1189
|
/** An MSR technical paper that declares who wrote it. */
|
|
1057
1190
|
const MSR = {
|
|
1058
|
-
extends: "paperlint:msr",
|
|
1191
|
+
extends: "paperlint:msr-2027",
|
|
1059
1192
|
kind: "technical",
|
|
1060
1193
|
identity: ["Ada Example"],
|
|
1061
1194
|
};
|
|
@@ -1126,7 +1259,7 @@ describe("format/page-limit on MSR: ten pages of main text, appendices included,
|
|
|
1126
1259
|
|
|
1127
1260
|
/** An AIDC paper that declares who wrote it. */
|
|
1128
1261
|
const BLIND = {
|
|
1129
|
-
extends: "paperlint:aidc",
|
|
1262
|
+
extends: "paperlint:aidc-2026",
|
|
1130
1263
|
kind: "regular",
|
|
1131
1264
|
identity: ["Ada Example", "adaexample", "ada@example.org"],
|
|
1132
1265
|
};
|
|
@@ -1134,7 +1267,7 @@ const said = (patch: Patch) => ieeeFacts(patch);
|
|
|
1134
1267
|
|
|
1135
1268
|
describe("anonymity/identity — a blind venue (AIDC)", () => {
|
|
1136
1269
|
it("no identity declared: an error, built or not — a missing input is not a clean pass", () => {
|
|
1137
|
-
const noIdentity = { extends: "paperlint:aidc", kind: "regular" };
|
|
1270
|
+
const noIdentity = { extends: "paperlint:aidc-2026", kind: "regular" };
|
|
1138
1271
|
const built = lint({ venue: noIdentity, facts: ieeeFacts() });
|
|
1139
1272
|
expect(ids(built)).toEqual(["anonymity/identity:noIdentity"]);
|
|
1140
1273
|
expect(built[0]?.message).toMatch(/"identity": \["Your Name"/);
|
|
@@ -1197,7 +1330,7 @@ describe("anonymity/identity — a blind venue (AIDC)", () => {
|
|
|
1197
1330
|
|
|
1198
1331
|
describe("an AIDC kind", () => {
|
|
1199
1332
|
it("an AIDC kind that does not exist names the two that do", () => {
|
|
1200
|
-
const fs = lint({ venue: { extends: "paperlint:aidc", kind: "wip" } });
|
|
1333
|
+
const fs = lint({ venue: { extends: "paperlint:aidc-2026", kind: "wip" } });
|
|
1201
1334
|
expect(ids(fs)).toContain("pdf/profile:kindUnknown");
|
|
1202
1335
|
expect(fs.find((f) => f.rule === "pdf/profile")?.message).toMatch(
|
|
1203
1336
|
/regular, short/,
|
|
@@ -1324,7 +1457,7 @@ const onCycle = (cycle: Record<string, unknown>) => ({
|
|
|
1324
1457
|
cycles: [
|
|
1325
1458
|
{
|
|
1326
1459
|
id: "aidc-2026",
|
|
1327
|
-
venue: { kind: "preset", extends: "paperlint:aidc" },
|
|
1460
|
+
venue: { kind: "preset", extends: "paperlint:aidc-2026" },
|
|
1328
1461
|
kind: "regular",
|
|
1329
1462
|
opened: "2026-09-26",
|
|
1330
1463
|
...cycle,
|
package/src/venue-rules.ts
CHANGED
|
@@ -754,7 +754,7 @@ const META: Readonly<Record<VenueRuleName, Meta>> = {
|
|
|
754
754
|
unbuilt:
|
|
755
755
|
"not built yet, so `{{venue}}`'s page limit, fonts and format are not checked — run `paperlint build`",
|
|
756
756
|
noPreset:
|
|
757
|
-
'this paper names no venue preset yet, so its page limit, fonts and format are not checked — set "extends" in {{file}} (e.g. "paperlint:agenticdev"; see docs/rules.md)',
|
|
757
|
+
'this paper names no venue preset yet, so its page limit, fonts and format are not checked — set "extends" in {{file}} (e.g. "paperlint:agenticdev-2026"; see docs/rules.md)',
|
|
758
758
|
noPresetCycle:
|
|
759
759
|
'this paper\'s current cycle names no venue preset, so its page limit, fonts and format are not checked — set the venue in the current cycle in {{file}} ("venue": { "kind": "preset", "extends": "paperlint:…" }), or open a new cycle when the last one has ended',
|
|
760
760
|
noGeometry:
|
|
@@ -44,14 +44,14 @@ const decision = (kind: string, date: string) => ({
|
|
|
44
44
|
const CYCLES = [
|
|
45
45
|
{
|
|
46
46
|
id: "workshop-2026",
|
|
47
|
-
venue: { kind: "preset", extends: "paperlint:agenticdev" },
|
|
47
|
+
venue: { kind: "preset", extends: "paperlint:agenticdev-2026" },
|
|
48
48
|
opened: "2026-03-01",
|
|
49
49
|
submission: { id: 3 },
|
|
50
50
|
outcome: decision("accepted", "2026-05-01"),
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: "conf-2026",
|
|
54
|
-
venue: { kind: "preset", extends: "paperlint:aisec" },
|
|
54
|
+
venue: { kind: "preset", extends: "paperlint:aisec-2026" },
|
|
55
55
|
opened: "2026-06-01",
|
|
56
56
|
submission: { id: 11 },
|
|
57
57
|
outcome: decision("rejected", "2026-09-08"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Name this paper's venue preset in \"extends\": \"paperlint:<name>\" for a shipped one, e.g. \"paperlint:agenticdev\" (`npx paperlint --help` lists them), or a path to your own preset relative to THIS file, e.g. \"../../venues/my-venue.jsonc\"; add \"kind\" for its page limit. `npx paperlint new <name> --venue <preset>` writes both for a new paper. Until then the page limit, fonts and format are not checked.",
|
|
2
|
+
"$comment": "Name this paper's venue preset in \"extends\": \"paperlint:<name>\" for a shipped one, e.g. \"paperlint:agenticdev-2026\" (`npx paperlint --help` lists them), or a path to your own preset relative to THIS file, e.g. \"../../venues/my-venue.jsonc\"; add \"kind\" for its page limit. `npx paperlint new <name> --venue <preset>` writes both for a new paper. Until then the page limit, fonts and format are not checked.",
|
|
3
3
|
"extends": null
|
|
4
4
|
}
|