paperlint 18.0.0 → 18.2.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.
Files changed (130) hide show
  1. package/README.md +3 -3
  2. package/dist/adapters/hotcrp/index.d.ts +11 -1
  3. package/dist/adapters/hotcrp/index.d.ts.map +1 -1
  4. package/dist/adapters/hotcrp/index.js +11 -1
  5. package/dist/adapters/hotcrp/index.js.map +1 -1
  6. package/dist/adapters/hotcrp/site.d.ts.map +1 -1
  7. package/dist/adapters/hotcrp/site.js +3 -1
  8. package/dist/adapters/hotcrp/site.js.map +1 -1
  9. package/dist/adapters/hotcrp/token.d.ts +11 -0
  10. package/dist/adapters/hotcrp/token.d.ts.map +1 -1
  11. package/dist/adapters/hotcrp/token.js +34 -7
  12. package/dist/adapters/hotcrp/token.js.map +1 -1
  13. package/dist/adapters/latex/document-class.d.ts +28 -5
  14. package/dist/adapters/latex/document-class.d.ts.map +1 -1
  15. package/dist/adapters/latex/document-class.js +208 -21
  16. package/dist/adapters/latex/document-class.js.map +1 -1
  17. package/dist/adapters/latex/index.d.ts +4 -4
  18. package/dist/adapters/latex/index.d.ts.map +1 -1
  19. package/dist/adapters/latex/index.js +5 -2
  20. package/dist/adapters/latex/index.js.map +1 -1
  21. package/dist/adapters/latex/parse.d.ts.map +1 -1
  22. package/dist/adapters/latex/parse.js +5 -0
  23. package/dist/adapters/latex/parse.js.map +1 -1
  24. package/dist/cli.d.ts.map +1 -1
  25. package/dist/cli.js +4 -3
  26. package/dist/cli.js.map +1 -1
  27. package/dist/domain/body-pages.d.ts.map +1 -1
  28. package/dist/domain/body-pages.js +4 -2
  29. package/dist/domain/body-pages.js.map +1 -1
  30. package/dist/domain/portal-token.d.ts +26 -10
  31. package/dist/domain/portal-token.d.ts.map +1 -1
  32. package/dist/domain/portal-token.js +19 -12
  33. package/dist/domain/portal-token.js.map +1 -1
  34. package/dist/domain/tex-document.d.ts +52 -4
  35. package/dist/domain/tex-document.d.ts.map +1 -1
  36. package/dist/domain/tex-document.js +9 -0
  37. package/dist/domain/tex-document.js.map +1 -1
  38. package/dist/eslint-rules/latex-language.d.ts +10 -0
  39. package/dist/eslint-rules/latex-language.d.ts.map +1 -1
  40. package/dist/eslint-rules/latex-language.js +41 -2
  41. package/dist/eslint-rules/latex-language.js.map +1 -1
  42. package/dist/ports/latex.d.ts +13 -1
  43. package/dist/ports/latex.d.ts.map +1 -1
  44. package/dist/ports/submission-portal.d.ts +7 -0
  45. package/dist/ports/submission-portal.d.ts.map +1 -1
  46. package/dist/presets.d.ts +15 -0
  47. package/dist/presets.d.ts.map +1 -1
  48. package/dist/presets.js +9 -0
  49. package/dist/presets.js.map +1 -1
  50. package/dist/submission.d.ts +3 -2
  51. package/dist/submission.d.ts.map +1 -1
  52. package/dist/submission.js +24 -12
  53. package/dist/submission.js.map +1 -1
  54. package/dist/tex-requirements.d.ts +2 -0
  55. package/dist/tex-requirements.d.ts.map +1 -1
  56. package/dist/tex-requirements.js +7 -2
  57. package/dist/tex-requirements.js.map +1 -1
  58. package/dist/tex-venue-rules.d.ts +36 -3
  59. package/dist/tex-venue-rules.d.ts.map +1 -1
  60. package/dist/tex-venue-rules.js +181 -33
  61. package/dist/tex-venue-rules.js.map +1 -1
  62. package/docs/rules/cycle/port-done.md +3 -0
  63. package/docs/rules/tex/template.md +96 -1
  64. package/docs/rules.md +18 -13
  65. package/docs/submission.md +26 -9
  66. package/docs/venues.md +51 -12
  67. package/eslint-rules/latex-language.test.mjs +64 -1
  68. package/eslint-rules/latex-language.ts +44 -2
  69. package/eslint.config.mjs +1 -0
  70. package/fixtures/build-e2e/neurips/PIPELINE-STATUS.md +3 -0
  71. package/fixtures/build-e2e/neurips/expect.json +20 -0
  72. package/fixtures/build-e2e/neurips/paper.tex +60 -0
  73. package/fixtures/build-e2e/neurips/paperlint.json +1 -0
  74. package/fixtures/build-e2e/neurips-nostyle/PIPELINE-STATUS.md +3 -0
  75. package/fixtures/build-e2e/neurips-nostyle/expect.json +26 -0
  76. package/fixtures/build-e2e/neurips-nostyle/paper.tex +56 -0
  77. package/fixtures/build-e2e/neurips-nostyle/paperlint.json +1 -0
  78. package/fixtures/build-e2e/neurips-over/PIPELINE-STATUS.md +3 -0
  79. package/fixtures/build-e2e/neurips-over/expect.json +24 -0
  80. package/fixtures/build-e2e/neurips-over/paper.tex +56 -0
  81. package/fixtures/build-e2e/neurips-over/paperlint.json +1 -0
  82. package/fixtures/real-papers.test.ts +17 -6
  83. package/package.json +3 -1
  84. package/presets/aaai-2027.jsonc +126 -0
  85. package/presets/aaai-2027.md +127 -0
  86. package/presets/aaai-press.jsonc +167 -0
  87. package/presets/aaai-press.md +126 -0
  88. package/presets/icml-2027.jsonc +111 -0
  89. package/presets/icml-2027.md +130 -0
  90. package/presets/icml-style.jsonc +125 -0
  91. package/presets/icml-style.md +77 -0
  92. package/presets/neurips-2026.jsonc +123 -0
  93. package/presets/neurips-2026.md +137 -0
  94. package/presets/neurips-style.jsonc +113 -0
  95. package/presets/neurips-style.md +85 -0
  96. package/presets/venue-profile.schema.json +6 -0
  97. package/skills/build-label-page/scripts/label-page-browser.test.ts +275 -114
  98. package/src/adapters/hotcrp/cassette/README.md +1 -1
  99. package/src/adapters/hotcrp/index.ts +12 -0
  100. package/src/adapters/hotcrp/site.ts +4 -0
  101. package/src/adapters/hotcrp/token.test.ts +39 -1
  102. package/src/adapters/hotcrp/token.ts +40 -7
  103. package/src/adapters/latex/document-class.ts +292 -20
  104. package/src/adapters/latex/index.test.ts +263 -0
  105. package/src/adapters/latex/index.ts +12 -3
  106. package/src/adapters/latex/parse.ts +5 -0
  107. package/src/cli.test.ts +6 -1
  108. package/src/cli.ts +4 -3
  109. package/src/domain/body-pages.test.ts +22 -6
  110. package/src/domain/body-pages.ts +4 -2
  111. package/src/domain/portal-token.test.ts +121 -2
  112. package/src/domain/portal-token.ts +39 -15
  113. package/src/domain/tex-document.ts +64 -5
  114. package/src/folder-venue-rule.test.ts +51 -0
  115. package/src/new-paper.test.ts +2 -2
  116. package/src/paper-settings-commands.test.ts +1 -1
  117. package/src/ports/latex.ts +14 -0
  118. package/src/ports/submission-portal.ts +7 -0
  119. package/src/preset-card-rule.test.ts +44 -27
  120. package/src/presets.test.ts +177 -1
  121. package/src/presets.ts +27 -0
  122. package/src/rule-cases.test.ts +52 -0
  123. package/src/submission-show.test.ts +1 -1
  124. package/src/submission.test.ts +98 -7
  125. package/src/submission.ts +28 -11
  126. package/src/tex-requirements.harness.ts +17 -3
  127. package/src/tex-requirements.ts +13 -2
  128. package/src/tex-venue-rules.test.ts +1020 -0
  129. package/src/tex-venue-rules.ts +248 -38
  130. package/src/venue-rules.test.ts +369 -2
