Skip to content

Commit 0dfe60d

Browse files
committed
Add Vacuum v0.16.5
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 72a8ee3 commit 0dfe60d

File tree

6 files changed

+644
-0
lines changed

6 files changed

+644
-0
lines changed

DEPENDENCIES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fhir https://github.com/FHIR/packages b401fbd45566006a21243a9b88f1391e32b1ed40
5252
asyncapi https://github.com/asyncapi/spec-json-schemas v6.8.1
5353
ninjs https://github.com/iptc/newsinjson v3.0.1
5454
apis-json https://github.com/apis-json/api-json 0f64ef6a17a01f54d6bf8e67e001aec9d4bd6b27
55+
vacuum/v0.16.5 https://github.com/daveshanley/vacuum v0.16.5
5556
vacuum/v0.16.4 https://github.com/daveshanley/vacuum v0.16.4
5657
vacuum/v0.16.3 https://github.com/daveshanley/vacuum v0.16.3
5758
vacuum/v0.16.3 https://github.com/daveshanley/vacuum v0.16.3

configuration.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@
453453
"base": "https://github.com/apis-json/api-json/blob/develop/spec/",
454454
"path": "./vendor/apis-json/spec"
455455
},
456+
"pb33f/vacuum/v0.16.5": {
457+
"base": "https://quobix.com/vacuum/schemas",
458+
"path": "./vendor/vacuum/v0.16.5"
459+
},
456460
"pb33f/vacuum/v0.16.4": {
457461
"base": "https://quobix.com/vacuum/schemas",
458462
"path": "./vendor/vacuum/v0.16.4"

vendor/vacuum/v0.16.5.mask

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
benchmarks/
2+
bin/
3+
cmd/
4+
cui/
5+
functions/
6+
html-report/
7+
language-server/
8+
model/
9+
motor/
10+
npm-install/
11+
parser/
12+
plugin/
13+
statistics/
14+
utils/
15+
vacuum-report/
16+
.dockerignore
17+
.goreleaser.yaml
18+
.pre-commit-hooks.yaml
19+
dashboard-screenshot.png
20+
docker-entrypoint.sh
21+
Dockerfile
22+
go.mod
23+
go.sum
24+
html-report-screenshot.png
25+
logo.png
26+
Makefile
27+
package-lock.json
28+
package.json
29+
README.md
30+
vacuum.go
31+
rulesets/examples
32+
rulesets/owasp_ruleset_functions.go
33+
rulesets/remote_ruleset.go
34+
rulesets/remote_ruleset_test.go
35+
rulesets/rule_fixes.go
36+
rulesets/ruleset_functions.go
37+
rulesets/ruleset_functions_test.go
38+
rulesets/rulesets.go
39+
rulesets/rulesets_test.go

vendor/vacuum/v0.16.5/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022-2023 Dave Shanley / Quobix / Princess Beef Heavy Industries, LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://quobix.com/vacuum/schemas/rule.schema.json",
4+
"type": "object",
5+
"additionalProperties": false,
6+
"properties": {
7+
"description": {
8+
"type": "string"
9+
},
10+
"howToFix": {
11+
"type": "string"
12+
},
13+
"id": {
14+
"type": "string"
15+
},
16+
"category": {
17+
"oneOf": [
18+
{
19+
"type": "string"
20+
},
21+
{
22+
"type": "object",
23+
"properties": {
24+
"id": {
25+
"type": "string"
26+
},
27+
"name": {
28+
"type": "string"
29+
},
30+
"description": {
31+
"type": "string"
32+
}
33+
}
34+
}
35+
]
36+
},
37+
"documentationUrl": {
38+
"type": "string",
39+
"format": "url",
40+
"errorMessage": "must be a valid URL"
41+
},
42+
"recommended": {
43+
"type": "boolean"
44+
},
45+
"given": {
46+
"oneOf": [
47+
{
48+
"type": "string"
49+
},
50+
{
51+
"type": "array",
52+
"items": {
53+
"type": "string"
54+
}
55+
}
56+
]
57+
},
58+
"resolved": {
59+
"type": "boolean"
60+
},
61+
"severity": {
62+
"$ref": "#/$defs/Severity"
63+
},
64+
"message": {
65+
"type": "string"
66+
},
67+
"tags": {
68+
"items": {
69+
"type": "string"
70+
},
71+
"type": "array"
72+
},
73+
"formats": {
74+
"$ref": "#/$defs/Formats"
75+
},
76+
"then": {
77+
"anyOf": [
78+
{
79+
"$ref": "#/$defs/Then"
80+
},
81+
{
82+
"items": {
83+
"$ref": "#/$defs/Then"
84+
},
85+
"type": "array"
86+
}
87+
]
88+
},
89+
"type": {
90+
"enum": ["style", "validation"],
91+
"type": "string",
92+
"errorMessage": "allowed types are \"style\" and \"validation\""
93+
}
94+
},
95+
"required": ["given", "then"],
96+
"$defs": {
97+
"Format": {
98+
"$anchor": "format",
99+
"spectral-runtime": "spectral-format",
100+
"errorMessage": "must be a valid format"
101+
},
102+
"DiagnosticSeverity": {
103+
"enum": [-1, 0, 1, 2, 3]
104+
},
105+
"Functions": {
106+
"$anchor": "functions",
107+
"type": "array",
108+
"items": {
109+
"type": "string"
110+
}
111+
},
112+
"Then": {
113+
"type": "object",
114+
"allOf": [
115+
{
116+
"properties": {
117+
"field": {
118+
"type": "string"
119+
}
120+
}
121+
},
122+
{
123+
"type": "object",
124+
"spectral-runtime": "ruleset-function",
125+
"required": ["function"]
126+
}
127+
]
128+
},
129+
"Formats": {
130+
"$anchor": "formats",
131+
"type": "array",
132+
"items": {
133+
"$ref": "#/$defs/Format"
134+
},
135+
"errorMessage": "must be an array of formats"
136+
},
137+
"HumanReadableSeverity": {
138+
"enum": ["error", "warn", "info", "hint", "off"]
139+
},
140+
"Severity": {
141+
"$anchor": "severity",
142+
"oneOf": [
143+
{
144+
"$ref": "#/$defs/DiagnosticSeverity"
145+
},
146+
{
147+
"$ref": "#/$defs/HumanReadableSeverity"
148+
}
149+
],
150+
"errorMessage": "the value has to be one of: 0, 1, 2, 3 or \"error\", \"warn\", \"info\", \"hint\", \"off\""
151+
}
152+
}
153+
}

0 commit comments

Comments
 (0)