-
Notifications
You must be signed in to change notification settings - Fork 84
/
.cflintrc.schema.json
126 lines (126 loc) · 4.54 KB
/
.cflintrc.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"pluginMessage": {
"title": "Plugin Message",
"type": "object",
"properties": {
"code": {
"title": "Code",
"description": "The code that represents the rule or type of issue",
"type": "string"
},
"messageText": {
"title": "Message Text",
"description": "The message text to be displayed for this issue",
"type": "string"
},
"severity": {
"title": "Severity",
"description": "The severity level of the issue",
"type": "string",
"enum": [
"FATAL",
"CRITICAL",
"ERROR",
"WARNING",
"CAUTION",
"INFO",
"COSMETIC"
]
}
}
}
},
"title": "Rules Configuration",
"description": "A set of rules configuration options for CFLint",
"type": "object",
"properties": {
"rule": {
"title": "Rules",
"description": "Allows you to add a plugin for this folder that is not listed in the global configuration",
"type": "array",
"minItems": 0,
"items": {
"title": "Rule",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"className": {
"title": "Class Name",
"type": "string"
},
"message": {
"title": "Messages",
"type": "array",
"minItems": 0,
"items": {
"$ref": "#/definitions/pluginMessage"
}
},
"parameter": {
"title": "Parameters",
"type": "array",
"minItems": 0,
"items": {
"title": "Parameter",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"value": {
"title": "Value"
}
}
}
}
}
},
"default": []
},
"excludes": {
"title": "Excludes",
"description": "An array of objects describing rules you want to be excluded from this directory and its children",
"type": "array",
"minItems": 0,
"items": {
"$ref": "#/definitions/pluginMessage"
},
"default": []
},
"includes": {
"title": "Includes",
"description": "An array of objects describing rules you want to be applied for this directory and its children",
"type": "array",
"minItems": 0,
"items": {
"$ref": "#/definitions/pluginMessage"
},
"default": []
},
"inheritParent": {
"title": "Inherit Parent",
"description": "Configures if the rules set in the global or any parent configuration should be inherited as a base set of rules",
"type": "boolean",
"default": true
},
"parameters": {
"title": "Parameters",
"description": "The set of parameters to configure, where the keys are denoted as RuleName.parameterName",
"type": "object",
"patternProperties": {
"^([\\w])+\\.([\\w])+$": {
"title": "Parameter",
"description": "The parameter for a particular rule whose value will be overridden. Denoted as RuleName.parameterName.",
"type": "string"
}
},
"additionalProperties": false
}
}
}