package/docs/venues.md CHANGED
@@ -23,12 +23,15 @@ here and that every `paperlint:` id below exists.
23
23
 
24
24
  ### Families
25
25
 
26
- | family | the template |
27
- | --------------------------- | ---------------------------------------- |
28
- | `paperlint:acm-sigconf` | ACM `acmart`, sigconf (two columns) |
29
- | `paperlint:acm-acmsmall` | ACM `acmart`, acmsmall (one column) |
30
- | `paperlint:ieee-conference` | IEEE `IEEEtran`, conference |
31
- | `paperlint:acl-latex` | ACL's style files (`article`, `acl.sty`) |
26
+ | family | the template |
27
+ | --------------------------- | ----------------------------------------------- |
28
+ | `paperlint:acm-sigconf` | ACM `acmart`, sigconf (two columns) |
29
+ | `paperlint:acm-acmsmall` | ACM `acmart`, acmsmall (one column) |
30
+ | `paperlint:ieee-conference` | IEEE `IEEEtran`, conference |
31
+ | `paperlint:acl-latex` | ACL's style files (`article`, `acl.sty`) |
32
+ | `paperlint:neurips-style` | `article` + `\usepackage{neurips_2026}` |
33
+ | `paperlint:icml-style` | `article` + `\usepackage{icml2027}` |
34
+ | `paperlint:aaai-press` | `article` + `\usepackage[submission]{aaai2027}` |
32
35
 
33
36
  The TeX base set, `tex-base.jsonc`, is extended by nothing: every paper gets it.
34
37
 
@@ -67,21 +70,52 @@ MSR is held beside ICSE, but it is a conference of its own, not a workshop, so i
67
70
  | `paperlint:emnlp-2026` | — | `paperlint:acl-latex` | the class line and packages (minimal preset) |
68
71
  | `paperlint:realm-2026` | `paperlint:emnlp-2026` | `paperlint:acl-latex` | the workshop's format; no page limit (its card) |
