@okfit/core 0.16.0 → 0.17.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/Diagnostic.js +8 -1
- package/GeneratedAtFuture.js +4 -6
- package/LintTable.js +292 -0
- package/OkfitConfig.js +213 -256
- package/Reference.js +65 -0
- package/RepoIdentity.js +46 -0
- package/index.d.ts +236 -50
- package/index.js +5 -2
- package/internal/linkScan.js +2 -2
- package/internal/lintRules.js +4 -2
- package/internal/position.js +2 -2
- package/package.json +8 -6
package/Diagnostic.js
CHANGED
|
@@ -63,7 +63,14 @@ const LintCode = Schema.Literals([
|
|
|
63
63
|
"symlink-escape",
|
|
64
64
|
"non-concept-unlisted",
|
|
65
65
|
"computation-missing",
|
|
66
|
-
"generated-at-future"
|
|
66
|
+
"generated-at-future",
|
|
67
|
+
"reference-not-mounted",
|
|
68
|
+
"reference-missing",
|
|
69
|
+
"reference-undeclared",
|
|
70
|
+
"reference-local-only",
|
|
71
|
+
"config-misplaced-key",
|
|
72
|
+
"config-local-tracked",
|
|
73
|
+
"bundle-config-invalid"
|
|
67
74
|
]);
|
|
68
75
|
/** @public */
|
|
69
76
|
const DiagnosticCode = Schema.Union([ConformanceCode, LintCode]);
|
package/GeneratedAtFuture.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DurationWords } from "@effected/kit";
|
|
1
2
|
import { DateTime, Duration, Option } from "effect";
|
|
2
3
|
|
|
3
4
|
// src/GeneratedAtFuture.ts
|
|
@@ -10,15 +11,12 @@ import { DateTime, Duration, Option } from "effect";
|
|
|
10
11
|
*/
|
|
11
12
|
const GENERATED_AT_TOLERANCE = Duration.minutes(5);
|
|
12
13
|
/**
|
|
13
|
-
* {@link GENERATED_AT_TOLERANCE} in words ("5 minutes"), for messages. Derived from the constant
|
|
14
|
-
* tolerance changes every message that names it.
|
|
14
|
+
* {@link GENERATED_AT_TOLERANCE} in words ("5 minutes"), for messages. Derived from the constant with
|
|
15
|
+
* `DurationWords.format`, so changing the tolerance changes every message that names it.
|
|
15
16
|
*
|
|
16
17
|
* @public
|
|
17
18
|
*/
|
|
18
|
-
const GENERATED_AT_TOLERANCE_TEXT = (
|
|
19
|
-
const minutes = Duration.toMinutes(GENERATED_AT_TOLERANCE);
|
|
20
|
-
return `${minutes} minute${minutes === 1 ? "" : "s"}`;
|
|
21
|
-
})();
|
|
19
|
+
const GENERATED_AT_TOLERANCE_TEXT = DurationWords.format(GENERATED_AT_TOLERANCE);
|
|
22
20
|
/**
|
|
23
21
|
* Whether `generatedAt` is more than {@link GENERATED_AT_TOLERANCE} later than `now`. Exactly the tolerance is not
|
|
24
22
|
* future; one millisecond more is.
|
package/LintTable.js
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { GENERATED_AT_TOLERANCE_TEXT } from "./GeneratedAtFuture.js";
|
|
3
|
+
import { INTEGRITY_KEY, OKFIT_KEY_PREFIX } from "./Integrity.js";
|
|
4
|
+
|
|
5
|
+
// src/LintTable.ts
|
|
6
|
+
/**
|
|
7
|
+
* Severity a lint rule is configured to. `"info"` extends spec 4.2's
|
|
8
|
+
* `off | warn | error` so the D-34 `info` defaults are expressible.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
const LintLevel = Schema.Literals([
|
|
13
|
+
"off",
|
|
14
|
+
"info",
|
|
15
|
+
"warn",
|
|
16
|
+
"error"
|
|
17
|
+
]).annotate({
|
|
18
|
+
title: "Lint severity",
|
|
19
|
+
description: "off — never reported; info, warn, error — the diagnostic's rendered severity.",
|
|
20
|
+
"x-taplo": { docs: { enumValues: [
|
|
21
|
+
"Never reported.",
|
|
22
|
+
"Reported as information.",
|
|
23
|
+
"Reported as a warning.",
|
|
24
|
+
"Reported as an error."
|
|
25
|
+
] } }
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* The `[lint]` table: one optional `LintLevel` per lint code, snake_case (D-34).
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
const LintTable = Schema.Struct({
|
|
32
|
+
broken_links: Schema.optionalKey(LintLevel.annotate({
|
|
33
|
+
title: "broken-links",
|
|
34
|
+
description: "A link in a concept's body or a path field in its frontmatter does not resolve, or names a #heading its target concept does not have. Default \"warn\".",
|
|
35
|
+
default: "warn"
|
|
36
|
+
})),
|
|
37
|
+
missing_index: Schema.optionalKey(LintLevel.annotate({
|
|
38
|
+
title: "missing-index",
|
|
39
|
+
description: "A concept-holding directory has no index.md file in the bundle (an index.md that exists but fails to load is reported by its own error instead). Default \"warn\".",
|
|
40
|
+
default: "warn"
|
|
41
|
+
})),
|
|
42
|
+
unknown_type: Schema.optionalKey(LintLevel.annotate({
|
|
43
|
+
title: "unknown-type",
|
|
44
|
+
description: "A concept's type is not one of the config's declared [types.<Name>]. Default \"error\", off when no types are declared.",
|
|
45
|
+
default: "error"
|
|
46
|
+
})),
|
|
47
|
+
required_key_missing: Schema.optionalKey(LintLevel.annotate({
|
|
48
|
+
title: "required-key-missing",
|
|
49
|
+
description: "A concept is missing a frontmatter key its type or concepts.required requires. Default \"error\".",
|
|
50
|
+
default: "error"
|
|
51
|
+
})),
|
|
52
|
+
field_value_unknown: Schema.optionalKey(LintLevel.annotate({
|
|
53
|
+
title: "field-value-unknown",
|
|
54
|
+
description: "A frontmatter field's value is not one of its declared values. Default \"error\".",
|
|
55
|
+
default: "error"
|
|
56
|
+
})),
|
|
57
|
+
require_verified_unmet: Schema.optionalKey(LintLevel.annotate({
|
|
58
|
+
title: "require-verified-unmet",
|
|
59
|
+
description: "A concept whose type sets require_verified = true carries no verified entry and is not a draft. Default \"error\".",
|
|
60
|
+
default: "error"
|
|
61
|
+
})),
|
|
62
|
+
verified_before_change: Schema.optionalKey(LintLevel.annotate({
|
|
63
|
+
title: "verified-before-change",
|
|
64
|
+
description: "A concept has verification events, but the ones at or after generated.at give a lower trust tier than all of them would: the content changed after it was verified (OKF 0.3 §5.3, \"verified before the last change\"). Draft, deprecated and unknown-status concepts are exempt. Default \"warn\".",
|
|
65
|
+
default: "warn"
|
|
66
|
+
})),
|
|
67
|
+
family_invalid: Schema.optionalKey(LintLevel.annotate({
|
|
68
|
+
title: "family-invalid",
|
|
69
|
+
description: `okfit's own ${INTEGRITY_KEY} family does not match its shape. Default "error".`,
|
|
70
|
+
default: "error"
|
|
71
|
+
})),
|
|
72
|
+
computation_runtime_missing: Schema.optionalKey(LintLevel.annotate({
|
|
73
|
+
title: "computation-runtime-missing",
|
|
74
|
+
description: "A referenced computation's runtime is not available. Default \"error\".",
|
|
75
|
+
default: "error"
|
|
76
|
+
})),
|
|
77
|
+
footnote_source_unknown: Schema.optionalKey(LintLevel.annotate({
|
|
78
|
+
title: "footnote-source-unknown",
|
|
79
|
+
description: "A footnote's source does not resolve. Default \"warn\".",
|
|
80
|
+
default: "warn"
|
|
81
|
+
})),
|
|
82
|
+
footnote_undefined: Schema.optionalKey(LintLevel.annotate({
|
|
83
|
+
title: "footnote-undefined",
|
|
84
|
+
description: "A footnote reference has no matching definition line in the body. Default \"warn\".",
|
|
85
|
+
default: "warn"
|
|
86
|
+
})),
|
|
87
|
+
log_frontmatter: Schema.optionalKey(LintLevel.annotate({
|
|
88
|
+
title: "log-frontmatter",
|
|
89
|
+
description: "log.md carries frontmatter, which the spec reserves against. Default \"warn\".",
|
|
90
|
+
default: "warn"
|
|
91
|
+
})),
|
|
92
|
+
actor_prefix_unknown: Schema.optionalKey(LintLevel.annotate({
|
|
93
|
+
title: "actor-prefix-unknown",
|
|
94
|
+
description: "An actor in generated.by, verified[].by or sources[].author uses a scheme other than human, team, process or a producer shape; it is accepted and read as non-human. Default \"info\".",
|
|
95
|
+
default: "info"
|
|
96
|
+
})),
|
|
97
|
+
actor_email: Schema.optionalKey(LintLevel.annotate({
|
|
98
|
+
title: "actor-email",
|
|
99
|
+
description: `An actor in generated.by, verified[].by, ${INTEGRITY_KEY}.verified.by or [actors].humans contains "@", so an email address or domain is stored in the bundle or its config. Use a human:<id> without the domain. Default "warn".`,
|
|
100
|
+
default: "warn"
|
|
101
|
+
})),
|
|
102
|
+
verified_actor_unknown: Schema.optionalKey(LintLevel.annotate({
|
|
103
|
+
title: "verified-actor-unknown",
|
|
104
|
+
description: `A human verified[].by or ${INTEGRITY_KEY}.verified.by matches no entry of a non-empty [actors].humans. Silent when the list is empty. Default "warn".`,
|
|
105
|
+
default: "warn"
|
|
106
|
+
})),
|
|
107
|
+
legacy_timestamp: Schema.optionalKey(LintLevel.annotate({
|
|
108
|
+
title: "legacy-timestamp",
|
|
109
|
+
description: "A concept uses the legacy timestamp field instead of generated.at. Default \"info\".",
|
|
110
|
+
default: "info"
|
|
111
|
+
})),
|
|
112
|
+
config_unknown_key: Schema.optionalKey(LintLevel.annotate({
|
|
113
|
+
title: "config-unknown-key",
|
|
114
|
+
description: "The config file declares a top-level key the schema does not recognize. Default \"warn\".",
|
|
115
|
+
default: "warn"
|
|
116
|
+
})),
|
|
117
|
+
config_okf_version_stale: Schema.optionalKey(LintLevel.annotate({
|
|
118
|
+
title: "config-okf-version-stale",
|
|
119
|
+
description: "The config sets okf_version and the bundle-root index.md declares a different one; the index decides how the bundle reads, so the config value is stale. Default \"warn\".",
|
|
120
|
+
default: "warn"
|
|
121
|
+
})),
|
|
122
|
+
stale: Schema.optionalKey(LintLevel.annotate({
|
|
123
|
+
title: "stale",
|
|
124
|
+
description: "A concept is past its stale_after instant. Default \"info\".",
|
|
125
|
+
default: "info"
|
|
126
|
+
})),
|
|
127
|
+
walk_unreadable: Schema.optionalKey(LintLevel.annotate({
|
|
128
|
+
title: "walk-unreadable",
|
|
129
|
+
description: "A directory in the bundle could not be read while walking. Default \"warn\".",
|
|
130
|
+
default: "warn"
|
|
131
|
+
})),
|
|
132
|
+
read_changed: Schema.optionalKey(LintLevel.annotate({
|
|
133
|
+
title: "read-changed",
|
|
134
|
+
description: "A file in the bundle was replaced while it was being read, so it was left out of this load; reading again may succeed. Output derived from the changed file is held back: its own stamp, and the indexes and log that would list it. Default \"warn\".",
|
|
135
|
+
default: "warn"
|
|
136
|
+
})),
|
|
137
|
+
frontmatter_missing: Schema.optionalKey(LintLevel.annotate({
|
|
138
|
+
title: "frontmatter-missing",
|
|
139
|
+
description: "A .md file other than index.md or log.md has no frontmatter, so it is not a concept and is skipped (OKF 0.3 §3.2). Default \"warn\".",
|
|
140
|
+
default: "warn"
|
|
141
|
+
})),
|
|
142
|
+
type_missing: Schema.optionalKey(LintLevel.annotate({
|
|
143
|
+
title: "type-missing",
|
|
144
|
+
description: "A .md file's frontmatter has no non-empty string type, so it is not a concept and is skipped (OKF 0.3 §3.2). Default \"warn\".",
|
|
145
|
+
default: "warn"
|
|
146
|
+
})),
|
|
147
|
+
symlink_escape: Schema.optionalKey(LintLevel.annotate({
|
|
148
|
+
title: "symlink-escape",
|
|
149
|
+
description: "A file or directory in the bundle is a symbolic link whose target lies outside the bundle root or cannot be resolved (a missing target, a link loop, an unreadable target); it is not read, nothing under it is walked, and it is not part of the bundle. Pruned directory names such as node_modules are not checked, and hidden ones only when hidden files are included (OKF 0.3 §3.2). Default \"warn\".",
|
|
150
|
+
default: "warn"
|
|
151
|
+
})),
|
|
152
|
+
generated_at_drift: Schema.optionalKey(LintLevel.annotate({
|
|
153
|
+
title: "generated-at-drift",
|
|
154
|
+
description: "A committed concept's generated.at is missing or does not match its last body-changing commit, and is not otherwise authoritative (issue #19: a stamp recorded during the unchanged-body run survives a squash/rebase merge). Default \"warn\".",
|
|
155
|
+
default: "warn"
|
|
156
|
+
})),
|
|
157
|
+
verified_drift: Schema.optionalKey(LintLevel.annotate({
|
|
158
|
+
title: "verified-drift",
|
|
159
|
+
description: `A concept's latest human verification no longer covers its current content: the body or authored frontmatter changed since, the binding (${INTEGRITY_KEY}.verified) is missing, a later human entry is unbound, or the bound verifier is not in a non-empty [actors].humans. Draft and deprecated concepts are exempt, since okfit verify refuses them. A signal to re-verify, not a gate. Default "warn".`,
|
|
160
|
+
default: "warn"
|
|
161
|
+
})),
|
|
162
|
+
status_missing: Schema.optionalKey(LintLevel.annotate({
|
|
163
|
+
title: "status-missing",
|
|
164
|
+
description: "A concept carries neither status nor verified, so it silently reads as stable (issue #110). Off by default because the spec reads an absent status as stable; the software-project profile raises it to \"warn\".",
|
|
165
|
+
default: "off"
|
|
166
|
+
})),
|
|
167
|
+
source_resource_missing: Schema.optionalKey(LintLevel.annotate({
|
|
168
|
+
title: "source-resource-missing",
|
|
169
|
+
description: "A resource or sources[].resource path resolves neither in the bundle nor on disk relative to the concept (issue #106). Default \"warn\".",
|
|
170
|
+
default: "warn"
|
|
171
|
+
})),
|
|
172
|
+
resource_ignored: Schema.optionalKey(LintLevel.annotate({
|
|
173
|
+
title: "resource-ignored",
|
|
174
|
+
description: "A resource or sources[].resource path names a file that exists locally but is gitignored, so every other checkout sees it missing (issue #279). Skipped outside a git repository and under --skip-provenance. Default \"error\".",
|
|
175
|
+
default: "error"
|
|
176
|
+
})),
|
|
177
|
+
resource_untracked: Schema.optionalKey(LintLevel.annotate({
|
|
178
|
+
title: "resource-untracked",
|
|
179
|
+
description: "A resource or sources[].resource path names a file that exists locally but git does not track yet; not raised once the file is staged (issue #279). Skipped outside a git repository and under --skip-provenance. Default \"warn\".",
|
|
180
|
+
default: "warn"
|
|
181
|
+
})),
|
|
182
|
+
resource_outside_project: Schema.optionalKey(LintLevel.annotate({
|
|
183
|
+
title: "resource-outside-project",
|
|
184
|
+
description: "A resource value resolves outside the project root, directly or through a symlink, so okfit never reads, stats or asks git about the target (okfit's repository check, not OKF). Default \"info\".",
|
|
185
|
+
default: "info"
|
|
186
|
+
})),
|
|
187
|
+
superseded_by_orphan: Schema.optionalKey(LintLevel.annotate({
|
|
188
|
+
title: "superseded-by-orphan",
|
|
189
|
+
description: "A concept carries superseded_by but its status is not deprecated; superseded_by has a meaning only with status: deprecated (OKF 0.3 §5.4). Default \"warn\".",
|
|
190
|
+
default: "warn"
|
|
191
|
+
})),
|
|
192
|
+
superseded_by_unresolved: Schema.optionalKey(LintLevel.annotate({
|
|
193
|
+
title: "superseded-by-unresolved",
|
|
194
|
+
description: "A deprecated concept's superseded_by resolves to an asset, an external value or the concept itself rather than a replacement concept (OKF 0.3 §5.4). A missing target is reported by broken-links. Default \"warn\".",
|
|
195
|
+
default: "warn"
|
|
196
|
+
})),
|
|
197
|
+
generated_missing: Schema.optionalKey(LintLevel.annotate({
|
|
198
|
+
title: "generated-missing",
|
|
199
|
+
description: "A concept has no readable generated block (none, one written without a readable generated.by, or only a legacy timestamp) while actors.agent is configured; okfit sync creates one that is unwritten or a plain null, and the others need a hand edit (issue #73). Default \"warn\"; silent when actors.agent is unset.",
|
|
200
|
+
default: "warn"
|
|
201
|
+
})),
|
|
202
|
+
computation_missing: Schema.optionalKey(LintLevel.annotate({
|
|
203
|
+
title: "computation-missing",
|
|
204
|
+
description: "An Attested Computation has no computation: no computation key, and nothing in its Computation section that the bundle's OKF version reads as one (under 0.3 the first fenced block, §10.3; under 0.2 the text of a top-level section), so it is not attestable. Default \"warn\".",
|
|
205
|
+
default: "warn"
|
|
206
|
+
})),
|
|
207
|
+
generated_at_future: Schema.optionalKey(LintLevel.annotate({
|
|
208
|
+
title: "generated-at-future",
|
|
209
|
+
description: `A concept's generated.at is more than ${GENERATED_AT_TOLERANCE_TEXT} later than now, so no verification can count yet (OKF 0.3 §5.3) and okfit verify refuses it; run okfit sync, which re-stamps it to now (commit any edits to it first). Default "warn".`,
|
|
210
|
+
default: "warn"
|
|
211
|
+
})),
|
|
212
|
+
reference_not_mounted: Schema.optionalKey(LintLevel.annotate({
|
|
213
|
+
title: "reference-not-mounted",
|
|
214
|
+
description: "A named reference resolves to a declared repository, but no checkout of it is present here, so the target is not checked. Default \"info\".",
|
|
215
|
+
default: "info"
|
|
216
|
+
})),
|
|
217
|
+
reference_missing: Schema.optionalKey(LintLevel.annotate({
|
|
218
|
+
title: "reference-missing",
|
|
219
|
+
description: "A named reference resolves to a mounted checkout or the consumer's own repository, but the path it names does not exist there. Default \"warn\".",
|
|
220
|
+
default: "warn"
|
|
221
|
+
})),
|
|
222
|
+
reference_undeclared: Schema.optionalKey(LintLevel.annotate({
|
|
223
|
+
title: "reference-undeclared",
|
|
224
|
+
description: "A link uses a name:path form whose name no [references.<name>] declares, so it is read as an ordinary external link. Default \"warn\".",
|
|
225
|
+
default: "warn"
|
|
226
|
+
})),
|
|
227
|
+
reference_local_only: Schema.optionalKey(LintLevel.annotate({
|
|
228
|
+
title: "reference-local-only",
|
|
229
|
+
description: "A named reference resolves only through a checkout declared in the ignored local config file, so a clean clone cannot check it. Default \"info\".",
|
|
230
|
+
default: "info"
|
|
231
|
+
})),
|
|
232
|
+
config_misplaced_key: Schema.optionalKey(LintLevel.annotate({
|
|
233
|
+
title: "config-misplaced-key",
|
|
234
|
+
description: "A config key sits in the wrong file: a consumer-only table such as [checkouts] in a mounted bundle's own okfit.toml. The key is ignored and the message names the right file. Default \"warn\".",
|
|
235
|
+
default: "warn"
|
|
236
|
+
})),
|
|
237
|
+
config_local_tracked: Schema.optionalKey(LintLevel.annotate({
|
|
238
|
+
title: "config-local-tracked",
|
|
239
|
+
description: "The local config file (okfit.local.toml and its two other spellings) is tracked by git, so it is no longer private to one checkout. Default \"warn\".",
|
|
240
|
+
default: "warn"
|
|
241
|
+
})),
|
|
242
|
+
bundle_config_invalid: Schema.optionalKey(LintLevel.annotate({
|
|
243
|
+
title: "bundle-config-invalid",
|
|
244
|
+
description: "A mounted bundle's own okfit.toml is missing or fails to decode, or a checkout's bundle (or its okfit.toml) is a link that leaves the checkout, so the bundle cannot be validated. Default \"error\".",
|
|
245
|
+
default: "error"
|
|
246
|
+
})),
|
|
247
|
+
publication_drift: Schema.optionalKey(LintLevel.annotate({
|
|
248
|
+
title: "publication-drift",
|
|
249
|
+
description: `A Publication's ${OKFIT_KEY_PREFIX}renders[].body is missing or no longer matches the current body of the concept it names, so the published page may restate stale facts. Default "warn".`,
|
|
250
|
+
default: "warn"
|
|
251
|
+
})),
|
|
252
|
+
publication_orphan: Schema.optionalKey(LintLevel.annotate({
|
|
253
|
+
title: "publication-orphan",
|
|
254
|
+
description: `A Publication's ${OKFIT_KEY_PREFIX}surface or ${OKFIT_KEY_PREFIX}renders[].path does not resolve to a concept, or ${OKFIT_KEY_PREFIX}renders is not a list of { path, body } entries. Default "error".`,
|
|
255
|
+
default: "error"
|
|
256
|
+
})),
|
|
257
|
+
surface_unmatched: Schema.optionalKey(LintLevel.annotate({
|
|
258
|
+
title: "surface-unmatched",
|
|
259
|
+
description: "A Surface's resource glob matches no file or directory; legitimate in a brand-new monorepo, so it only warns. Default \"warn\".",
|
|
260
|
+
default: "warn"
|
|
261
|
+
})),
|
|
262
|
+
index_metadata_invalid: Schema.optionalKey(LintLevel.annotate({
|
|
263
|
+
title: "index-metadata-invalid",
|
|
264
|
+
description: "The bundle-root index.md frontmatter carries an okf_version that is not a quoted <major>.<minor> string, or a title, description or license that is not a string; the value is read best-effort. Default \"warn\".",
|
|
265
|
+
default: "warn"
|
|
266
|
+
})),
|
|
267
|
+
entry_ignored: Schema.optionalKey(LintLevel.annotate({
|
|
268
|
+
title: "entry-ignored",
|
|
269
|
+
description: "An entry or mapping the spec defines (a sources, verified or parameters entry, generated) lacks a REQUIRED key or has one okfit cannot read, so it is ignored (OKF 0.3 §11.2 rule 3). Default \"warn\".",
|
|
270
|
+
default: "warn"
|
|
271
|
+
})),
|
|
272
|
+
value_malformed: Schema.optionalKey(LintLevel.annotate({
|
|
273
|
+
title: "value-malformed",
|
|
274
|
+
description: "A defined value okfit cannot read in its defined shape (wrong type, unparsable timestamp, malformed optional key) is read as absent; a malformed stale_after reads as malformed, never fresh (OKF 0.3 §5.5, §11.2). Default \"warn\".",
|
|
275
|
+
default: "warn"
|
|
276
|
+
})),
|
|
277
|
+
value_unknown: Schema.optionalKey(LintLevel.annotate({
|
|
278
|
+
title: "value-unknown",
|
|
279
|
+
description: "A defined key carries a value outside its vocabulary (today: status); the value is kept and the concept is not read as current knowledge (OKF 0.3 §5.4, §11.2 rule 4). Default \"warn\".",
|
|
280
|
+
default: "warn"
|
|
281
|
+
})),
|
|
282
|
+
non_concept_unlisted: Schema.optionalKey(LintLevel.annotate({
|
|
283
|
+
title: "non-concept-unlisted",
|
|
284
|
+
description: "A .md file is not a concept (no frontmatter, or no type) and matches no glob in [bundle] non_concepts. An okfit opinion, not OKF conformance (§3.2 allows such files). Silent when non_concepts is absent. Default \"warn\".",
|
|
285
|
+
default: "warn"
|
|
286
|
+
}))
|
|
287
|
+
}).annotate({
|
|
288
|
+
title: "Lint severities",
|
|
289
|
+
description: "Per-code severity overrides. Any key omitted keeps its default."
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
export { LintLevel, LintTable };
|