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
package/src/presets.test.ts
CHANGED
|
@@ -13,10 +13,16 @@ import { memoryFiles } from "./adapters/memory/index.ts";
|
|
|
13
13
|
import { frozenText } from "../test/frozen-presets.ts";
|
|
14
14
|
import { presetsDir } from "./package-dirs.ts";
|
|
15
15
|
import { parsePreset } from "./tex-requirements.ts";
|
|
16
|
+
import {
|
|
17
|
+
deadlineYearProblems,
|
|
18
|
+
editionOf,
|
|
19
|
+
idProblem,
|
|
20
|
+
} from "./domain/edition.ts";
|
|
16
21
|
import {
|
|
17
22
|
MAX_PRESET_DEPTH,
|
|
18
23
|
SHIPPED_PREFIX,
|
|
19
24
|
shippedPresets,
|
|
25
|
+
shippedSpec,
|
|
20
26
|
shippedVenueNames,
|
|
21
27
|
labelOf,
|
|
22
28
|
presetProblemText,
|
|
@@ -29,11 +35,11 @@ const live = Object.fromEntries(
|
|
|
29
35
|
.filter((f) => f.endsWith(".jsonc") || f.endsWith(".json"))
|
|
30
36
|
.map((f) => [join(VENUES, f), readFileSync(join(VENUES, f))]),
|
|
31
37
|
);
|
|
32
|
-
// The shipped msr.jsonc's deadlines are rewritten by the scheduled refresh, so the tests of LOGIC
|
|
38
|
+
// The shipped msr-2027.jsonc's deadlines are rewritten by the scheduled refresh, so the tests of LOGIC
|
|
33
39
|
// read it FROZEN (test/frozen-presets.ts); only the shape test below reads the shipped file.
|
|
34
40
|
const shipped = {
|
|
35
41
|
...live,
|
|
36
|
-
[join(VENUES, "msr.jsonc")]: frozenText("msr.jsonc"),
|
|
42
|
+
[join(VENUES, "msr-2027.jsonc")]: frozenText("msr-2027.jsonc"),
|
|
37
43
|
};
|
|
38
44
|
const PAPER_FILE = "/work/papers/p/paperlint.json";
|
|
39
45
|
const deps = (extra: Record<string, string> = {}, base = shipped) => ({
|
|
@@ -58,13 +64,13 @@ const family = (body: Record<string, unknown>): string =>
|
|
|
58
64
|
JSON.stringify({ type: "family", ...body });
|
|
59
65
|
|
|
60
66
|
describe("shipped presets", () => {
|
|
61
|
-
it("paperlint:agenticdev → agenticdev over acm-sigconf: the family's format, the venue's kinds", () => {
|
|
62
|
-
const r = resolve("paperlint:agenticdev");
|
|
67
|
+
it("paperlint:agenticdev-2026 → agenticdev over acm-sigconf: the family's format, the venue's kinds", () => {
|
|
68
|
+
const r = resolve("paperlint:agenticdev-2026");
|
|
63
69
|
expect(r.ok).toBe(true);
|
|
64
70
|
if (!r.ok) return;
|
|
65
71
|
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
66
72
|
"acm-sigconf.jsonc",
|
|
67
|
-
"agenticdev.jsonc",
|
|
73
|
+
"agenticdev-2026.jsonc",
|
|
68
74
|
]);
|
|
69
75
|
expect(r.value.format.columns).toBe(2);
|
|
70
76
|
expect(r.value.format.fontsText).toBe("LinLibertine");
|
|
@@ -79,7 +85,7 @@ describe("shipped presets", () => {
|
|
|
79
85
|
// The label is the venue's own name, from its file's `name`; the id stays the file name — the
|
|
80
86
|
// stable key the facts file and the build plan carry.
|
|
81
87
|
expect(r.value.label).toBe("AgenticDev");
|
|
82
|
-
expect(r.value.id).toBe("agenticdev");
|
|
88
|
+
expect(r.value.id).toBe("agenticdev-2026");
|
|
83
89
|
expect(r.value.identity).toEqual({
|
|
84
90
|
type: "venue",
|
|
85
91
|
name: "AgenticDev",
|
|
@@ -88,14 +94,14 @@ describe("shipped presets", () => {
|
|
|
88
94
|
});
|
|
89
95
|
});
|
|
90
96
|
|
|
91
|
-
describe("shipped presets: paperlint:msr", () => {
|
|
92
|
-
it("paperlint:msr → msr over ieee-conference: one kind, appendices counted as body, compsoc forbidden", () => {
|
|
93
|
-
const r = resolve("paperlint:msr", {}, live);
|
|
97
|
+
describe("shipped presets: paperlint:msr-2027", () => {
|
|
98
|
+
it("paperlint:msr-2027 → msr over ieee-conference: one kind, appendices counted as body, compsoc forbidden", () => {
|
|
99
|
+
const r = resolve("paperlint:msr-2027", {}, live);
|
|
94
100
|
expect(r.ok).toBe(true);
|
|
95
101
|
if (!r.ok) return;
|
|
96
102
|
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
97
103
|
"ieee-conference.jsonc",
|
|
98
|
-
"msr.jsonc",
|
|
104
|
+
"msr-2027.jsonc",
|
|
99
105
|
]);
|
|
100
106
|
expect([...r.value.format.kinds]).toEqual([
|
|
101
107
|
["technical", { pagesMax: null, bodyPagesMax: 10, refPagesMax: 2 }],
|
|
@@ -105,7 +111,7 @@ describe("shipped presets: paperlint:msr", () => {
|
|
|
105
111
|
expect(r.value.format.pageWidthIn).toBe(8.5);
|
|
106
112
|
expect(r.value.template).toEqual({
|
|
107
113
|
text: "\\documentclass[10pt,conference]{IEEEtran}",
|
|
108
|
-
file: join(VENUES, "msr.jsonc"),
|
|
114
|
+
file: join(VENUES, "msr-2027.jsonc"),
|
|
109
115
|
forbids: ["compsoc", "compsocconf"],
|
|
110
116
|
});
|
|
111
117
|
expect(r.value.blind).toBe(true);
|
|
@@ -139,14 +145,14 @@ describe("shipped presets: paperlint:msr", () => {
|
|
|
139
145
|
});
|
|
140
146
|
});
|
|
141
147
|
|
|
142
|
-
describe("shipped presets: paperlint:fse", () => {
|
|
143
|
-
it("paperlint:fse → fse over acm-acmsmall: one column, the family's template, two kinds, both readings of the deadline", () => {
|
|
144
|
-
const r = resolve("paperlint:fse");
|
|
148
|
+
describe("shipped presets: paperlint:fse-2027", () => {
|
|
149
|
+
it("paperlint:fse-2027 → fse over acm-acmsmall: one column, the family's template, two kinds, both readings of the deadline", () => {
|
|
150
|
+
const r = resolve("paperlint:fse-2027");
|
|
145
151
|
expect(r.ok).toBe(true);
|
|
146
152
|
if (!r.ok) return;
|
|
147
153
|
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
148
154
|
"acm-acmsmall.jsonc",
|
|
149
|
-
"fse.jsonc",
|
|
155
|
+
"fse-2027.jsonc",
|
|
150
156
|
]);
|
|
151
157
|
expect(r.value.format.columns).toBe(1);
|
|
152
158
|
expect(r.value.format.pageWidthIn).toBe(6.75);
|
|
@@ -174,7 +180,8 @@ describe("shipped presets: paperlint:fse", () => {
|
|
|
174
180
|
["submission", "portal"],
|
|
175
181
|
["submission", "call"],
|
|
176
182
|
]);
|
|
177
|
-
expect(r.value.label).toBe("FSE
|
|
183
|
+
expect(r.value.label).toBe("FSE");
|
|
184
|
+
expect(r.value.year).toBe(2027);
|
|
178
185
|
expect(r.value.rules).toEqual({});
|
|
179
186
|
});
|
|
180
187
|
});
|
|
@@ -186,14 +193,20 @@ describe("shipped presets: a family, and a venue that stands alone", () => {
|
|
|
186
193
|
expect(r.ok && r.value.format.pageWidthIn).toBe(8.5);
|
|
187
194
|
});
|
|
188
195
|
|
|
189
|
-
it("realm (ACL)
|
|
190
|
-
const r = resolve("paperlint:realm");
|
|
191
|
-
expect(r.ok && r.value.chain
|
|
196
|
+
it("realm (ACL) extends the acl-latex family: its class line from the family, A4 from its own measurement", () => {
|
|
197
|
+
const r = resolve("paperlint:realm-2026");
|
|
198
|
+
expect(r.ok && r.value.chain).toEqual([
|
|
199
|
+
join(VENUES, "acl-latex.jsonc"),
|
|
200
|
+
join(VENUES, "realm-2026.jsonc"),
|
|
201
|
+
]);
|
|
202
|
+
expect(r.ok && r.value.template?.text).toBe(
|
|
203
|
+
"\\documentclass[11pt]{article}",
|
|
204
|
+
);
|
|
192
205
|
expect(r.ok && r.value.format.pageWidthIn).toBe(8.27);
|
|
193
206
|
});
|
|
194
207
|
|
|
195
208
|
it("agenticdev turns pdf/last-page-balance on — its producer asks for balanced columns", () => {
|
|
196
|
-
const r = resolve("paperlint:agenticdev");
|
|
209
|
+
const r = resolve("paperlint:agenticdev-2026");
|
|
197
210
|
expect(r.ok && r.value.rules["pdf/last-page-balance"]).toEqual([
|
|
198
211
|
"error",
|
|
199
212
|
{ tolerancePt: 120 },
|
|
@@ -216,70 +229,86 @@ const FAMILIES = PARSED.filter((p) =>
|
|
|
216
229
|
|
|
217
230
|
// What each shipped preset declares itself to be; a new preset adds its row here.
|
|
218
231
|
const DECLARED = {
|
|
232
|
+
"acl-latex.jsonc": { type: "family" },
|
|
219
233
|
"acm-acmsmall.jsonc": { type: "family" },
|
|
220
234
|
"acm-sigconf.jsonc": { type: "family" },
|
|
221
|
-
"agenticdev.jsonc": {
|
|
235
|
+
"agenticdev-2026.jsonc": {
|
|
222
236
|
type: "venue",
|
|
223
237
|
name: "AgenticDev",
|
|
224
238
|
url: "https://conf.researchr.org/home/ase-2026/agenticdev-2026",
|
|
225
239
|
},
|
|
226
|
-
"
|
|
240
|
+
"acsac-2026.jsonc": {
|
|
227
241
|
type: "venue",
|
|
228
|
-
name: "
|
|
242
|
+
name: "ACSAC",
|
|
243
|
+
url: "https://www.acsac.org/2026/submissions/papers/",
|
|
244
|
+
},
|
|
245
|
+
"agent-2027.jsonc": {
|
|
246
|
+
type: "venue",
|
|
247
|
+
name: "AGENT",
|
|
229
248
|
url: "https://conf.researchr.org/home/icse-2027/agent-2027",
|
|
230
249
|
},
|
|
231
|
-
"agentverify.jsonc": {
|
|
250
|
+
"agentverify-2027.jsonc": {
|
|
232
251
|
type: "venue",
|
|
233
252
|
name: "AGENTVERIFY",
|
|
234
253
|
url: "https://agentverify2027.github.io/cfp.html",
|
|
235
254
|
},
|
|
236
|
-
"aidc.jsonc": {
|
|
255
|
+
"aidc-2026.jsonc": {
|
|
237
256
|
type: "venue",
|
|
238
257
|
name: "AIDC",
|
|
239
258
|
url: "https://aidcworkshop.github.io/",
|
|
240
259
|
},
|
|
241
|
-
"aisec.jsonc": {
|
|
260
|
+
"aisec-2026.jsonc": {
|
|
242
261
|
type: "venue",
|
|
243
262
|
name: "AISec",
|
|
244
263
|
url: "https://aisec.cc/",
|
|
245
264
|
},
|
|
246
|
-
"ase.jsonc": {
|
|
265
|
+
"ase-2026.jsonc": {
|
|
247
266
|
type: "venue",
|
|
248
267
|
name: "ASE",
|
|
249
268
|
url: "https://conf.researchr.org/track/ase-2026/ase-2026-research-track",
|
|
250
269
|
},
|
|
251
|
-
"ccs.jsonc": {
|
|
270
|
+
"ccs-2026.jsonc": {
|
|
252
271
|
type: "venue",
|
|
253
272
|
name: "ACM CCS",
|
|
254
273
|
url: "https://www.sigsac.org/ccs/CCS2026/call-for/call-for-papers.html",
|
|
255
274
|
},
|
|
256
|
-
"
|
|
275
|
+
"emnlp-2026.jsonc": {
|
|
276
|
+
type: "venue",
|
|
277
|
+
name: "EMNLP",
|
|
278
|
+
url: "https://2026.emnlp.org/calls/main_conference_papers/",
|
|
279
|
+
},
|
|
280
|
+
"fse-2027.jsonc": {
|
|
257
281
|
type: "venue",
|
|
258
|
-
name: "FSE
|
|
282
|
+
name: "FSE",
|
|
259
283
|
url: "https://conf.researchr.org/track/fse-2027/fse-2027-papers",
|
|
260
284
|
},
|
|
261
|
-
"icse.jsonc": {
|
|
285
|
+
"icse-2027.jsonc": {
|
|
262
286
|
type: "venue",
|
|
263
|
-
name: "ICSE
|
|
287
|
+
name: "ICSE",
|
|
288
|
+
url: "https://conf.researchr.org/track/icse-2027/icse-2027-research-track",
|
|
289
|
+
},
|
|
290
|
+
"icse-2028.jsonc": {
|
|
291
|
+
type: "venue",
|
|
292
|
+
name: "ICSE",
|
|
264
293
|
url: "https://conf.researchr.org/track/icse-2028/icse-2028-papers",
|
|
265
294
|
},
|
|
266
295
|
"ieee-conference.jsonc": { type: "family" },
|
|
267
|
-
"msr.jsonc": {
|
|
296
|
+
"msr-2027.jsonc": {
|
|
268
297
|
type: "venue",
|
|
269
298
|
name: "MSR",
|
|
270
299
|
url: "https://2027.msrconf.org/track/msr-2027-technical-papers",
|
|
271
300
|
},
|
|
272
|
-
"nlbse.jsonc": {
|
|
301
|
+
"nlbse-2027.jsonc": {
|
|
273
302
|
type: "venue",
|
|
274
303
|
name: "NLBSE",
|
|
275
304
|
url: "https://conf.researchr.org/home/icse-2027/nlbse-2027",
|
|
276
305
|
},
|
|
277
|
-
"realm.jsonc": {
|
|
306
|
+
"realm-2026.jsonc": {
|
|
278
307
|
type: "venue",
|
|
279
308
|
name: "REALM",
|
|
280
309
|
url: "https://realm-workshop.github.io/call_for_papers",
|
|
281
310
|
},
|
|
282
|
-
"sp.jsonc": {
|
|
311
|
+
"sp-2027.jsonc": {
|
|
283
312
|
type: "venue",
|
|
284
313
|
name: "IEEE S&P",
|
|
285
314
|
url: "https://sp2027.ieee-security.org/cfpapers.html",
|
|
@@ -320,6 +349,7 @@ describe("the naming convention of shipped presets (docs/rules.md)", () => {
|
|
|
320
349
|
|
|
321
350
|
it("there are families to check (else the checks below see nothing)", () => {
|
|
322
351
|
expect(families.map((f) => f.name).sort()).toEqual([
|
|
352
|
+
"acl-latex",
|
|
323
353
|
"acm-acmsmall",
|
|
324
354
|
"acm-sigconf",
|
|
325
355
|
"ieee-conference",
|
|
@@ -336,7 +366,9 @@ describe("the naming convention of shipped presets (docs/rules.md)", () => {
|
|
|
336
366
|
it.each(presets.filter((p) => p.extends !== null).map((p) => [p.name]))(
|
|
337
367
|
"the venue %s carries no publisher prefix — its template is said by `extends`",
|
|
338
368
|
(name) => {
|
|
339
|
-
|
|
369
|
+
// The series, not the id: ACL's own conference is `acl-<year>`, a series named after its publisher.
|
|
370
|
+
const series = editionOf(name)?.series ?? name;
|
|
371
|
+
expect(publishers.filter((pub) => series.startsWith(`${pub}-`))).toEqual(
|
|
340
372
|
[],
|
|
341
373
|
);
|
|
342
374
|
},
|
|
@@ -390,7 +422,7 @@ describe("a project's own preset: what its children replace", () => {
|
|
|
390
422
|
it("a child kind replaces that kind wholesale; other kinds are kept", () => {
|
|
391
423
|
const r = resolve("./mine.jsonc", {
|
|
392
424
|
"/work/papers/p/mine.jsonc": venue({
|
|
393
|
-
extends: "paperlint:agenticdev",
|
|
425
|
+
extends: "paperlint:agenticdev-2026",
|
|
394
426
|
format: { kinds: { short: { body_pages_max: 6, ref_pages_max: 2 } } },
|
|
395
427
|
}),
|
|
396
428
|
});
|
|
@@ -407,7 +439,7 @@ describe("a project's own preset: what its children replace", () => {
|
|
|
407
439
|
it("rules: the leaf wins over its parent, per rule id", () => {
|
|
408
440
|
const r = resolve("./mine.jsonc", {
|
|
409
441
|
"/work/papers/p/mine.jsonc": venue({
|
|
410
|
-
extends: "paperlint:agenticdev",
|
|
442
|
+
extends: "paperlint:agenticdev-2026",
|
|
411
443
|
rules: { "pdf/last-page-balance": "off" },
|
|
412
444
|
}),
|
|
413
445
|
});
|
|
@@ -417,14 +449,14 @@ describe("a project's own preset: what its children replace", () => {
|
|
|
417
449
|
it("ruleOrigins: each rule's entry names the file of the chain that set it", () => {
|
|
418
450
|
const r = resolve("./mine.jsonc", {
|
|
419
451
|
"/work/papers/p/mine.jsonc": venue({
|
|
420
|
-
extends: "paperlint:agenticdev",
|
|
452
|
+
extends: "paperlint:agenticdev-2026",
|
|
421
453
|
rules: { "pdf/body-size": "off" },
|
|
422
454
|
}),
|
|
423
455
|
});
|
|
424
456
|
// Guards: an own rule is the leaf's, an inherited one names the parent that set it.
|
|
425
457
|
expect(r.ok && r.value.ruleOrigins).toEqual({
|
|
426
|
-
"pdf/last-page-balance": join(VENUES, "agenticdev.jsonc"),
|
|
427
|
-
"tex/heading-case": join(VENUES, "agenticdev.jsonc"),
|
|
458
|
+
"pdf/last-page-balance": join(VENUES, "agenticdev-2026.jsonc"),
|
|
459
|
+
"tex/heading-case": join(VENUES, "agenticdev-2026.jsonc"),
|
|
428
460
|
"pdf/body-size": "/work/papers/p/mine.jsonc",
|
|
429
461
|
});
|
|
430
462
|
});
|
|
@@ -432,7 +464,7 @@ describe("a project's own preset: what its children replace", () => {
|
|
|
432
464
|
it("ruleOrigins: a rule the leaf sets again is the leaf's, not its parent's", () => {
|
|
433
465
|
const r = resolve("./mine.jsonc", {
|
|
434
466
|
"/work/papers/p/mine.jsonc": venue({
|
|
435
|
-
extends: "paperlint:agenticdev",
|
|
467
|
+
extends: "paperlint:agenticdev-2026",
|
|
436
468
|
rules: { "tex/heading-case": "off" },
|
|
437
469
|
}),
|
|
438
470
|
});
|
|
@@ -454,7 +486,7 @@ describe("a project's own preset: its deadlines", () => {
|
|
|
454
486
|
it("a child's deadlines replace its parent's whole; none named keeps the parent's", () => {
|
|
455
487
|
const own = resolve("./mine.jsonc", {
|
|
456
488
|
"/work/papers/p/mine.jsonc": venue({
|
|
457
|
-
extends: "paperlint:msr",
|
|
489
|
+
extends: "paperlint:msr-2027",
|
|
458
490
|
deadlines: [reading("submission", "2026-10-21T04:00:00Z")],
|
|
459
491
|
}),
|
|
460
492
|
});
|
|
@@ -462,11 +494,11 @@ describe("a project's own preset: its deadlines", () => {
|
|
|
462
494
|
reading("submission", "2026-10-21T04:00:00Z"),
|
|
463
495
|
]);
|
|
464
496
|
const inherited = resolve("./mine.jsonc", {
|
|
465
|
-
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:msr" }),
|
|
497
|
+
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:msr-2027" }),
|
|
466
498
|
});
|
|
467
499
|
expect(inherited.ok && inherited.value.deadlines.length).toBe(2);
|
|
468
500
|
const none = resolve("./mine.jsonc", {
|
|
469
|
-
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:aisec" }),
|
|
501
|
+
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:aisec-2026" }),
|
|
470
502
|
});
|
|
471
503
|
expect(none.ok && none.value.deadlines).toEqual([]);
|
|
472
504
|
});
|
|
@@ -474,7 +506,7 @@ describe("a project's own preset: its deadlines", () => {
|
|
|
474
506
|
it("the portal's and the call's reading of one kind may stand side by side", () => {
|
|
475
507
|
const r = resolve("./mine.jsonc", {
|
|
476
508
|
"/work/papers/p/mine.jsonc": venue({
|
|
477
|
-
extends: "paperlint:aisec",
|
|
509
|
+
extends: "paperlint:aisec-2026",
|
|
478
510
|
deadlines: [
|
|
479
511
|
reading("submission", "2026-10-20T04:00:00Z"),
|
|
480
512
|
reading("submission", "2026-10-21T11:59:59Z", "call"),
|
|
@@ -519,7 +551,7 @@ describe("a project's own preset: deadlines it refuses", () => {
|
|
|
519
551
|
])("refuses %s, naming the file", (_what, deadlines, re) => {
|
|
520
552
|
const r = resolve("./mine.jsonc", {
|
|
521
553
|
"/work/papers/p/mine.jsonc": venue({
|
|
522
|
-
extends: "paperlint:aisec",
|
|
554
|
+
extends: "paperlint:aisec-2026",
|
|
523
555
|
deadlines,
|
|
524
556
|
}),
|
|
525
557
|
});
|
|
@@ -538,12 +570,17 @@ describe("what does not resolve, and says why", () => {
|
|
|
538
570
|
"unsupported",
|
|
539
571
|
/npm presets: not yet supported/,
|
|
540
572
|
],
|
|
541
|
-
[
|
|
573
|
+
[
|
|
574
|
+
"a bare name",
|
|
575
|
+
"agenticdev-2026",
|
|
576
|
+
"unsupported",
|
|
577
|
+
/paperlint:agenticdev-2026/,
|
|
578
|
+
],
|
|
542
579
|
[
|
|
543
580
|
"a shipped name with a typo",
|
|
544
581
|
"paperlint:agenticdve",
|
|
545
582
|
"not-found",
|
|
546
|
-
/acm-acmsmall, acm-sigconf, agent, agenticdev, agentverify, aidc, aisec, ase, ccs, fse, icse, ieee-conference, msr, nlbse, realm, sp/,
|
|
583
|
+
/acl-latex, acm-acmsmall, acm-sigconf, 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/,
|
|
547
584
|
],
|
|
548
585
|
["the base TeX set", "paperlint:tex-base", "not-found", /agenticdev/],
|
|
549
586
|
[
|
|
@@ -591,7 +628,9 @@ describe("chains that do not resolve", () => {
|
|
|
591
628
|
it("a chain of exactly the limit resolves", () => {
|
|
592
629
|
const r = resolve("./p1.jsonc", {
|
|
593
630
|
"/work/papers/p/p1.jsonc": venue({ extends: "./p2.jsonc" }),
|
|
594
|
-
"/work/papers/p/p2.jsonc": venue({
|
|
631
|
+
"/work/papers/p/p2.jsonc": venue({
|
|
632
|
+
extends: "paperlint:agenticdev-2026",
|
|
633
|
+
}),
|
|
595
634
|
});
|
|
596
635
|
expect(r.ok && r.value.chain.length).toBe(MAX_PRESET_DEPTH);
|
|
597
636
|
});
|
|
@@ -620,12 +659,12 @@ describe("chains that do not resolve: the files themselves", () => {
|
|
|
620
659
|
|
|
621
660
|
it("a family that extends a venue is refused, naming both files", () => {
|
|
622
661
|
const r = resolve("./fam.jsonc", {
|
|
623
|
-
"/work/papers/p/fam.jsonc": family({ extends: "paperlint:aisec" }),
|
|
662
|
+
"/work/papers/p/fam.jsonc": family({ extends: "paperlint:aisec-2026" }),
|
|
624
663
|
});
|
|
625
664
|
expect(r.ok).toBe(false);
|
|
626
665
|
if (r.ok) return;
|
|
627
666
|
expect(presetProblemText(r.error)).toBe(
|
|
628
|
-
`the preset /work/papers/p/fam.jsonc is a template family and extends ${join(VENUES, "aisec.jsonc")}, a venue — a family builds only on a family; a venue extends a family or another venue`,
|
|
667
|
+
`the preset /work/papers/p/fam.jsonc is a template family and extends ${join(VENUES, "aisec-2026.jsonc")}, a venue — a family builds only on a family; a venue extends a family or another venue`,
|
|
629
668
|
);
|
|
630
669
|
});
|
|
631
670
|
|
|
@@ -644,7 +683,7 @@ describe("chains that do not resolve: the files themselves", () => {
|
|
|
644
683
|
|
|
645
684
|
it("a venue may extend a venue, and the resolved identity is the leaf's", () => {
|
|
646
685
|
const r = resolve("./mine.jsonc", {
|
|
647
|
-
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:aisec" }),
|
|
686
|
+
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:aisec-2026" }),
|
|
648
687
|
});
|
|
649
688
|
expect(r.ok && r.value.identity).toEqual({
|
|
650
689
|
type: "venue",
|
|
@@ -660,25 +699,35 @@ describe("a workshop's parent conference (`parent`)", () => {
|
|
|
660
699
|
const r = resolve(spec);
|
|
661
700
|
return r.ok ? [r.value.aliases, r.value.parentNames] : r.error;
|
|
662
701
|
};
|
|
663
|
-
expect(names("paperlint:agenticdev")).toEqual([
|
|
664
|
-
|
|
665
|
-
|
|
702
|
+
expect(names("paperlint:agenticdev-2026")).toEqual([
|
|
703
|
+
["AgenticDev"],
|
|
704
|
+
["ASE"],
|
|
705
|
+
]);
|
|
706
|
+
expect(names("paperlint:aisec-2026")).toEqual([["AISec"], ["ACM CCS"]]);
|
|
707
|
+
expect(names("paperlint:ccs-2026")).toEqual([["ACM CCS"], []]);
|
|
666
708
|
});
|
|
667
709
|
|
|
668
710
|
it("a parent's own parent counts too, and a child of the workshop inherits its parent", () => {
|
|
669
711
|
const r = resolve("./w.jsonc", {
|
|
670
712
|
"/work/papers/p/w.jsonc": venue({
|
|
671
713
|
extends: "paperlint:acm-sigconf",
|
|
714
|
+
workshop: true,
|
|
672
715
|
parent: "./c.jsonc",
|
|
673
716
|
}),
|
|
674
717
|
"/work/papers/p/c.jsonc": venue(
|
|
675
|
-
{
|
|
718
|
+
{
|
|
719
|
+
extends: "paperlint:acm-sigconf",
|
|
720
|
+
workshop: true,
|
|
721
|
+
parent: "paperlint:ccs-2026",
|
|
722
|
+
},
|
|
676
723
|
"Our Conference",
|
|
677
724
|
),
|
|
678
725
|
});
|
|
679
726
|
expect(r.ok && r.value.parentNames).toEqual(["Our Conference", "ACM CCS"]);
|
|
680
727
|
const mine = resolve("./mine.jsonc", {
|
|
681
|
-
"/work/papers/p/mine.jsonc": venue({
|
|
728
|
+
"/work/papers/p/mine.jsonc": venue({
|
|
729
|
+
extends: "paperlint:agenticdev-2026",
|
|
730
|
+
}),
|
|
682
731
|
});
|
|
683
732
|
expect(mine.ok && mine.value.parentNames).toEqual(["ASE"]);
|
|
684
733
|
});
|
|
@@ -691,6 +740,7 @@ const BAD_PARENTS: readonly [string, Record<string, string>, string][] = [
|
|
|
691
740
|
{
|
|
692
741
|
"/work/papers/p/w.jsonc": venue({
|
|
693
742
|
extends: "paperlint:acm-sigconf",
|
|
743
|
+
workshop: true,
|
|
694
744
|
parent: "paperlint:nope",
|
|
695
745
|
}),
|
|
696
746
|
},
|
|
@@ -701,6 +751,7 @@ const BAD_PARENTS: readonly [string, Record<string, string>, string][] = [
|
|
|
701
751
|
{
|
|
702
752
|
"/work/papers/p/w.jsonc": venue({
|
|
703
753
|
extends: "paperlint:acm-sigconf",
|
|
754
|
+
workshop: true,
|
|
704
755
|
parent: "paperlint:acm-sigconf",
|
|
705
756
|
}),
|
|
706
757
|
},
|
|
@@ -711,10 +762,12 @@ const BAD_PARENTS: readonly [string, Record<string, string>, string][] = [
|
|
|
711
762
|
{
|
|
712
763
|
"/work/papers/p/w.jsonc": venue({
|
|
713
764
|
extends: "paperlint:acm-sigconf",
|
|
765
|
+
workshop: true,
|
|
714
766
|
parent: "./c.jsonc",
|
|
715
767
|
}),
|
|
716
768
|
"/work/papers/p/c.jsonc": venue({
|
|
717
769
|
extends: "paperlint:acm-sigconf",
|
|
770
|
+
workshop: true,
|
|
718
771
|
parent: "./gone.jsonc",
|
|
719
772
|
}),
|
|
720
773
|
},
|
|
@@ -725,6 +778,7 @@ const BAD_PARENTS: readonly [string, Record<string, string>, string][] = [
|
|
|
725
778
|
{
|
|
726
779
|
"/work/papers/p/w.jsonc": venue({
|
|
727
780
|
extends: "paperlint:acm-sigconf",
|
|
781
|
+
workshop: true,
|
|
728
782
|
parent: "./c.jsonc",
|
|
729
783
|
}),
|
|
730
784
|
"/work/papers/p/c.jsonc": venue({ extends: "./gone.jsonc" }),
|
|
@@ -736,10 +790,12 @@ const BAD_PARENTS: readonly [string, Record<string, string>, string][] = [
|
|
|
736
790
|
{
|
|
737
791
|
"/work/papers/p/w.jsonc": venue({
|
|
738
792
|
extends: "paperlint:acm-sigconf",
|
|
793
|
+
workshop: true,
|
|
739
794
|
parent: "./c.jsonc",
|
|
740
795
|
}),
|
|
741
796
|
"/work/papers/p/c.jsonc": venue({
|
|
742
797
|
extends: "paperlint:acm-sigconf",
|
|
798
|
+
workshop: true,
|
|
743
799
|
parent: "./w.jsonc",
|
|
744
800
|
}),
|
|
745
801
|
},
|
|
@@ -757,7 +813,7 @@ describe("a workshop's parent conference (`parent`): what is refused", () => {
|
|
|
757
813
|
const r = resolve("./fam.jsonc", {
|
|
758
814
|
"/work/papers/p/fam.jsonc": family({
|
|
759
815
|
extends: "paperlint:acm-sigconf",
|
|
760
|
-
parent: "paperlint:ccs",
|
|
816
|
+
parent: "paperlint:ccs-2026",
|
|
761
817
|
}),
|
|
762
818
|
});
|
|
763
819
|
expect(r.ok ? "resolved" : r.error.kind).toBe("broken");
|
|
@@ -768,7 +824,7 @@ describe("a preset's template: kept as its file spells it, with that file", () =
|
|
|
768
824
|
it("a child's template replaces its parent's, and names its own file", () => {
|
|
769
825
|
const r = resolve("./own.jsonc", {
|
|
770
826
|
"/work/papers/p/own.jsonc": venue({
|
|
771
|
-
extends: "paperlint:aidc",
|
|
827
|
+
extends: "paperlint:aidc-2026",
|
|
772
828
|
template: "\\documentclass[conference]{IEEEtran}",
|
|
773
829
|
}),
|
|
774
830
|
});
|
|
@@ -793,7 +849,7 @@ describe("a preset's template: kept as its file spells it, with that file", () =
|
|
|
793
849
|
it("forbidden options without a template of the same file are refused by the schema", () => {
|
|
794
850
|
const r = resolve("./own.jsonc", {
|
|
795
851
|
"/work/papers/p/own.jsonc": venue({
|
|
796
|
-
extends: "paperlint:aidc",
|
|
852
|
+
extends: "paperlint:aidc-2026",
|
|
797
853
|
template_forbids: ["compsoc"],
|
|
798
854
|
}),
|
|
799
855
|
});
|
|
@@ -805,7 +861,7 @@ describe("a preset's template: kept as its file spells it, with that file", () =
|
|
|
805
861
|
|
|
806
862
|
describe("labelOf — display only, never used to resolve", () => {
|
|
807
863
|
it.each([
|
|
808
|
-
["paperlint:agenticdev", "agenticdev"],
|
|
864
|
+
["paperlint:agenticdev-2026", "agenticdev-2026"],
|
|
809
865
|
["./venues/usenix-sec.jsonc", "usenix-sec"],
|
|
810
866
|
["../shared/acl.json", "acl"],
|
|
811
867
|
["./.hidden", ".hidden"],
|
|
@@ -820,17 +876,21 @@ describe("shippedVenueNames — what each shipped venue is called", () => {
|
|
|
820
876
|
const names = shippedVenueNames(deps());
|
|
821
877
|
// A venue is labelled by its `name`, a family by its file name.
|
|
822
878
|
expect(names.map((n) => n.label)).toEqual([
|
|
879
|
+
"acl-latex",
|
|
823
880
|
"acm-acmsmall",
|
|
824
881
|
"acm-sigconf",
|
|
825
|
-
"
|
|
882
|
+
"ACSAC",
|
|
883
|
+
"AGENT",
|
|
826
884
|
"AgenticDev",
|
|
827
885
|
"AGENTVERIFY",
|
|
828
886
|
"AIDC",
|
|
829
887
|
"AISec",
|
|
830
888
|
"ASE",
|
|
831
889
|
"ACM CCS",
|
|
832
|
-
"
|
|
833
|
-
"
|
|
890
|
+
"EMNLP",
|
|
891
|
+
"FSE",
|
|
892
|
+
"ICSE",
|
|
893
|
+
"ICSE",
|
|
834
894
|
"ieee-conference",
|
|
835
895
|
"MSR",
|
|
836
896
|
"NLBSE",
|
|
@@ -839,28 +899,43 @@ describe("shippedVenueNames — what each shipped venue is called", () => {
|
|
|
839
899
|
]);
|
|
840
900
|
// AISec's parent conference is its `parent`, not an alias: ACM CCS is named by ccs alone.
|
|
841
901
|
expect(names.find((n) => n.label === "AISec")?.aliases).toEqual(["AISec"]);
|
|
902
|
+
// The year is the id's: two editions of one series share a name and differ by year.
|
|
903
|
+
expect(
|
|
904
|
+
names.filter((n) => n.label === "ICSE").map((n) => [n.id, n.year]),
|
|
905
|
+
).toEqual([
|
|
906
|
+
["icse-2027", 2027],
|
|
907
|
+
["icse-2028", 2028],
|
|
908
|
+
]);
|
|
842
909
|
});
|
|
910
|
+
});
|
|
843
911
|
|
|
912
|
+
describe("shippedVenueNames — what does not resolve", () => {
|
|
844
913
|
it("a preset that does not resolve is left out", () => {
|
|
845
914
|
const files = memoryFiles(
|
|
846
915
|
Object.fromEntries(
|
|
847
|
-
Object.entries(shipped).filter(
|
|
916
|
+
Object.entries(shipped).filter(
|
|
917
|
+
([f]) => !f.endsWith("realm-2026.jsonc"),
|
|
918
|
+
),
|
|
848
919
|
),
|
|
849
920
|
);
|
|
850
921
|
expect(
|
|
851
922
|
shippedVenueNames({ files, venuesDir: VENUES }).map((n) => n.label),
|
|
852
923
|
).toEqual([
|
|
924
|
+
"acl-latex",
|
|
853
925
|
"acm-acmsmall",
|
|
854
926
|
"acm-sigconf",
|
|
855
|
-
"
|
|
927
|
+
"ACSAC",
|
|
928
|
+
"AGENT",
|
|
856
929
|
"AgenticDev",
|
|
857
930
|
"AGENTVERIFY",
|
|
858
931
|
"AIDC",
|
|
859
932
|
"AISec",
|
|
860
933
|
"ASE",
|
|
861
934
|
"ACM CCS",
|
|
862
|
-
"
|
|
863
|
-
"
|
|
935
|
+
"EMNLP",
|
|
936
|
+
"FSE",
|
|
937
|
+
"ICSE",
|
|
938
|
+
"ICSE",
|
|
864
939
|
"ieee-conference",
|
|
865
940
|
"MSR",
|
|
866
941
|
"NLBSE",
|
|
@@ -868,3 +943,205 @@ describe("shippedVenueNames — what each shipped venue is called", () => {
|
|
|
868
943
|
]);
|
|
869
944
|
});
|
|
870
945
|
});
|
|
946
|
+
|
|
947
|
+
describe("one preset per edition: a bare series is refused, naming the editions", () => {
|
|
948
|
+
const editions =
|
|
949
|
+
"Shipped editions: paperlint:icse-2027, paperlint:icse-2028 — did you mean paperlint:icse-2028?";
|
|
950
|
+
|
|
951
|
+
it("🔴 in a paper's extends", () => {
|
|
952
|
+
const r = resolve("paperlint:icse");
|
|
953
|
+
expect(r.ok ? "resolved" : presetProblemText(r.error)).toBe(
|
|
954
|
+
`"extends": "paperlint:icse" names a series, not an edition: a venue preset is one edition, so a new edition never changes a paper's rules unasked. ${editions}`,
|
|
955
|
+
);
|
|
956
|
+
});
|
|
957
|
+
|
|
958
|
+
it("🔴 in a preset's own extends", () => {
|
|
959
|
+
const r = resolve("./mine.jsonc", {
|
|
960
|
+
"/work/papers/p/mine.jsonc": venue({ extends: "paperlint:icse" }),
|
|
961
|
+
});
|
|
962
|
+
expect(r.ok ? "resolved" : r.error.kind).toBe("bare-series");
|
|
963
|
+
});
|
|
964
|
+
|
|
965
|
+
it("🔴 in a workshop's parent", () => {
|
|
966
|
+
const r = resolve("./w.jsonc", {
|
|
967
|
+
"/work/papers/p/w.jsonc": venue({
|
|
968
|
+
extends: "paperlint:ieee-conference",
|
|
969
|
+
workshop: true,
|
|
970
|
+
parent: "paperlint:icse",
|
|
971
|
+
}),
|
|
972
|
+
});
|
|
973
|
+
expect(r.ok ? "resolved" : presetProblemText(r.error)).toBe(
|
|
974
|
+
`the preset /work/papers/p/w.jsonc names a parent conference that does not resolve to a venue: "parent": "paperlint:icse" names a series, not an edition: a venue preset is one edition, so a new edition never changes a paper's rules unasked. ${editions}`,
|
|
975
|
+
);
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
it("a series with one shipped edition is refused too; a name that is no series stays not-found", () => {
|
|
979
|
+
const r = resolve("paperlint:fse");
|
|
980
|
+
expect(r.ok ? "resolved" : presetProblemText(r.error)).toMatch(
|
|
981
|
+
/Shipped editions: paperlint:fse-2027 — did you mean paperlint:fse-2027\?$/,
|
|
982
|
+
);
|
|
983
|
+
const typo = resolve("paperlint:icsee");
|
|
984
|
+
expect(typo.ok ? "resolved" : typo.error.kind).toBe("not-found");
|
|
985
|
+
});
|
|
986
|
+
|
|
987
|
+
it("the edition resolves, with the year of its id", () => {
|
|
988
|
+
const r = resolve("paperlint:icse-2028");
|
|
989
|
+
expect(r.ok && [r.value.label, r.value.year]).toEqual(["ICSE", 2028]);
|
|
990
|
+
});
|
|
991
|
+
});
|
|
992
|
+
|
|
993
|
+
describe("a workshop's parent is the edition of its own year", () => {
|
|
994
|
+
it("🔴 a parent of another year is refused, naming both years", () => {
|
|
995
|
+
const r = resolve("./wks-2028.jsonc", {
|
|
996
|
+
"/work/papers/p/wks-2028.jsonc": venue({
|
|
997
|
+
extends: "paperlint:ieee-conference",
|
|
998
|
+
workshop: true,
|
|
999
|
+
parent: "paperlint:icse-2027",
|
|
1000
|
+
}),
|
|
1001
|
+
});
|
|
1002
|
+
expect(r.ok ? "resolved" : presetProblemText(r.error)).toBe(
|
|
1003
|
+
`the preset /work/papers/p/wks-2028.jsonc names a parent conference that does not resolve to a venue: "parent": "paperlint:icse-2027" is the 2027 edition, and this workshop is of 2028 — a workshop's parent is the edition it is held at, of the same year`,
|
|
1004
|
+
);
|
|
1005
|
+
});
|
|
1006
|
+
|
|
1007
|
+
it("the same year resolves", () => {
|
|
1008
|
+
const r = resolve("./wks-2027.jsonc", {
|
|
1009
|
+
"/work/papers/p/wks-2027.jsonc": venue({
|
|
1010
|
+
extends: "paperlint:ieee-conference",
|
|
1011
|
+
workshop: true,
|
|
1012
|
+
parent: "paperlint:icse-2027",
|
|
1013
|
+
}),
|
|
1014
|
+
});
|
|
1015
|
+
expect(r.ok && r.value.parentNames).toEqual(["ICSE"]);
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
it("every shipped workshop names a parent of its own year, and resolves", () => {
|
|
1019
|
+
const workshops = PARSED.filter((p) => p.preset.parent !== null);
|
|
1020
|
+
expect(workshops.map((w) => [w.name, w.preset.parent])).toEqual([
|
|
1021
|
+
["agent-2027", "paperlint:icse-2027"],
|
|
1022
|
+
["agenticdev-2026", "paperlint:ase-2026"],
|
|
1023
|
+
["agentverify-2027", "paperlint:icse-2027"],
|
|
1024
|
+
["aidc-2026", "paperlint:acsac-2026"],
|
|
1025
|
+
["aisec-2026", "paperlint:ccs-2026"],
|
|
1026
|
+
["nlbse-2027", "paperlint:icse-2027"],
|
|
1027
|
+
["realm-2026", "paperlint:emnlp-2026"],
|
|
1028
|
+
]);
|
|
1029
|
+
expect(workshops.filter((w) => !resolve(shippedSpec(w.name)).ok)).toEqual(
|
|
1030
|
+
[],
|
|
1031
|
+
);
|
|
1032
|
+
});
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
describe("a workshop cannot silently lack its parent (the schema)", () => {
|
|
1036
|
+
it.each([
|
|
1037
|
+
["🔴 a workshop without a parent", { workshop: true }],
|
|
1038
|
+
[
|
|
1039
|
+
"🔴 a parent without the workshop marker",
|
|
1040
|
+
{ parent: "paperlint:icse-2027" },
|
|
1041
|
+
],
|
|
1042
|
+
[
|
|
1043
|
+
"🔴 a workshop marker that is not true",
|
|
1044
|
+
{ workshop: false, parent: "paperlint:icse-2027" },
|
|
1045
|
+
],
|
|
1046
|
+
])("%s is refused", (_, body) => {
|
|
1047
|
+
const r = resolve("./w.jsonc", {
|
|
1048
|
+
"/work/papers/p/w.jsonc": venue({
|
|
1049
|
+
extends: "paperlint:ieee-conference",
|
|
1050
|
+
...body,
|
|
1051
|
+
}),
|
|
1052
|
+
});
|
|
1053
|
+
expect(r.ok ? "resolved" : r.error.kind).toBe("broken");
|
|
1054
|
+
});
|
|
1055
|
+
|
|
1056
|
+
it("🔴 a family cannot be a workshop", () => {
|
|
1057
|
+
const r = resolve("./fam.jsonc", {
|
|
1058
|
+
"/work/papers/p/fam.jsonc": family({
|
|
1059
|
+
extends: "paperlint:acm-sigconf",
|
|
1060
|
+
workshop: true,
|
|
1061
|
+
}),
|
|
1062
|
+
});
|
|
1063
|
+
expect(r.ok ? "resolved" : r.error.kind).toBe("broken");
|
|
1064
|
+
});
|
|
1065
|
+
|
|
1066
|
+
it.each([
|
|
1067
|
+
["🔴 a year in the name", { name: "ICSE 2028" }],
|
|
1068
|
+
["🔴 a year in an alias", { aliases: ["AGENT'27"] }],
|
|
1069
|
+
])("%s is refused: the year is the id's", (_, body) => {
|
|
1070
|
+
const r = resolve("./v.jsonc", {
|
|
1071
|
+
"/work/papers/p/v.jsonc": venue({
|
|
1072
|
+
extends: "paperlint:acm-sigconf",
|
|
1073
|
+
...body,
|
|
1074
|
+
}),
|
|
1075
|
+
});
|
|
1076
|
+
expect(r.ok ? "resolved" : r.error.kind).toBe("broken");
|
|
1077
|
+
});
|
|
1078
|
+
});
|
|
1079
|
+
|
|
1080
|
+
describe("the id and the year: a venue is <series>-<year>, a family ends in no year", () => {
|
|
1081
|
+
it.each([
|
|
1082
|
+
[
|
|
1083
|
+
"icse",
|
|
1084
|
+
"venue",
|
|
1085
|
+
"icse: a venue preset is one edition, and its id is <series>-<year> (icse-2028)",
|
|
1086
|
+
],
|
|
1087
|
+
[
|
|
1088
|
+
"icse-28",
|
|
1089
|
+
"venue",
|
|
1090
|
+
"icse-28: a venue preset is one edition, and its id is <series>-<year> (icse-2028)",
|
|
1091
|
+
],
|
|
1092
|
+
[
|
|
1093
|
+
"ICSE-2028",
|
|
1094
|
+
"venue",
|
|
1095
|
+
"ICSE-2028: a venue preset is one edition, and its id is <series>-<year> (icse-2028)",
|
|
1096
|
+
],
|
|
1097
|
+
[
|
|
1098
|
+
"acm-2027",
|
|
1099
|
+
"family",
|
|
1100
|
+
"acm-2027: a template family is a format, not an edition, and its id ends in no year",
|
|
1101
|
+
],
|
|
1102
|
+
] as const)("🔴 planted: %s as a %s", (id, type, text) => {
|
|
1103
|
+
expect(idProblem(id, type)).toBe(text);
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
it.each([
|
|
1107
|
+
["usenix-sec-2027", "venue"],
|
|
1108
|
+
["acm-sigconf", "family"],
|
|
1109
|
+
["tex-base", "base"],
|
|
1110
|
+
] as const)("%s as a %s fits", (id, type) => {
|
|
1111
|
+
expect(idProblem(id, type)).toBeNull();
|
|
1112
|
+
});
|
|
1113
|
+
|
|
1114
|
+
it("every shipped preset fits", () => {
|
|
1115
|
+
expect(
|
|
1116
|
+
PARSED.flatMap((p) => idProblem(p.name, p.preset.identity.type) ?? []),
|
|
1117
|
+
).toEqual([]);
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
|
|
1121
|
+
describe("an edition's deadlines fall within [year − 2, year + 1]", () => {
|
|
1122
|
+
it("🔴 planted: a reading of another edition", () => {
|
|
1123
|
+
expect(
|
|
1124
|
+
deadlineYearProblems("icse-2028", 2028, [
|
|
1125
|
+
{ what: "submission", at: "2025-07-02T11:59:59Z" },
|
|
1126
|
+
{ what: "camera-ready", at: "2030-01-01T11:59:59Z" },
|
|
1127
|
+
{ what: "notification", at: "2027-10-22T11:59:59Z" },
|
|
1128
|
+
]),
|
|
1129
|
+
).toEqual([
|
|
1130
|
+
"icse-2028: the submission deadline 2025-07-02T11:59:59Z is outside 2026–2029, the years an edition of 2028 falls in",
|
|
1131
|
+
"icse-2028: the camera-ready deadline 2030-01-01T11:59:59Z is outside 2026–2029, the years an edition of 2028 falls in",
|
|
1132
|
+
]);
|
|
1133
|
+
});
|
|
1134
|
+
|
|
1135
|
+
it("every shipped edition's deadlines fit", () => {
|
|
1136
|
+
const editions = PARSED.flatMap((p) => {
|
|
1137
|
+
const e = editionOf(p.name);
|
|
1138
|
+
return e === null ? [] : [{ ...p, year: e.year }];
|
|
1139
|
+
});
|
|
1140
|
+
expect(editions.length).toBeGreaterThan(10);
|
|
1141
|
+
expect(
|
|
1142
|
+
editions.flatMap((p) =>
|
|
1143
|
+
deadlineYearProblems(p.name, p.year, p.preset.deadlines ?? []),
|
|
1144
|
+
),
|
|
1145
|
+
).toEqual([]);
|
|
1146
|
+
});
|
|
1147
|
+
});
|