paperlint 17.3.0 → 18.1.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 +20 -19
- package/dist/adapters/hotcrp/index.d.ts +11 -1
- package/dist/adapters/hotcrp/index.d.ts.map +1 -1
- package/dist/adapters/hotcrp/index.js +11 -1
- package/dist/adapters/hotcrp/index.js.map +1 -1
- package/dist/adapters/hotcrp/site.d.ts.map +1 -1
- package/dist/adapters/hotcrp/site.js +3 -1
- package/dist/adapters/hotcrp/site.js.map +1 -1
- package/dist/adapters/hotcrp/token.d.ts +11 -0
- package/dist/adapters/hotcrp/token.d.ts.map +1 -1
- package/dist/adapters/hotcrp/token.js +34 -7
- package/dist/adapters/hotcrp/token.js.map +1 -1
- 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 +21 -9
- 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/domain/portal-token.d.ts +26 -10
- package/dist/domain/portal-token.d.ts.map +1 -1
- package/dist/domain/portal-token.js +19 -12
- package/dist/domain/portal-token.js.map +1 -1
- 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/ports/submission-portal.d.ts +7 -0
- package/dist/ports/submission-portal.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/submission.d.ts +3 -2
- package/dist/submission.d.ts.map +1 -1
- package/dist/submission.js +24 -12
- package/dist/submission.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 +37 -24
- package/docs/submission.md +31 -14
- 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/expect.json +1 -1
- package/fixtures/build-e2e/fse/paperlint.json +1 -1
- package/fixtures/build-e2e/fse-over/expect.json +1 -1
- package/fixtures/build-e2e/fse-over/paperlint.json +1 -1
- 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.md +1 -1
- 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.jsonc → fse-2027.jsonc} +6 -7
- package/presets/{fse.md → fse-2027.md} +9 -9
- 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/hotcrp/cassette/README.md +1 -1
- package/src/adapters/hotcrp/index.ts +12 -0
- package/src/adapters/hotcrp/site.ts +4 -0
- package/src/adapters/hotcrp/token.test.ts +39 -1
- package/src/adapters/hotcrp/token.ts +40 -7
- 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 +27 -9
- 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/portal-token.test.ts +121 -2
- package/src/domain/portal-token.ts +39 -15
- 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 +33 -11
- 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/ports/submission-portal.ts +7 -0
- package/src/preset-card-rule.test.ts +30 -24
- package/src/preset-card-rule.ts +2 -1
- package/src/presets.test.ts +347 -70
- 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 +4 -4
- package/src/submission-update.test.ts +1 -1
- package/src/submission.test.ts +99 -8
- package/src/submission.ts +28 -11
- 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 +187 -62
- package/src/tex-venue-rules.ts +129 -29
- package/src/venue-rules.test.ts +26 -23
- package/src/venue-rules.ts +1 -1
- package/src/versions-command.test.ts +2 -2
- package/templates/paper/paperlint.json +1 -1
|
@@ -249,14 +249,14 @@ rmSync(tmp, { recursive: true, force: true });
|
|
|
249
249
|
// ── 5. the parser's tolerances: an optional block left out, and Ajv's optional fields ───
|
|
250
250
|
{
|
|
251
251
|
const bare = R.parsePreset(
|
|
252
|
-
'{ "type": "venue", "name": "X", "url": "https://x.org/", "extends": "paperlint:aisec" }',
|
|
252
|
+
'{ "type": "venue", "name": "X", "url": "https://x.org/", "extends": "paperlint:aisec-2026" }',
|
|
253
253
|
"bare.jsonc",
|
|
254
254
|
VENUES,
|
|
255
255
|
);
|
|
256
256
|
check(
|
|
257
257
|
"a preset that only extends another: no tex block, `rules` an empty object",
|
|
258
258
|
JSON.stringify([bare.extends, bare.tex, bare.rules]) ===
|
|
259
|
-
'["paperlint:aisec",null,{}]',
|
|
259
|
+
'["paperlint:aisec-2026",null,{}]',
|
|
260
260
|
bare,
|
|
261
261
|
);
|
|
262
262
|
// Guards: `packages` is read without a fallback because the schema refuses a tex block
|
package/src/tex-requirements.ts
CHANGED
|
@@ -215,8 +215,6 @@ export interface PresetFile {
|
|
|
215
215
|
readonly aliases: readonly string[];
|
|
216
216
|
/** Whether the venue reviews double-blind; null when the file does not say. */
|
|
217
217
|
readonly blind: boolean | null;
|
|
218
|
-
/** When the venue's names count as a mention in a paper's text; null when the file does not say. */
|
|
219
|
-
readonly mentions: "with-year" | null;
|
|
220
218
|
/** Sections the venue requires; null when the file names none (a child's list replaces its parent's). */
|
|
221
219
|
readonly requiredSections: readonly RequiredSection[] | null;
|
|
222
220
|
/** Null when the file declares no `tex` block (allowed only with `extends`). */
|
|
@@ -290,7 +288,8 @@ interface PresetBodyJson {
|
|
|
290
288
|
readonly template_forbids?: readonly string[];
|
|
291
289
|
readonly aliases?: readonly string[];
|
|
292
290
|
readonly blind?: boolean;
|
|
293
|
-
|
|
291
|
+
/** A workshop: the schema then requires `parent`, and refuses `parent` without it. */
|
|
292
|
+
readonly workshop?: true;
|
|
294
293
|
readonly required_sections?: readonly {
|
|
295
294
|
readonly title: string;
|
|
296
295
|
readonly position?: "last";
|
|
@@ -558,7 +557,6 @@ export function parsePreset(
|
|
|
558
557
|
templateForbids: j.template_forbids ?? [],
|
|
559
558
|
aliases: j.aliases ?? [],
|
|
560
559
|
blind: orNull(j.blind),
|
|
561
|
-
mentions: orNull(j.mentions),
|
|
562
560
|
requiredSections: sectionsOf(j.required_sections),
|
|
563
561
|
tex: texOf(j.tex),
|
|
564
562
|
format: formatOf(j.format),
|
|
@@ -13,6 +13,7 @@ import { latexReader } from "./adapters/latex/index.ts";
|
|
|
13
13
|
import {
|
|
14
14
|
cyclePortRules,
|
|
15
15
|
judgeRequiredSections,
|
|
16
|
+
judgeLeftover,
|
|
16
17
|
judgeTemplate,
|
|
17
18
|
otherVenues,
|
|
18
19
|
FORMAT_RULE_LEVELS,
|
|
@@ -117,7 +118,7 @@ function lint(
|
|
|
117
118
|
const ids = (fs: readonly Finding[]) =>
|
|
118
119
|
fs.map((f) => `${f.rule}:${f.messageId}`).sort();
|
|
119
120
|
|
|
120
|
-
const AIDC = { extends: "paperlint:aidc", kind: "regular" };
|
|
121
|
+
const AIDC = { extends: "paperlint:aidc-2026", kind: "regular" };
|
|
121
122
|
/** A paper in `documentclass`; the default body carries AIDC's required closing section. */
|
|
122
123
|
const paper = (
|
|
123
124
|
documentclass: string,
|
|
@@ -246,7 +247,7 @@ describe("the venue rules read the whole paper: the files it \\inputs, spliced w
|
|
|
246
247
|
PAPER,
|
|
247
248
|
{
|
|
248
249
|
"paper.tex": tex,
|
|
249
|
-
"intro.tex": "One line.\nFirst written for AgenticDev.\n",
|
|
250
|
+
"intro.tex": "One line.\nFirst written for AgenticDev 2026.\n",
|
|
250
251
|
},
|
|
251
252
|
[
|
|
252
253
|
{ path: "paper.tex", role: "body" },
|
|
@@ -309,8 +310,8 @@ describe("tex/template — several \\documentclass lines behind a TeX switch", (
|
|
|
309
310
|
describe("tex/template — the shipped ACM and ACL templates", () => {
|
|
310
311
|
it("🔴 acmart without sigconf — the manuscript format — fails every ACM preset", () => {
|
|
311
312
|
for (const settings of [
|
|
312
|
-
{ extends: "paperlint:aisec", kind: "research" },
|
|
313
|
-
{ extends: "paperlint:agenticdev", kind: "short" },
|
|
313
|
+
{ extends: "paperlint:aisec-2026", kind: "research" },
|
|
314
|
+
{ extends: "paperlint:agenticdev-2026", kind: "short" },
|
|
314
315
|
{ extends: "paperlint:acm-sigconf" },
|
|
315
316
|
])
|
|
316
317
|
expect(ids(lint(paper("\\documentclass{acmart}"), settings))).toEqual([
|
|
@@ -318,14 +319,14 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
|
|
|
318
319
|
]);
|
|
319
320
|
expect(
|
|
320
321
|
lint(paper("\\documentclass[sigconf,review,anonymous]{acmart}"), {
|
|
321
|
-
extends: "paperlint:aisec",
|
|
322
|
+
extends: "paperlint:aisec-2026",
|
|
322
323
|
kind: "research",
|
|
323
324
|
}),
|
|
324
325
|
).toEqual([]);
|
|
325
326
|
});
|
|
326
327
|
|
|
327
328
|
it("🔴 acmart without acmsmall — the manuscript or the sigconf format — fails the single-column family and FSE", () => {
|
|
328
|
-
const FSE = { extends: "paperlint:fse", kind: "research" };
|
|
329
|
+
const FSE = { extends: "paperlint:fse-2027", kind: "research" };
|
|
329
330
|
for (const settings of [{ extends: "paperlint:acm-acmsmall" }, FSE])
|
|
330
331
|
for (const cls of [
|
|
331
332
|
"\\documentclass{acmart}",
|
|
@@ -335,7 +336,7 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
|
|
|
335
336
|
{
|
|
336
337
|
rule: "tex/template",
|
|
337
338
|
messageId: "missingOption",
|
|
338
|
-
message: `the class option \`acmsmall\` is missing: ${settings === FSE ? "FSE
|
|
339
|
+
message: `the class option \`acmsmall\` is missing: ${settings === FSE ? "FSE" : "acm-acmsmall"} requires \`\\documentclass[acmsmall]{acmart}\``,
|
|
339
340
|
line: 2,
|
|
340
341
|
},
|
|
341
342
|
]);
|
|
@@ -350,7 +351,7 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
|
|
|
350
351
|
it("an ACL paper — article at 11pt, acl.sty as a package — passes realm", () => {
|
|
351
352
|
expect(
|
|
352
353
|
lint(paper("\\documentclass[11pt]{article}\n\\usepackage[review]{acl}"), {
|
|
353
|
-
extends: "paperlint:realm",
|
|
354
|
+
extends: "paperlint:realm-2026",
|
|
354
355
|
kind: "long",
|
|
355
356
|
}),
|
|
356
357
|
).toEqual([]);
|
|
@@ -359,7 +360,7 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
|
|
|
359
360
|
|
|
360
361
|
const PORTING = {
|
|
361
362
|
id: "aidc-2026",
|
|
362
|
-
venue: { kind: "preset", extends: "paperlint:aidc" },
|
|
363
|
+
venue: { kind: "preset", extends: "paperlint:aidc-2026" },
|
|
363
364
|
kind: "regular",
|
|
364
365
|
opened: "2026-09-26",
|
|
365
366
|
phase: "porting",
|
|
@@ -492,8 +493,8 @@ describe("tex/template — class options the preset forbids (`template_forbids`)
|
|
|
492
493
|
});
|
|
493
494
|
});
|
|
494
495
|
|
|
495
|
-
describe("tex/template under paperlint:msr — `[10pt,conference]`, without compsoc or compsocconf", () => {
|
|
496
|
-
const MSR = { extends: "paperlint:msr", kind: "technical" };
|
|
496
|
+
describe("tex/template under paperlint:msr-2027 — `[10pt,conference]`, without compsoc or compsocconf", () => {
|
|
497
|
+
const MSR = { extends: "paperlint:msr-2027", kind: "technical" };
|
|
497
498
|
|
|
498
499
|
it("the class line MSR's call names passes", () => {
|
|
499
500
|
expect(
|
|
@@ -717,8 +718,8 @@ describe("tex/required-section — what fails", () => {
|
|
|
717
718
|
});
|
|
718
719
|
});
|
|
719
720
|
|
|
720
|
-
describe("tex/venue-leftover — FSE
|
|
721
|
-
it("🔴 «FSE 2027» in another venue's paper warns; FSE papers cited by
|
|
721
|
+
describe("tex/venue-leftover — FSE in related work is no leftover", () => {
|
|
722
|
+
it("🔴 «FSE 2027» in another venue's paper warns; FSE papers cited by older years do not", () => {
|
|
722
723
|
const leftover = (body: string) =>
|
|
723
724
|
lint(aidcPaper(body + STATEMENT), AIDC)
|
|
724
725
|
.filter((f) => f.rule === "tex/venue-leftover")
|
|
@@ -754,7 +755,7 @@ describe("tex/required-section — the edges", () => {
|
|
|
754
755
|
expect(
|
|
755
756
|
required(
|
|
756
757
|
lint(paper("\\documentclass[sigconf]{acmart}"), {
|
|
757
|
-
extends: "paperlint:aisec",
|
|
758
|
+
extends: "paperlint:aisec-2026",
|
|
758
759
|
kind: "research",
|
|
759
760
|
}),
|
|
760
761
|
),
|
|
@@ -766,7 +767,7 @@ describe("tex/required-section — the edges", () => {
|
|
|
766
767
|
const extra = {
|
|
767
768
|
[own]: JSON.stringify(
|
|
768
769
|
venuePreset("own", {
|
|
769
|
-
extends: "paperlint:aidc",
|
|
770
|
+
extends: "paperlint:aidc-2026",
|
|
770
771
|
required_sections: [{ title: "Ethics" }],
|
|
771
772
|
}),
|
|
772
773
|
),
|
|
@@ -782,7 +783,7 @@ describe("tex/required-section — the edges", () => {
|
|
|
782
783
|
});
|
|
783
784
|
|
|
784
785
|
const INSTITUTION =
|
|
785
|
-
"\\institution{Presented at AISec 2026, co-located with ACM CCS}";
|
|
786
|
+
"\\institution{Presented at AISec 2026, co-located with ACM CCS 2026}";
|
|
786
787
|
const leftovers = (fs: readonly Finding[]) =>
|
|
787
788
|
fs.filter((f) => f.rule === "tex/venue-leftover");
|
|
788
789
|
|
|
@@ -791,8 +792,8 @@ describe("tex/venue-leftover — another venue named in the text", () => {
|
|
|
791
792
|
const tex = aidcPaper(`${INSTITUTION}\n${BODY}${STATEMENT}`);
|
|
792
793
|
const fs = leftovers(lint(tex, AIDC));
|
|
793
794
|
expect(fs.map((f) => f.message)).toEqual([
|
|
794
|
-
"«AISec» names AISec, and this paper extends AIDC — a leftover from an earlier submission? A reviewer reads it before the abstract. Comments and citation keys are not reported; a sentence that names the other venue on purpose can keep it with a disable directive",
|
|
795
|
-
expect.stringContaining("«ACM CCS» names ACM CCS"),
|
|
795
|
+
"«AISec» names AISec 2026, and this paper extends AIDC 2026 — a leftover from an earlier submission? A reviewer reads it before the abstract. Comments and citation keys are not reported; a sentence that names the other venue on purpose can keep it with a disable directive",
|
|
796
|
+
expect.stringContaining("«ACM CCS» names ACM CCS 2026"),
|
|
796
797
|
]);
|
|
797
798
|
const line = tex.split("\n").indexOf(INSTITUTION) + 1;
|
|
798
799
|
expect(fs.map((f) => f.line)).toEqual([line, line]);
|
|
@@ -804,7 +805,9 @@ describe("tex/venue-leftover — another venue named in the text", () => {
|
|
|
804
805
|
`${INSTITUTION}\nText.`,
|
|
805
806
|
);
|
|
806
807
|
expect(
|
|
807
|
-
leftovers(
|
|
808
|
+
leftovers(
|
|
809
|
+
lint(tex, { extends: "paperlint:aisec-2026", kind: "research" }),
|
|
810
|
+
),
|
|
808
811
|
).toEqual([]);
|
|
809
812
|
});
|
|
810
813
|
|
|
@@ -817,7 +820,7 @@ describe("tex/venue-leftover — another venue named in the text", () => {
|
|
|
817
820
|
|
|
818
821
|
it("a citation's note in square brackets is printed, so it is reported", () => {
|
|
819
822
|
const tex = aidcPaper(
|
|
820
|
-
`As shown~\\citep[presented at AISec]{aisec2025}.\n${BODY}${STATEMENT}`,
|
|
823
|
+
`As shown~\\citep[presented at AISec 2026]{aisec2025}.\n${BODY}${STATEMENT}`,
|
|
821
824
|
);
|
|
822
825
|
expect(leftovers(lint(tex, AIDC)).map((f) => f.line)).toEqual([4]);
|
|
823
826
|
});
|
|
@@ -834,7 +837,7 @@ describe("tex/venue-leftover — another venue named in the text", () => {
|
|
|
834
837
|
describe("tex/venue-leftover — a workshop's parent conference (`parent`) is the paper's own", () => {
|
|
835
838
|
const agenticdev = (text: string) =>
|
|
836
839
|
paper("\\documentclass[sigconf]{acmart}", `${text}\nText.`);
|
|
837
|
-
const AGENTICDEV = { extends: "paperlint:agenticdev", kind: "full" };
|
|
840
|
+
const AGENTICDEV = { extends: "paperlint:agenticdev-2026", kind: "full" };
|
|
838
841
|
const named = (fs: readonly Finding[]) =>
|
|
839
842
|
leftovers(fs).map((f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1));
|
|
840
843
|
|
|
@@ -846,18 +849,18 @@ describe("tex/venue-leftover — a workshop's parent conference (`parent`) is th
|
|
|
846
849
|
|
|
847
850
|
it("🔴 an AIDC paper naming ASE 2026 is reported once, as ASE", () => {
|
|
848
851
|
const tex = aidcPaper(`Formerly at ASE 2026.\n${BODY}${STATEMENT}`);
|
|
849
|
-
expect(named(lint(tex, AIDC))).toEqual([["ASE", "ASE"]]);
|
|
852
|
+
expect(named(lint(tex, AIDC))).toEqual([["ASE", "ASE 2026"]]);
|
|
850
853
|
});
|
|
851
854
|
|
|
852
855
|
it("🔴 an AIDC paper naming ACM CCS 2026 is reported once, as ACM CCS; an AISec paper is silent", () => {
|
|
853
856
|
const text = "Co-located with ACM CCS 2026.";
|
|
854
857
|
expect(
|
|
855
858
|
named(lint(aidcPaper(`${text}\n${BODY}${STATEMENT}`), AIDC)),
|
|
856
|
-
).toEqual([["ACM CCS", "ACM CCS"]]);
|
|
859
|
+
).toEqual([["ACM CCS", "ACM CCS 2026"]]);
|
|
857
860
|
expect(
|
|
858
861
|
leftovers(
|
|
859
862
|
lint(agenticdev(text), {
|
|
860
|
-
extends: "paperlint:aisec",
|
|
863
|
+
extends: "paperlint:aisec-2026",
|
|
861
864
|
kind: "research",
|
|
862
865
|
}),
|
|
863
866
|
),
|
|
@@ -867,7 +870,7 @@ describe("tex/venue-leftover — a workshop's parent conference (`parent`) is th
|
|
|
867
870
|
it("🔴 FSE and ASE do not collide: an AgenticDev paper names ASE as its own and FSE 2027 as another venue; an FSE paper reports ASE", () => {
|
|
868
871
|
expect(
|
|
869
872
|
named(lint(agenticdev("At ASE 2026, after FSE 2027."), AGENTICDEV)),
|
|
870
|
-
).toEqual([["FSE
|
|
873
|
+
).toEqual([["FSE", "FSE 2027"]]);
|
|
871
874
|
expect(
|
|
872
875
|
named(
|
|
873
876
|
lint(
|
|
@@ -875,20 +878,20 @@ describe("tex/venue-leftover — a workshop's parent conference (`parent`) is th
|
|
|
875
878
|
"\\documentclass[acmsmall]{acmart}",
|
|
876
879
|
"Formerly at ASE 2026, now FSE 2027.\nText.",
|
|
877
880
|
),
|
|
878
|
-
{ extends: "paperlint:fse", kind: "research" },
|
|
881
|
+
{ extends: "paperlint:fse-2027", kind: "research" },
|
|
879
882
|
),
|
|
880
883
|
),
|
|
881
|
-
).toEqual([["ASE", "ASE"]]);
|
|
884
|
+
).toEqual([["ASE", "ASE 2026"]]);
|
|
882
885
|
});
|
|
883
886
|
|
|
884
887
|
it("the parent's names are the paper's own, not the workshop's: AgenticDev still reports AISec", () => {
|
|
885
888
|
expect(
|
|
886
|
-
named(lint(agenticdev("ASE 2026, after AISec."), AGENTICDEV)),
|
|
887
|
-
).toEqual([["AISec", "AISec"]]);
|
|
889
|
+
named(lint(agenticdev("ASE 2026, after AISec 2026."), AGENTICDEV)),
|
|
890
|
+
).toEqual([["AISec", "AISec 2026"]]);
|
|
888
891
|
});
|
|
889
892
|
});
|
|
890
893
|
|
|
891
|
-
describe("tex/venue-leftover —
|
|
894
|
+
describe("tex/venue-leftover — in prose, a name counts only beside a recent year", () => {
|
|
892
895
|
const under = (text: string) =>
|
|
893
896
|
leftovers(lint(aidcPaper(`${text}\n${BODY}${STATEMENT}`), AIDC));
|
|
894
897
|
|
|
@@ -906,31 +909,119 @@ describe("tex/venue-leftover — MSR, a name that is also an acronym, counts onl
|
|
|
906
909
|
"As shown~\\cite{msr2024}.\n\\begin{thebibliography}{1}\\bibitem{msr2024} A. Author, ``Mining,'' in \\emph{Proc. MSR 2024}, 2024.\\end{thebibliography}",
|
|
907
910
|
],
|
|
908
911
|
["a year that is not beside the name", "MSR, in 2027, scored best."],
|
|
912
|
+
["a bare name", "Submitted to AISec, then to REALM."],
|
|
913
|
+
[
|
|
914
|
+
"related work: a year older than the paper's own minus one",
|
|
915
|
+
"As shown at ICSE 2019, FSE'24 and AISec~2023.",
|
|
916
|
+
],
|
|
909
917
|
])("silent: %s", (_, text) => {
|
|
910
918
|
expect(under(text)).toEqual([]);
|
|
911
919
|
});
|
|
912
920
|
|
|
913
921
|
it.each([
|
|
914
|
-
["First written for MSR 2027.", "MSR"],
|
|
915
|
-
["A version appeared as MSR'27 work.", "MSR"],
|
|
916
|
-
["Submitted to MSR~2027.", "MSR"],
|
|
917
|
-
|
|
922
|
+
["First written for MSR 2027.", "MSR", "MSR 2027"],
|
|
923
|
+
["A version appeared as MSR'27 work.", "MSR", "MSR 2027"],
|
|
924
|
+
["Submitted to MSR~2027.", "MSR", "MSR 2027"],
|
|
925
|
+
["Submitted to AISec 2025.", "AISec", "AISec 2025"],
|
|
926
|
+
["Aimed at ICSE’28.", "ICSE", "ICSE 2028"],
|
|
927
|
+
])("🔴 reported: «%s»", (text, name, other) => {
|
|
918
928
|
const fs = under(text);
|
|
919
929
|
expect(fs.map((f) => f.message)).toEqual([
|
|
920
930
|
expect.stringMatching(
|
|
921
|
-
new RegExp(
|
|
931
|
+
new RegExp(
|
|
932
|
+
`^«${name}» names ${other}, and this paper extends AIDC 2026`,
|
|
933
|
+
),
|
|
922
934
|
),
|
|
923
935
|
]);
|
|
924
936
|
expect(fs[0]?.line).toBe(4);
|
|
925
937
|
});
|
|
938
|
+
});
|
|
926
939
|
|
|
927
|
-
|
|
940
|
+
describe("tex/venue-leftover — the paper's own series, and its parent's, in another edition", () => {
|
|
941
|
+
it("under msr itself, its own name with its own year is never a leftover", () => {
|
|
928
942
|
const tex = paper(
|
|
929
943
|
"\\documentclass[10pt,conference]{IEEEtran}",
|
|
930
944
|
"First written for MSR 2027.",
|
|
931
945
|
);
|
|
932
946
|
expect(
|
|
933
|
-
leftovers(
|
|
947
|
+
leftovers(
|
|
948
|
+
lint(tex, { extends: "paperlint:msr-2027", kind: "technical" }),
|
|
949
|
+
),
|
|
950
|
+
).toEqual([]);
|
|
951
|
+
});
|
|
952
|
+
|
|
953
|
+
it("🔴 its own series in another recent edition is a leftover: «ICSE 2027» in an ICSE 2028 paper; «ICSE 2019» is not", () => {
|
|
954
|
+
const icse = (text: string) =>
|
|
955
|
+
leftovers(
|
|
956
|
+
lint(paper("\\documentclass[sigconf]{acmart}", text), {
|
|
957
|
+
extends: "paperlint:icse-2028",
|
|
958
|
+
kind: "research",
|
|
959
|
+
}),
|
|
960
|
+
).map((f) =>
|
|
961
|
+
/«(.*?)» names (.*?), and this paper extends (.*?) —/u
|
|
962
|
+
.exec(f.message)
|
|
963
|
+
?.slice(1),
|
|
964
|
+
);
|
|
965
|
+
expect(icse("First written for ICSE 2027.")).toEqual([
|
|
966
|
+
["ICSE", "ICSE 2027", "ICSE 2028"],
|
|
967
|
+
]);
|
|
968
|
+
expect(icse("Submitted to ICSE 2028, after ICSE 2019.")).toEqual([]);
|
|
969
|
+
});
|
|
970
|
+
|
|
971
|
+
it("a workshop's parent of the same year is its own; another recent edition of the parent is not", () => {
|
|
972
|
+
const nlbse = (text: string) =>
|
|
973
|
+
leftovers(
|
|
974
|
+
lint(paper("\\documentclass[conference]{IEEEtran}", text), {
|
|
975
|
+
extends: "paperlint:nlbse-2027",
|
|
976
|
+
kind: "full",
|
|
977
|
+
}),
|
|
978
|
+
).map((f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1));
|
|
979
|
+
expect(nlbse("An NLBSE workshop of ICSE 2027.")).toEqual([]);
|
|
980
|
+
expect(nlbse("Rejected at ICSE 2028.")).toEqual([["ICSE", "ICSE 2028"]]);
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
|
|
984
|
+
describe("tex/venue-leftover — inside a command that states the venue, any other venue's name counts", () => {
|
|
985
|
+
const under = (line: string, settings: object = AIDC) =>
|
|
986
|
+
leftovers(lint(aidcPaper(`${line}\n${BODY}${STATEMENT}`), settings)).map(
|
|
987
|
+
(f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1),
|
|
988
|
+
);
|
|
989
|
+
|
|
990
|
+
it.each([
|
|
991
|
+
[
|
|
992
|
+
"\\acmConference[AISec]{AISec}{Nov 2026}{The Hague}",
|
|
993
|
+
[
|
|
994
|
+
["AISec", "AISec"],
|
|
995
|
+
["AISec", "AISec"],
|
|
996
|
+
],
|
|
997
|
+
],
|
|
998
|
+
["\\acmBooktitle{Proceedings of ASE}", [["ASE", "ASE"]]],
|
|
999
|
+
["\\conferenceinfo{MSR}{Dublin}", [["MSR", "MSR"]]],
|
|
1000
|
+
["\\IEEEpubid{978-1-2345 \\copyright 2019 IEEE S\\&P}", []],
|
|
1001
|
+
["\\IEEEpubid{Accepted at REALM}", [["REALM", "REALM"]]],
|
|
1002
|
+
[
|
|
1003
|
+
"\\acmConference[ICSE '19]{ICSE}{2019}{x}",
|
|
1004
|
+
[
|
|
1005
|
+
["ICSE", "ICSE 2019"],
|
|
1006
|
+
["ICSE", "ICSE"],
|
|
1007
|
+
],
|
|
1008
|
+
],
|
|
1009
|
+
])("🔴 %s", (line, want) => {
|
|
1010
|
+
expect(under(line)).toEqual(want);
|
|
1011
|
+
});
|
|
1012
|
+
|
|
1013
|
+
it("the paper's own edition, and its parent, in the command: silent; its own name with another year: reported", () => {
|
|
1014
|
+
expect(
|
|
1015
|
+
under("\\acmConference[AIDC '26]{AIDC at ACSAC 2026}{x}{y}"),
|
|
1016
|
+
).toEqual([]);
|
|
1017
|
+
expect(under("\\acmConference[AIDC '25]{AIDC}{x}{y}")).toEqual([
|
|
1018
|
+
["AIDC", "AIDC 2025"],
|
|
1019
|
+
]);
|
|
1020
|
+
});
|
|
1021
|
+
|
|
1022
|
+
it("the same names in prose without a year, or in a comment: silent", () => {
|
|
1023
|
+
expect(
|
|
1024
|
+
under("Unlike AISec and ASE, and MSR.\n% \\acmConference{AISec}"),
|
|
934
1025
|
).toEqual([]);
|
|
935
1026
|
});
|
|
936
1027
|
});
|
|
@@ -954,7 +1045,7 @@ describe("tex/venue-leftover — a URL is not text, a definition body is", () =>
|
|
|
954
1045
|
"a macro definition naming another venue is reported at the definition, %s",
|
|
955
1046
|
(_, use) => {
|
|
956
1047
|
const tex = aidcPaper(
|
|
957
|
-
`\\newcommand{\\oldvenue}{AISec}\n${use}${BODY}${STATEMENT}`,
|
|
1048
|
+
`\\newcommand{\\oldvenue}{AISec 2026}\n${use}${BODY}${STATEMENT}`,
|
|
958
1049
|
);
|
|
959
1050
|
const fs = leftovers(lint(tex, AIDC));
|
|
960
1051
|
expect(fs.map((f) => [f.line, f.message.slice(0, 16)])).toEqual([
|
|
@@ -971,8 +1062,8 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
|
|
|
971
1062
|
"\\acmConference[AISec '26]{x}",
|
|
972
1063
|
["AISec"],
|
|
973
1064
|
],
|
|
974
|
-
["a footnote", "Text.\\footnote{Submitted to REALM.}", ["REALM"]],
|
|
975
|
-
["a tie inside the name", "ACM~CCS", ["ACM CCS"]],
|
|
1065
|
+
["a footnote", "Text.\\footnote{Submitted to REALM 2026.}", ["REALM"]],
|
|
1066
|
+
["a tie inside the name", "ACM~CCS~2026", ["ACM CCS"]],
|
|
976
1067
|
[
|
|
977
1068
|
"whole words only: AISecX and xAIDC are other words",
|
|
978
1069
|
"AISecX, EMNLPs and AgenticDevOps.",
|
|
@@ -990,13 +1081,13 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
|
|
|
990
1081
|
const own = `${PAPER}/own.jsonc`;
|
|
991
1082
|
const extra = {
|
|
992
1083
|
[own]: JSON.stringify(
|
|
993
|
-
venuePreset("AIDC
|
|
994
|
-
extends: "paperlint:aidc",
|
|
1084
|
+
venuePreset("AIDC Next", {
|
|
1085
|
+
extends: "paperlint:aidc-2026",
|
|
995
1086
|
aliases: ["ACM CCS"],
|
|
996
1087
|
}),
|
|
997
1088
|
),
|
|
998
1089
|
};
|
|
999
|
-
const tex = aidcPaper(`ACM CCS and AIDC 2027.\n${BODY}${STATEMENT}`);
|
|
1090
|
+
const tex = aidcPaper(`ACM CCS 2026 and AIDC 2027.\n${BODY}${STATEMENT}`);
|
|
1000
1091
|
expect(
|
|
1001
1092
|
leftovers(
|
|
1002
1093
|
lint(tex, { extends: "./own.jsonc", kind: "regular" }, { extra }),
|
|
@@ -1008,7 +1099,7 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
|
|
|
1008
1099
|
// ieee-conference is on aidc's chain, so under the family aidc is ANOTHER venue.
|
|
1009
1100
|
const tex = paper(
|
|
1010
1101
|
"\\documentclass[conference]{IEEEtran}",
|
|
1011
|
-
"Accepted at AIDC. Formerly at AISec.",
|
|
1102
|
+
"Accepted at AIDC 2026. Formerly at AISec 2026.",
|
|
1012
1103
|
);
|
|
1013
1104
|
expect(
|
|
1014
1105
|
leftovers(lint(tex, { extends: "paperlint:ieee-conference" }))
|
|
@@ -1018,9 +1109,35 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
|
|
|
1018
1109
|
});
|
|
1019
1110
|
});
|
|
1020
1111
|
|
|
1112
|
+
describe("tex/venue-leftover, judged on places the parser did not give", () => {
|
|
1113
|
+
const files = memoryFiles(shipped);
|
|
1114
|
+
const aidc = resolvePreset("paperlint:aidc-2026", `${PAPER}/paperlint.json`, {
|
|
1115
|
+
files,
|
|
1116
|
+
venuesDir: VENUES,
|
|
1117
|
+
});
|
|
1118
|
+
const preset = aidc.ok ? aidc.value : null;
|
|
1119
|
+
|
|
1120
|
+
it("a venue line with no place holds no name; a parent's name no shipped venue carries is shown as written", () => {
|
|
1121
|
+
expect(preset).not.toBeNull();
|
|
1122
|
+
if (preset === null) return;
|
|
1123
|
+
const src = "Unlike AISec, and Gone 2025.";
|
|
1124
|
+
const runs = latexReader.renderedRuns(src);
|
|
1125
|
+
// The line is unplaced, so «AISec» without a year stands in prose: silent.
|
|
1126
|
+
const found = judgeLeftover(
|
|
1127
|
+
runs,
|
|
1128
|
+
[{ kind: "unplaced" }],
|
|
1129
|
+
{ ...preset, parentNames: ["Gone"] },
|
|
1130
|
+
[],
|
|
1131
|
+
);
|
|
1132
|
+
expect(found.map((f) => f.data)).toEqual([
|
|
1133
|
+
{ name: "Gone", other: "Gone 2025", venue: "AIDC 2026" },
|
|
1134
|
+
]);
|
|
1135
|
+
});
|
|
1136
|
+
});
|
|
1137
|
+
|
|
1021
1138
|
describe("the judges, on places the parser did not give", () => {
|
|
1022
1139
|
const files = memoryFiles(shipped);
|
|
1023
|
-
const aidc = resolvePreset("paperlint:aidc", `${PAPER}/paperlint.json`, {
|
|
1140
|
+
const aidc = resolvePreset("paperlint:aidc-2026", `${PAPER}/paperlint.json`, {
|
|
1024
1141
|
files,
|
|
1025
1142
|
venuesDir: VENUES,
|
|
1026
1143
|
});
|
|
@@ -1079,29 +1196,37 @@ describe("otherVenues", () => {
|
|
|
1079
1196
|
it("every shipped venue off the paper's chain; one that does not resolve is skipped", () => {
|
|
1080
1197
|
const files = memoryFiles(
|
|
1081
1198
|
Object.fromEntries(
|
|
1082
|
-
Object.entries(shipped).filter(
|
|
1199
|
+
Object.entries(shipped).filter(
|
|
1200
|
+
([f]) => !f.endsWith("realm-2026.jsonc"),
|
|
1201
|
+
),
|
|
1083
1202
|
),
|
|
1084
1203
|
);
|
|
1085
1204
|
const deps = { files, venuesDir: VENUES };
|
|
1086
1205
|
const from = `${PAPER}/paperlint.json`;
|
|
1087
|
-
const aidc = resolvePreset("paperlint:aidc", from, deps);
|
|
1206
|
+
const aidc = resolvePreset("paperlint:aidc-2026", from, deps);
|
|
1088
1207
|
expect(aidc.ok).toBe(true);
|
|
1089
1208
|
if (!aidc.ok) return;
|
|
1090
|
-
expect(otherVenues(aidc.value, deps).map((o) => o.label)).toEqual(
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1209
|
+
expect(otherVenues(aidc.value, deps).map((o) => [o.label, o.year])).toEqual(
|
|
1210
|
+
[
|
|
1211
|
+
["acl-latex", null],
|
|
1212
|
+
["acm-acmsmall", null],
|
|
1213
|
+
["acm-sigconf", null],
|
|
1214
|
+
["ACSAC", 2026],
|
|
1215
|
+
["AGENT", 2027],
|
|
1216
|
+
["AgenticDev", 2026],
|
|
1217
|
+
["AGENTVERIFY", 2027],
|
|
1218
|
+
["AISec", 2026],
|
|
1219
|
+
["ASE", 2026],
|
|
1220
|
+
["ACM CCS", 2026],
|
|
1221
|
+
["EMNLP", 2026],
|
|
1222
|
+
["FSE", 2027],
|
|
1223
|
+
["ICSE", 2027],
|
|
1224
|
+
["ICSE", 2028],
|
|
1225
|
+
["MSR", 2027],
|
|
1226
|
+
["NLBSE", 2027],
|
|
1227
|
+
["IEEE S&P", 2027],
|
|
1228
|
+
],
|
|
1229
|
+
);
|
|
1105
1230
|
});
|
|
1106
1231
|
});
|
|
1107
1232
|
|