-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistry.js
More file actions
51 lines (46 loc) · 1.53 KB
/
registry.js
File metadata and controls
51 lines (46 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Registry of built-in checks and file sources.
*
* linter-config.json references checks and file sources
* by their export name (e.g. "CrlfCheck") and we resolve them here.
*/
// --- checks ---
import { CrlfCheck } from "./checks/crlf-check.js";
import { LinelintCheck } from "./checks/linelint-check.js";
import { ClangFormatCheck } from "./checks/clang-format-check.js";
import { PairedFilesCheck } from "./checks/paired-files-check.js";
import { CodegenCheck } from "./checks/codegen-check.js";
import { AiPromptCheck } from "./checks/ai-prompt-check.js";
import { RegexCheck } from "./checks/regex-check.js";
import { FirecrawlCheck } from "./checks/firecrawl-check.js";
import { AgentCheck } from "./checks/agent-check.js";
import { CompositeCheck } from "./checks/composite-check.js";
import { TscCheck } from "./checks/tsc-check.js";
import { AlwaysFailCheck } from "./checks/always-fail-check.js";
// --- file sources ---
import { AllFilesSource } from "./file-sources/all-files-source.js";
import { StagedFilesSource } from "./file-sources/staged-files-source.js";
import { DiffBaseSource } from "./file-sources/diff-base-source.js";
export const builtinChecks = {
CrlfCheck,
LinelintCheck,
ClangFormatCheck,
PairedFilesCheck,
CodegenCheck,
AiPromptCheck,
RegexCheck,
FirecrawlCheck,
AgentCheck,
CompositeCheck,
TscCheck,
AlwaysFailCheck,
};
export const builtinFileSources = {
AllFilesSource,
StagedFilesSource,
DiffBaseSource,
};
export const builtinRegistry = {
...builtinChecks,
...builtinFileSources,
};