69
72
 
70
- **Machine learning and AI**, **human–computer interaction**: none shipped yet.
73
+ **Machine learning and AI**
74
+
75
+ | edition | parent | family | what is checked |
76
+ | ------------------------ | ------ | ------------------------- | -------------------------------------------------------- |
77
+ | `paperlint:neurips-2026` | — | `paperlint:neurips-style` | the main track's call and the kit's style file |
78
+ | `paperlint:icml-2027` | — | `paperlint:icml-style` | the call and the kit's style file |
79
+ | `paperlint:aaai-2027` | — | `paperlint:aaai-press` | the main technical track's call and the kit's style file |
80
+
81
+ The template of these three is a style file a paper loads over `article`: each family names the
82
+ class in `template` and the style in `template_style`, and `tex/template` requires both.
83
+
84
+ **Human–computer interaction**: none shipped yet.
71
85
 
72
86
  A minimal preset carries the edition's names, its call and its family, and no page limit or deadline:
73
87
  it exists so the workshops held there can name it as their parent. Its card says so.
74
88
 
75
89
  ### In progress
76
90
 
77
- NeurIPS, ICML, ICLR, AAAI and IJCAI have been measured and are not shipped yet. Their templates are
78
- not classes but style files a paper loads over `article` (`\usepackage{neurips_2026}`), and
79
- `tex/template` compares only the `\documentclass` line: every one of them would pass as `article`.
80
- They ship when the template check can see a style file.
91
+ ICLR and IJCAI have been measured and are not shipped yet. Their templates are style files a paper
92
+ loads over `article`, as NeurIPS's, ICML's and AAAI's are, and `template_style` can name them; what
93
+ holds them back is the page count: statements their calls keep out of the limit stand before the
94
+ references, where they count as body.
95
+
96
+ ### Seen, not added yet
97
+
98
+ Venues we have come across in this repository's work and not added: each has a source to point to.
99
+ «Notable venues not covered», below, lists well-known venues nobody here has looked at yet.
100
+
101
+ | venue (series, edition) | parent | where we saw it | what blocks it |
102
+ | ----------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
103
+ | JAWS 2026 (workshop) | ASE 2026 | the acceptance comment of arXiv 2611.01265v1 (#545's candidate search, 2026-11-19) | nothing: on request |
104
+ | POVC 2026 (workshop) | ASE 2026 | arXiv 2609.05978v2 (#545) | nothing: on request |
105
+ | LLMSC 2026 (workshop) | FSE 2026 | arXiv 2604.27789v1 (#545) | on request; its parent edition, FSE 2026, has no preset (FSE 2027 ships) |
106
+ | FSE 2026, its tracks on sigconf (Ideas, Visions and Reflections; Industry) | — | arXiv 2603.28166v2, 2604.06448v2 and three more (#545) | the track's class is still to be confirmed from its call |
107
+ | ACM ASIA CCS 2026 | — | arXiv 2601.12634v1, `acmart` sigconf (#545) | nothing: on request |
108
+ | ISSTA 2026 | — | the arXiv comment searches of 2026-11-19, not probed (#545) | nothing: on request |
109
+ | ICLR 2027 | — | measured from its call and author kit | statements its call keeps out of the page limit stand before the references and count as body (`body_ends_before`, #544) |
110
+ | IJCAI 2027 | — | measured from its call and author kit | the same as ICLR (#544) |
111
+ | NeurIPS 2026, its Evaluations & Datasets and Position Paper tracks | — | the 2026 call page, beside the main track (`neurips-2026.md`) | their own calls, not read: on request |
112
+ | NeurIPS 2026 workshops: «Who Verifies the Agents?», Interp4Discovery, TAE (Trust-AI-Eval) | NeurIPS 2026 | `fixtures/arxiv-papers/2611.08666v1`, `2611.09818v1`, `2611.09147v1` | on request; they load NeurIPS's style file, whose kit has workshop options (`dblblindworkshop`, `sglblindworkshop`) |
113
+ | ICML 2027, its position paper track | — | the ICML 2027 call (`icml-2027.md`) | its call is not published |
114
+ | AAAI-27, its AI Alignment track | — | the AAAI-27 call (`aaai-2027.md`) | on request: the main track's page limit, its own dates |
81
115
 
82
116
  ### Notable venues not covered
83
117
 
84
- USENIX Security and NDSS (security); ISSTA, OOPSLA and PLDI (software and programming languages);
118
+ USENIX Security and NDSS (security); OOPSLA and PLDI (software and programming languages);
85
119
  ACL, NAACL and EACL main conferences (NLP); KDD and The Web Conference (data); CHI, CSCW and UIST
86
120
  (HCI); OSDI and SOSP (systems); Springer LNCS venues.
87
121
 
@@ -94,6 +128,11 @@ own, `venues/<series>-<year>.jsonc`, that extends a family (`paperlint:ieee-conf
94
128
  conference edition (`paperlint:icse-2027`), and points the paper's `"extends"` at it
95
129
  ([`rules.md`](rules.md#writing-your-own-venue-preset)).
96
130
 
131
+ How long one workshop takes is not in the history: no past addition is one workshop alone. AGENT,
132
+ AGENTVERIFY and NLBSE came in one commit (#305, the branch's first commit at 2026-10-26 22:32 UTC,
133
+ merged 2026-10-27 09:35 UTC, the wait for review included), AIDC with the IEEE family and three rules
134
+ (#130), and the work before a first commit is not recorded; the repository is squash-merged.
135
+
97
136
  ## The corpus of accepted papers
98
137
 
99
138
  `<papers-root>` is the papers directory: `papersDir` in the project's `paperlint.json`, default
@@ -5,7 +5,11 @@
5
5
  */
6
6
  import assert from "node:assert/strict";
7
7
  import { test } from "vitest";
8
- import { texLanguage, texToMdast } from "./latex-language.ts";
8
+ import {
9
+ preambleDirectives,
10
+ texLanguage,
11
+ texToMdast,
12
+ } from "./latex-language.ts";
9
13
 
10
14
  /** The projection plus each node's type, lang/title and start–end offsets. */
11
15
  const project = (src) => {
@@ -216,3 +220,62 @@ test("🔴 a heading written over several lines keeps every newline, so the proj
216
220
  );
217
221
  assert.equal(text.split("\n")[3], "Text.");
218
222
  });
223
+
224
+ test("🔴 a disable directive in the preamble is one the source code gives ESLint; other preamble comments are not", () => {
225
+ const body = [
226
+ "% a note, not a directive",
227
+ "\\usepackage{x} % eslint-disable-line format/layout-override -- allowed",
228
+ "% eslint-disable-next-line tex/template -- the chair allowed it",
229
+ "\\documentclass{article}",
230
+ "\\begin{document}",
231
+ "% eslint-disable-next-line tex/heading-case -- the body's own",
232
+ "\\section{a}",
233
+ "\\end{document}",
234
+ ].join("\n");
235
+ const parsed = texLanguage.parse({ body });
236
+ const code = texLanguage.createSourceCode({ body }, parsed);
237
+ assert.deepEqual(
238
+ code
239
+ .getDisableDirectives()
240
+ .directives.map((d) => [d.type, d.value, d.node.position.start.line]),
241
+ [
242
+ ["disable-line", "format/layout-override", 2],
243
+ ["disable-next-line", "tex/template", 3],
244
+ ["disable-next-line", "tex/heading-case", 6],
245
+ ],
246
+ );
247
+ // Each spans its `%` to the end of its line, in source order among the projection's nodes.
248
+ assert.deepEqual(
249
+ parsed.ast.children
250
+ .filter((c) => c.type === "html")
251
+ .map((c) => [
252
+ c.position.start.line,
253
+ c.position.start.column,
254
+ c.position.end.column,
255
+ ]),
256
+ [
257
+ [2, 16, 71],
258
+ [3, 1, 64],
259
+ [6, 1, 62],
260
+ ],
261
+ );
262
+ });
263
+
264
+ test("a source with no document environment is all body: its directive is read once, not twice", () => {
265
+ const body =
266
+ "% eslint-disable-next-line tex/template -- x\n\\documentclass{a}\n";
267
+ const parsed = texLanguage.parse({ body });
268
+ const code = texLanguage.createSourceCode({ body }, parsed);
269
+ assert.deepEqual(
270
+ code.getDisableDirectives().directives.map((d) => d.value),
271
+ ["tex/template"],
272
+ );
273
+ });
274
+
275
+ test("preambleDirectives: a comment the parser gave no position is skipped", () => {
276
+ const tree = {
277
+ content: [{ type: "comment", content: " eslint-disable tex/template" }],
278
+ };
279
+ const src = "\\begin{document}\\end{document}";
280
+ assert.deepEqual(preambleDirectives(tree, src), []);
281
+ });
@@ -695,6 +695,40 @@ const DIRECTIVES: ReadonlyMap<string, DirectiveType> = new Map([
695
695
  ["eslint-disable-line", "disable-line"],
696
696
  ]);
697
697
 
698
+ /** Where an offset of `src` stands, as the projection's `loc` counts it. */
699
+ const pointAt = (src: string, offset: number): Point => ({
700
+ offset,
701
+ line: src.slice(0, offset).split("\n").length,
702
+ column: offset - src.lastIndexOf("\n", offset - 1),
703
+ });
704
+
705
+ /**
706
+ * 🔴 The disable directives of the preamble, as the `html` nodes ESLint reads directives from. The
707
+ * projection blanks the preamble and makes no node of anything in it, so a directive there was not
708
+ * seen — measured 2026-11-19: `% eslint-disable-next-line tex/template -- …` above the class line
709
+ * left the finding standing. The rules that report in the preamble (`tex/template` at the
710
+ * `\documentclass`, `format/layout-override` at a `\usepackage{geometry}`) need it. Only
711
+ * directives: nothing else in the preamble is a note a rule reads. A comment node may start at the
712
+ * newline before its `%` and end with the newline after it; the span is the `%` to the line's end.
713
+ */
714
+ export function preambleDirectives(
715
+ tree: TexRoot,
716
+ src: string,
717
+ ): readonly MdNode[] {
718
+ const beginDoc = src.indexOf("\\begin{document}");
719
+ const preEnd = beginDoc > 0 ? beginDoc + "\\begin{document}".length : 0;
720
+ return tree.content.flatMap((n) => {
721
+ const pos = n.position;
722
+ if (n.type !== "comment" || !pos || pos.start.offset >= preEnd) return [];
723
+ if (!directiveStart.test(n.content)) return [];
724
+ const text = src.slice(pos.start.offset, pos.end.offset);
725
+ const start = pos.start.offset + text.indexOf("%");
726
+ const end = pos.start.offset + text.trimEnd().length;
727
+ const position = { start: pointAt(src, start), end: pointAt(src, end) };
728
+ return [{ type: "html" as const, value: n.content, position }];
729
+ });
730
+ }
731
+
698
732
  class TexSourceCode extends TextSourceCodeBase<{
699
733
  LangOptions: LanguageOptions;
700
734
  RootNode: MdNode;
@@ -794,8 +828,16 @@ export const texLanguage: Language<{
794
828
  parse(file: File): ParseResult<MdNode> {
795
829
  try {
796
830
  const raw = String(file.body);
797
- const { root, text } = texToMdast(raw);
798
- return { ok: true, ast: root, projected: text, raw };
831
+ // One parse, read twice: by the projection, and for the preamble's directives.
832
+ const tree: TexRoot = getParser().parse(raw);
833
+ const { root, text } = texToMdast(raw, { parse: () => tree });
834
+ // In source order, as the projection keeps its own nodes.
835
+ const children = [
836
+ ...root.children,
837
+ ...preambleDirectives(tree, raw),
838
+ ].toSorted((a, b) => a.position.start.offset - b.position.start.offset);
839
+ const ast = { ...root, children };
840
+ return { ok: true, ast, projected: text, raw };
799
841
  } catch (ex) {
800
842
  // What the parser throws is an Error: its own syntax error, or the stack exhausted. ESLint
801
843
  // prints a parse failure at its `line` and `column`, and a failure of the whole parse has
package/eslint.config.mjs CHANGED
@@ -604,6 +604,7 @@ export default [
604
604
  // Other people's papers (fixtures/arxiv-papers/README.md): judged by the real-papers test against a
605
605
  // baseline, not by this repository's own lint.
606
606
  "fixtures/arxiv-papers/",
607
+ "fixtures/venue-papers/",
607
608
  "docs/prior-art/repro/",
608
609
  "dist/",
609
610
  "skills/*/scripts/*.js",
@@ -0,0 +1,3 @@
1
+ # Fixture
2
+
3
+ Stage: draft
@@ -0,0 +1,20 @@
1
+ {
2
+ "$comment": "A paper in NeurIPS 2026's author-kit template, \\documentclass{article} with the kit's neurips_2026.sty beside it, that meets every number of paperlint:neurips over the neurips-style family: one column on a letter page, Times (NimbusRomNo9L) at 10 pt, references in \\small, 7 content pages, then the references, an appendix and the paper checklist. Its twins: neurips-over (too many content pages) and neurips-nostyle (no style file).",
3
+ "needs": [
4
+ {
5
+ "file": "neurips_2026.sty",
6
+ "from": "https://media.neurips.cc/Conferences/NeurIPS2026/Formatting_Instructions_For_NeurIPS_2026.zip"
7
+ }
8
+ ],
9
+ "build": {
10
+ "outcome": "pdf",
11
+ "pages": 10
12
+ },
13
+ "fonts": {
14
+ "all": "^(NimbusRomNo9L|NimbusSanL|SFTT)",
15
+ "none": "^(CMR|CMBX|CMTI|SFRM|SFBX|LMRoman)"
16
+ },
17
+ "lint": {
18
+ "findings": []
19
+ }
20
+ }
@@ -0,0 +1,60 @@
1
+ % A paper in the template NeurIPS 2026's author kit gives — \documentclass{article} with the kit's
2
+ % neurips_2026.sty beside it, unchanged (sha256 c3fc2894…a7ec4555a), loaded with no option: the
3
+ % anonymous submission — built by the e2e on paperlint's own TeX Live, that MEETS the main track's
4
+ % limit: content pages within nine before the references, then the references in \small, a
5
+ % technical appendix and the paper checklist, none of which count. It is what the neurips-style
6
+ % family was measured on, made checkable: letter page, one column, Times at 10 pt.
7
+ % The style file is not committed (its licence is unverified): expect.json `needs` it, and the
8
+ % e2e skips this fixture, saying so, when it is not beside this file.
9
+ %
10
+ % The prose is one paragraph set many times; each copy carries its own number in words on every
11
+ % line, so no line repeats from page to page as a running header would.
12
+ \documentclass{article}
13
+ \usepackage{neurips_2026}
14
+ \usepackage[T1]{fontenc}
15
+ \usepackage{hyperref}
16
+ \usepackage{xcolor}
17
+ \newcount\paracount
18
+ \newcommand{\n}{\romannumeral\paracount}
19
+ \newcommand{\para}{\global\advance\paracount by 1
20
+ Paragraph \n{} trains a model on a benchmark, and \n{} counts its errors by class \n{}
21
+ and by seed \n{}, so that the measurement \n{} has a body of prose \n{} set in the one column
22
+ \n{} of the conference style. Paragraph \n{} says nothing new, and \n{} does not need to: the
23
+ fixture \n{} is about the style, \n{} the fonts and \n{} the page count, and \n{} not about its
24
+ content. A reviewer of \n{} would find it dull, \n{} which is what a measurement \n{} should be.\par}
25
+ \newcount\loopcount
26
+ \newcommand{\paras}[1]{\loopcount=0 \loop\para\advance\loopcount by 1 \ifnum\loopcount<#1\repeat}
27
+ \newcount\bibcount
28
+ \newcommand{\entries}[1]{\bibcount=0 \loop\advance\bibcount by 1
29
+ \bibitem[Author(2024)]{r\the\bibcount} A.~Author. Learning study \romannumeral\bibcount. In
30
+ \emph{Proc.\ Workshop}, pages 1--10, 2024.\ifnum\bibcount<#1\repeat}
31
+ \title{A Fixture Typeset in the Style the Venue Requires}
32
+ \author{Anonymous Author}
33
+ \begin{document}
34
+ \maketitle
35
+ \begin{abstract}
36
+ The abstract exists so the build has the front matter a NeurIPS paper carries.
37
+ \end{abstract}
38
+ \section{Introduction}
39
+ \paras{24}
40
+ \section{Method}
41
+ \paras{30}
42
+ \section{Conclusion}
43
+ \paras{14}
44
+ \renewcommand{\bibfont}{\small}
45
+ \begin{thebibliography}{99}
46
+ \entries{40}
47
+ \end{thebibliography}
48
+ \appendix
49
+ \section{Technical Appendix}
50
+ \paras{10}
51
+ \newpage
52
+ \section*{NeurIPS Paper Checklist}
53
+ \begin{enumerate}
54
+ \item {\bf Claims}
55
+ \item[] Question: Do the main claims made in the abstract and introduction accurately reflect the
56
+ paper's contributions and scope?
57
+ \item[] Answer: \answerYes{}
58
+ \item[] Justification: The fixture claims only its own format.
59
+ \end{enumerate}
60
+ \end{document}
@@ -0,0 +1 @@
1
+ {"extends": "paperlint:neurips-2026", "kind": "main", "identity": ["Ada Example", "adaexample", "ada@example.org", "Example University", "exampletool"]}
@@ -0,0 +1,3 @@
1
+ # Fixture
2
+
3
+ Stage: draft
@@ -0,0 +1,26 @@
1
+ {
2
+ "$comment": "The neurips fixture without \\usepackage{neurips_2026}: article's own Computer Modern (cm-super, SFRM) on article's text block. tex/template reports the style missing in the source, pdf/fonts that NeurIPS's Times is missing from the PDF, and nothing else does: the page is letter, one column, 10 pt, and the content stays within 9 pages.",
3
+ "build": {
4
+ "outcome": "pdf",
5
+ "pages": 11
6
+ },
7
+ "fonts": {
8
+ "none": "^NimbusRomNo9L"
9
+ },
10
+ "lint": {
11
+ "findings": [
12
+ {
13
+ "rule": "pdf/fonts",
14
+ "severity": 2,
15
+ "says": ["no font starts with `NimbusRomNo9L` (body text of NeurIPS)"]
16
+ },
17
+ {
18
+ "rule": "tex/template",
19
+ "severity": 2,
20
+ "says": [
21
+ "NeurIPS requires `\\usepackage{neurips_2026}`; paper.tex loads no such package"
22
+ ]
23
+ }
24
+ ]
25
+ }
26
+ }
@@ -0,0 +1,56 @@
1
+ % The neurips fixture without NeurIPS's style: \documentclass{article} alone, the paper the author
2
+ % kit's style file was never copied into or never loaded. The class is the one the style is loaded
3
+ % into, so nothing in the class line is wrong; the build is set in Computer Modern on article's own
4
+ % text block, and pdf/fonts must report that the NeurIPS text font is missing. It is shorter than the
5
+ % neurips fixture so that article's narrower text block keeps it within the page limit.
6
+ %
7
+ % The prose is one paragraph set many times; each copy carries its own number in words on every
8
+ % line, so no line repeats from page to page as a running header would.
9
+ \documentclass{article}
10
+ \usepackage[T1]{fontenc}
11
+ \usepackage{hyperref}
12
+ \usepackage{natbib}
13
+ \newcount\paracount
14
+ \newcommand{\n}{\romannumeral\paracount}
15
+ \newcommand{\para}{\global\advance\paracount by 1
16
+ Paragraph \n{} trains a model on a benchmark, and \n{} counts its errors by class \n{}
17
+ and by seed \n{}, so that the measurement \n{} has a body of prose \n{} set in the one column
18
+ \n{} of the conference style. Paragraph \n{} says nothing new, and \n{} does not need to: the
19
+ fixture \n{} is about the style, \n{} the fonts and \n{} the page count, and \n{} not about its
20
+ content. A reviewer of \n{} would find it dull, \n{} which is what a measurement \n{} should be.\par}
21
+ \newcount\loopcount
22
+ \newcommand{\paras}[1]{\loopcount=0 \loop\para\advance\loopcount by 1 \ifnum\loopcount<#1\repeat}
23
+ \newcount\bibcount
24
+ \newcommand{\entries}[1]{\bibcount=0 \loop\advance\bibcount by 1
25
+ \bibitem[Author(2024)]{r\the\bibcount} A.~Author. Learning study \romannumeral\bibcount. In
26
+ \emph{Proc.\ Workshop}, pages 1--10, 2024.\ifnum\bibcount<#1\repeat}
27
+ \title{A Fixture Typeset in the Style the Venue Requires}
28
+ \author{Anonymous Author}
29
+ \begin{document}
30
+ \maketitle
31
+ \begin{abstract}
32
+ The abstract exists so the build has the front matter a NeurIPS paper carries.
33
+ \end{abstract}
34
+ \section{Introduction}
35
+ \paras{16}
36
+ \section{Method}
37
+ \paras{20}
38
+ \section{Conclusion}
39
+ \paras{10}
40
+ \renewcommand{\bibfont}{\small}
41
+ \begin{thebibliography}{99}
42
+ \entries{40}
43
+ \end{thebibliography}
44
+ \appendix
45
+ \section{Technical Appendix}
46
+ \paras{10}
47
+ \newpage
48
+ \section*{NeurIPS Paper Checklist}
49
+ \begin{enumerate}
50
+ \item {\bf Claims}
51
+ \item[] Question: Do the main claims made in the abstract and introduction accurately reflect the
52
+ paper's contributions and scope?
53
+ \item[] Answer: Yes
54
+ \item[] Justification: The fixture claims only its own format.
55
+ \end{enumerate}
56
+ \end{document}
@@ -0,0 +1 @@
1
+ {"extends": "paperlint:neurips-2026", "kind": "main", "identity": ["Ada Example", "adaexample", "ada@example.org", "Example University", "exampletool"]}
@@ -0,0 +1,3 @@
1
+ # Fixture
2
+
3
+ Stage: draft
@@ -0,0 +1,24 @@
1
+ {
2
+ "$comment": "The neurips fixture with 11 content pages: format/page-limit reports it against NeurIPS's 9 for the main track, and nothing else does — the style, the page and the fonts are the neurips fixture's.",
3
+ "needs": [
4
+ {
5
+ "file": "neurips_2026.sty",
6
+ "from": "https://media.neurips.cc/Conferences/NeurIPS2026/Formatting_Instructions_For_NeurIPS_2026.zip"
7
+ }
8
+ ],
9
+ "build": {
10
+ "outcome": "pdf",
11
+ "pages": 14
12
+ },
13
+ "lint": {
14
+ "findings": [
15
+ {
16
+ "rule": "format/page-limit",
17
+ "severity": 2,
18
+ "says": [
19
+ "body pages: 11, over the limit 9 for NeurIPS/main"
20
+ ]
21
+ }
22
+ ]
23
+ }
24
+ }
@@ -0,0 +1,56 @@
1
+ % The neurips fixture with too many content pages for NeurIPS 2026's main track: more than nine
2
+ % pages before the references, in the same style file (not committed: expect.json `needs` it), fonts
3
+ % and page. format/page-limit must report it on the real build, as it stays silent on the neurips
4
+ % fixture.
5
+ %
6
+ % The prose is one paragraph set many times; each copy carries its own number in words on every
7
+ % line, so no line repeats from page to page as a running header would.
8
+ \documentclass{article}
9
+ \usepackage{neurips_2026}
10
+ \usepackage[T1]{fontenc}
11
+ \usepackage{hyperref}
12
+ \usepackage{xcolor}
13
+ \newcount\paracount
14
+ \newcommand{\n}{\romannumeral\paracount}
15
+ \newcommand{\para}{\global\advance\paracount by 1
16
+ Paragraph \n{} trains a model on a benchmark, and \n{} counts its errors by class \n{}
17
+ and by seed \n{}, so that the measurement \n{} has a body of prose \n{} set in the one column
18
+ \n{} of the conference style. Paragraph \n{} says nothing new, and \n{} does not need to: the
19
+ fixture \n{} is about the style, \n{} the fonts and \n{} the page count, and \n{} not about its
20
+ content. A reviewer of \n{} would find it dull, \n{} which is what a measurement \n{} should be.\par}
21
+ \newcount\loopcount
22
+ \newcommand{\paras}[1]{\loopcount=0 \loop\para\advance\loopcount by 1 \ifnum\loopcount<#1\repeat}
23
+ \newcount\bibcount
24
+ \newcommand{\entries}[1]{\bibcount=0 \loop\advance\bibcount by 1
25
+ \bibitem[Author(2024)]{r\the\bibcount} A.~Author. Learning study \romannumeral\bibcount. In
26
+ \emph{Proc.\ Workshop}, pages 1--10, 2024.\ifnum\bibcount<#1\repeat}
27
+ \title{A Fixture Typeset in the Style the Venue Requires}
28
+ \author{Anonymous Author}
29
+ \begin{document}
30
+ \maketitle
31
+ \begin{abstract}
32
+ The abstract exists so the build has the front matter a NeurIPS paper carries.
33
+ \end{abstract}
34
+ \section{Introduction}
35
+ \paras{24}
36
+ \section{Method}
37
+ \paras{66}
38
+ \section{Conclusion}
39
+ \paras{14}
40
+ \renewcommand{\bibfont}{\small}
41
+ \begin{thebibliography}{99}
42
+ \entries{40}
43
+ \end{thebibliography}
44
+ \appendix
45
+ \section{Technical Appendix}
46
+ \paras{10}
47
+ \newpage
48
+ \section*{NeurIPS Paper Checklist}
49
+ \begin{enumerate}
50
+ \item {\bf Claims}
51
+ \item[] Question: Do the main claims made in the abstract and introduction accurately reflect the
52
+ paper's contributions and scope?
53
+ \item[] Answer: \answerYes{}
54
+ \item[] Justification: The fixture claims only its own format.
55
+ \end{enumerate}
56
+ \end{document}
@@ -0,0 +1 @@
1
+ {"extends": "paperlint:neurips-2026", "kind": "main", "identity": ["Ada Example", "adaexample", "ada@example.org", "Example University", "exampletool"]}
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Every rule, on every real paper of the corpus, in ONE run of the CLI: the six accepted papers of
3
- * `accepted-papers/` and the arXiv preprints of `arxiv-papers/` (its README says what they are, and
4
- * why all of them run). The subject is the corpus as one object: each directory of those two folders
5
- * is a paper with its own `baseline.json`, so a paper added without a baseline fails here.
3
+ * `accepted-papers/`, the arXiv preprints of `arxiv-papers/` (its README says what they are, and
4
+ * why all of them run) and the accepted camera-ready papers of `venue-papers/`, each linted against
5
+ * the venue that accepted it. The subject is the corpus as one object: each directory of those
6
+ * folders is a paper with its own `baseline.json`, so a paper added without a baseline fails here.
6
7
  *
7
8
  * A rule that says MORE about a real paper than recorded has gained a false positive until shown
8
9
  * otherwise; a rule that goes fully quiet without the recording being updated has died. A partial
@@ -21,7 +22,7 @@
21
22
  import { cpSync, readdirSync, readFileSync, statSync } from "node:fs";
22
23
  import { dirname, join } from "node:path";
23
24
  import { fileURLToPath } from "node:url";
24
- import { describe, expect, it } from "vitest";
25
+ import { describe, expect, it, vi } from "vitest";
25
26
  import { run } from "../src/cli.ts";
26
27
  import { latexReader } from "../src/adapters/latex/index.ts";
27
28
  import { nodeFiles } from "../src/adapters/node/index.ts";
@@ -42,7 +43,9 @@ const HERE = dirname(fileURLToPath(import.meta.url));
42
43
  const ACCEPTED = readdirSync(join(HERE, "accepted-papers")).filter((name) =>
43
44
  statSync(join(HERE, "accepted-papers", name)).isDirectory(),
44
45
  );
45
- const FOLDERS = ["accepted-papers", "arxiv-papers"].map((f) => join(HERE, f));
46
+ const FOLDERS = ["accepted-papers", "arxiv-papers", "venue-papers"].map((f) =>
47
+ join(HERE, f),
48
+ );
46
49
 
47
50
  /** Every paper: its directory name (unique across the folders) and where it is. */
48
51
  const PAPERS = FOLDERS.flatMap((root) =>
@@ -80,12 +83,20 @@ it("the corpus holds papers, with names that are unique — an empty or collidin
80
83
  expect(new Set(PAPERS.map((p) => p.name)).size).toBe(PAPERS.length);
81
84
  });
82
85
 
86
+ /**
87
+ * The day the baselines were measured. `paper/edition-over` reads the clock: an edition preset whose
88
+ * last deadline passes (`sp-2027`'s on 2027-04-09) would grow a baseline on that day with no change
89
+ * to the code or the papers. The lint runs on this day, so a count moves only when something here does.
90
+ */
91
+ const MEASURED_ON = "2026-11-19T12:00:00Z";
92
+
83
93
  describe("every real paper, in one run", () => {
84
94
  it(
85
95
  "says no more than recorded, and no recorded rule has gone quiet",
86
96
  { timeout: 10 * 60_000 },
87
97
  async () => {
88
- const found = await lintAll();
98
+ vi.setSystemTime(MEASURED_ON);
99
+ const found = await lintAll().finally(() => vi.useRealTimers());
89
100
  const verdicts = PAPERS.map(({ name, dir }) => ({
90
101
  name,
91
102
  ...compareToBaseline(found[name] ?? {}, recordedFindings(dir)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "18.0.0",
3
+ "version": "18.2.0",
4
4
  "description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -127,6 +127,8 @@
127
127
  "!fixtures/arxiv-papers",
128
128
  "!fixtures/arxiv-manifest.json",
129
129
  "!fixtures/arxiv-fetch.ts",
130
+ "!fixtures/venue-papers",
131
+ "!fixtures/venue-manifest.json",
130
132
  "hooks",
131
133
  "lib",
132
134
  "presets",