paperlint 20.6.0 → 20.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/corpus-layout-rule.d.ts +6 -2
- package/dist/corpus-layout-rule.d.ts.map +1 -1
- package/dist/corpus-layout-rule.js +6 -2
- package/dist/corpus-layout-rule.js.map +1 -1
- package/docs/rules/corpus/allowed-files-only.md +9 -8
- package/docs/rules.md +1 -1
- package/package.json +1 -1
- package/src/corpus-layout-rule.test.ts +3 -1
- package/src/corpus-layout-rule.ts +7 -3
|
@@ -6,6 +6,10 @@ export interface CorpusLayoutDeps extends FolderLayoutDeps {
|
|
|
6
6
|
}
|
|
7
7
|
/** The rule, reading the corpora through `deps`. */
|
|
8
8
|
export declare function corpusLayoutRules(deps: CorpusLayoutDeps): Readonly<Record<"allowed-files-only", JsonRuleModule>>;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* On by default, on every corpus's `papers.json` and the root `paperlint.json`, at `warn`: a corpus
|
|
11
|
+
* folder made before `papers.json` existed is a migration to do, not a broken build. Raising it to
|
|
12
|
+
* `error` is a major release.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CORPUS_LAYOUT_RULE_LEVELS: Readonly<Record<"corpus/allowed-files-only", "warn">>;
|
|
11
15
|
//# sourceMappingURL=corpus-layout-rule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corpus-layout-rule.d.ts","sourceRoot":"","sources":["../src/corpus-layout-rule.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAY/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,iGAAiG;AACjG,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAoFD,oDAAoD;AACpD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,GACrB,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC,CAoBxD;AAED
|
|
1
|
+
{"version":3,"file":"corpus-layout-rule.d.ts","sourceRoot":"","sources":["../src/corpus-layout-rule.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAY/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,iGAAiG;AACjG,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAoFD,oDAAoD;AACpD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,GACrB,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC,CAoBxD;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAC9C,MAAM,CAAC,2BAA2B,EAAE,MAAM,CAAC,CACF,CAAC"}
|
|
@@ -87,6 +87,10 @@ export function corpusLayoutRules(deps) {
|
|
|
87
87
|
},
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
/**
|
|
91
|
-
|
|
90
|
+
/**
|
|
91
|
+
* On by default, on every corpus's `papers.json` and the root `paperlint.json`, at `warn`: a corpus
|
|
92
|
+
* folder made before `papers.json` existed is a migration to do, not a broken build. Raising it to
|
|
93
|
+
* `error` is a major release.
|
|
94
|
+
*/
|
|
95
|
+
export const CORPUS_LAYOUT_RULE_LEVELS = { "corpus/allowed-files-only": "warn" };
|
|
92
96
|
//# sourceMappingURL=corpus-layout-rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corpus-layout-rule.js","sourceRoot":"","sources":["../src/corpus-layout-rule.ts"],"names":[],"mappings":"AA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YAAY;IAClB,IAAI,EAAE;QACJ,WAAW,EACT,0NAA0N;QAC5N,GAAG,EAAE,WAAW,CAAC,2BAA2B,CAAC;KAC9C;IACD,MAAM,EAAE,EAAE;IACV,wEAAwE;IACxE,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,oDAAoD;AACpD,MAAM,UAAU,iBAAiB,CAC/B,IAAsB;IAEtB,OAAO;QACL,oBAAoB,EAAE;YACpB,IAAI,EAAE,IAAI;YACV,MAAM,CAAC,OAAwB;gBAC7B,OAAO;oBACL,QAAQ;wBACN,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;wBAC5C,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;4BAC3D,OAAO,CAAC,MAAM,CAAC;gCACb,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;gCAC3B,SAAS,EAAE,EAAE;gCACb,IAAI,EAAE,EAAE,IAAI,EAAE;6BACf,CAAC,CAAC;wBACL,CAAC,CAAC,CAAC;oBACL,CAAC;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAElC,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# corpus/allowed-files-only
|
|
2
2
|
|
|
3
|
-
**Level:**
|
|
3
|
+
**Level:** warn, on by default · **Reads:** the listing of each venue corpus's top · **Reported
|
|
4
4
|
on:** the corpus's `papers.json`, first line, once per stray entry; the project's root
|
|
5
5
|
`paperlint.json`, first line, once per corpus that stores copies without `papers.json`
|
|
6
6
|
|
|
@@ -51,7 +51,8 @@ name, a page saved beside it, or notes on one paper at the top are files nobody
|
|
|
51
51
|
of. A corpus that stores copies with no record is one where nobody can say what each file is a copy
|
|
52
52
|
of, or whether its licence lets the project keep it, and [`corpus/record`](record.md) has no file to
|
|
53
53
|
read. It is on by default because this holds for every corpus whatever the venue; it is silent in a
|
|
54
|
-
project with no `venues/`.
|
|
54
|
+
project with no `venues/`. It warns rather than fails: a corpus folder made before `papers.json`
|
|
55
|
+
existed is a migration to do, not a broken build.
|
|
55
56
|
|
|
56
57
|
## Examples
|
|
57
58
|
|
|
@@ -59,14 +60,14 @@ Failing: a note at the top of a corpus, and PDFs kept with no record.
|
|
|
59
60
|
|
|
60
61
|
```text
|
|
61
62
|
papers/venues/agent/papers.json
|
|
62
|
-
1:1
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
1:1 warning `venues/agent/notes.md` is not one of the names a venue corpus holds. Where it goes:
|
|
64
|
+
MANIFEST.md when it is a caveat about the whole corpus; deep-reads/<key>.md when it is
|
|
65
|
+
about one paper. corpus/allowed-files-only
|
|
65
66
|
|
|
66
67
|
paperlint.json
|
|
67
|
-
1:1
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
1:1 warning `papers/venues/other/` stores copies in pdf/ or text/ and has no papers.json, so nothing
|
|
69
|
+
records which paper each file is a copy of, or under which licence it is kept.
|
|
70
|
+
corpus/allowed-files-only
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
Passing: the seven names, the optional ones left out or not.
|
package/docs/rules.md
CHANGED
|
@@ -9,7 +9,7 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
|
|
|
9
9
|
| `paper/source` | error | `PIPELINE-STATUS.md` | a declared stage has no frozen `.tex` beside its PDF (a commit hash does not count — squash and gc destroy it). Silent in a paper that keeps `cycles`: there [`versions/layout`](rules/versions/layout.md) holds each PDF to its source |
|
|
10
10
|
| [`study/declare-sample`](rules/study/declare-sample.md) | experimental; off unless a paper turns it on (`"error"`) | each study's `repro/<study>/prereg.json` | a study's pre-registration does not declare its `population` (what the claim is about, source, size), the `strata` and what each of its `screens` removed per stratum value, its `coverage` (share 0–1 or null with a reason, and the strata it cannot reach), or the `author_check` of the drawn units (a doubtful verdict needs a recorded `decision`); reported on `PIPELINE-STATUS.md`, once per problem — [page](rules/study/declare-sample.md) |
|
|
11
11
|
| [`cycle/record`](rules/cycle/record.md) | error | `paperlint.json` (`cycles`) | the paper's attempts at venues (`cycles`, one entry per attempt) hold one source's deadlines out of order (registration ≤ submission ≤ resubmission < notification < camera-ready), or copy a portal reading the venue's preset carries; reported on `PIPELINE-STATUS.md`. A record that does not parse — a bare date, two open cycles, an unknown key — is refused by `paperlint lint` itself before any rule runs, exit 2 — [page](rules/cycle/record.md) |
|
|
12
|
-
| [`corpus/allowed-files-only`](rules/corpus/allowed-files-only.md) |
|
|
12
|
+
| [`corpus/allowed-files-only`](rules/corpus/allowed-files-only.md) | warn | the listing of each venue corpus's top | a name at the top of a corpus outside `papers.json`, `MANIFEST.md`, `measurements.json`, `pdf/`, `text/`, `deep-reads/`, `sources/`, reported on its `papers.json`; a corpus with `pdf/` or `text/` and no `papers.json`, and a file loose in `venues/`, reported on the root `paperlint.json`. Off with `"corpus/allowed-files-only": "off"` in the root `paperlint.json` — [page](rules/corpus/allowed-files-only.md) |
|
|
13
13
|
| [`corpus/record`](rules/corpus/record.md) | error | a venue corpus's `papers.json` → its `pdf/` and `text/` listing | a field of `papers.json` breaks the record's schema, its `venue` is not its folder's name, a stored file is claimed by no copy, a claimed file is missing, or two copies of a paper store one kind; reported in `papers.json` at the field. Off with `"corpus/record": "off"` in the root `paperlint.json` — [page](rules/corpus/record.md) |
|
|
14
14
|
| [`corpus/licence`](rules/corpus/licence.md) | off, in no set; `"warn"` turns it on | a venue corpus's `papers.json` → the licence table | a stored copy whose licence was not read, is not in the table, forbids that kind, or is non-commercial in a project not declared so (`["warn", { "nonCommercial": true }]`); reported at the copy's `stored`. Opt-in: the same files are legal in a private repository and illegal in a public one — [page](rules/corpus/licence.md) |
|
|
15
15
|
| [`cycle/evidence`](rules/cycle/evidence.md) | error | `paperlint.json` (`cycles`) → the paper folder | a closed cycle (`accepted`, `rejected`, `withdrawn`) or a deadline's `override` names an `evidence` file — the decision mail, the reviews, the withdrawal note, the chairs' mail — that is not in the paper folder; reported on `PIPELINE-STATUS.md` — [page](rules/cycle/evidence.md) |
|
package/package.json
CHANGED
|
@@ -113,8 +113,10 @@ describe("corpus/allowed-files-only: a corpus that stores copies with no papers.
|
|
|
113
113
|
"papers/venues/kept/papers.json": EMPTY.replace("agent", "kept"),
|
|
114
114
|
"papers/venues/kept/pdf/.gitkeep": "",
|
|
115
115
|
});
|
|
116
|
+
// Guards: a corpus folder made before papers.json existed warns and never fails the build (v20.6.0
|
|
117
|
+
// shipped this rule at error in a minor release, which turned such a consumer red).
|
|
116
118
|
expect({ code: r.code, found: r.found }).toEqual({
|
|
117
|
-
code:
|
|
119
|
+
code: 0,
|
|
118
120
|
found: [
|
|
119
121
|
["paperlint.json", 1, "papers/venues/agent/"],
|
|
120
122
|
["paperlint.json", 1, "papers/venues/other/"],
|
|
@@ -139,7 +139,11 @@ export function corpusLayoutRules(
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* On by default, on every corpus's `papers.json` and the root `paperlint.json`, at `warn`: a corpus
|
|
144
|
+
* folder made before `papers.json` existed is a migration to do, not a broken build. Raising it to
|
|
145
|
+
* `error` is a major release.
|
|
146
|
+
*/
|
|
143
147
|
export const CORPUS_LAYOUT_RULE_LEVELS: Readonly<
|
|
144
|
-
Record<"corpus/allowed-files-only", "
|
|
145
|
-
> = { "corpus/allowed-files-only": "
|
|
148
|
+
Record<"corpus/allowed-files-only", "warn">
|
|
149
|
+
> = { "corpus/allowed-files-only": "warn" };
|