-
Notifications
You must be signed in to change notification settings - Fork 0
/
refactoredrc.schema.json
51 lines (51 loc) · 1.49 KB
/
refactoredrc.schema.json
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/product.schema.json",
"title": "Schema for .refactoredrc",
"type": "object",
"properties": {
"tasks": {
"description": "Array of refactoring tasks",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the refactoring task",
"type": "string"
},
"filePatterns": {
"description": "Glob patterns to include",
"type": "array",
"items": {
"type": "string"
}
},
"ignorePatterns": {
"description": "Glob patterns to exclude",
"type": "array",
"items": {
"type": "string"
}
},
"test": {
"description": "Set of rules to apply to decide whether this file has been refactored.",
"type": "object",
"properties": {
"file-includes": {
"description": "This file should include the following string",
"type": "string"
},
"file-not-includes": {
"description": "This file should not include the following string",
"type": "string"
}
}
}
},
"required": ["name", "filePatterns", "ignorePatterns", "test"]
}
}
},
"required": ["tasks"]
}