Skip to content

Commit c047ed6

Browse files
authored
docs: publish JSON schema on golangci-lint.run (golangci#4488)
1 parent 0554536 commit c047ed6

File tree

4 files changed

+7
-40
lines changed

4 files changed

+7
-40
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ go.mod: FORCE
8888
go mod verify
8989
go.sum: go.mod
9090

91+
website_copy_jsonschema:
92+
cp -r ./jsonschema ./docs/static
93+
.PHONY: website_copy_jsonschema
94+
9195
website_expand_templates:
9296
go run ./scripts/website/expand_templates/
9397
.PHONY: website_expand_templates

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"gatsby-plugin-netlify": "^5.1.0"
5252
},
5353
"scripts": {
54-
"build": "make -C .. website_expand_templates && gatsby build",
54+
"build": "make -C .. website_expand_templates website_copy_jsonschema && gatsby build",
5555
"start": "gatsby develop",
5656
"serve": "gatsby serve",
5757
"clean": "gatsby clean"

docs/static/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/jsonschema/

jsonschema/golangci.next.jsonschema.json

+1-39
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@
13081308
},
13091309
"goheader": {
13101310
"type": "object",
1311+
"additionalProperties": false,
13111312
"allOf": [
13121313
{
13131314
"properties": {
@@ -1393,45 +1394,6 @@
13931394
"type": "object",
13941395
"additionalProperties": false,
13951396
"properties": {
1396-
"settings": {
1397-
"type": "object",
1398-
"properties": {
1399-
"mnd": {
1400-
"type": "object",
1401-
"properties": {
1402-
"ignored-files": {
1403-
"description": "Comma-separated list of file patterns to exclude from the analysis.",
1404-
"examples": ["magic1_.*.go"],
1405-
"type": "string"
1406-
},
1407-
"ignored-functions": {
1408-
"description": "Comma-separated list of function patterns to exclude from the analysis.",
1409-
"examples": ["math.*,http.StatusText,make"],
1410-
"type": "string"
1411-
},
1412-
"ignored-numbers": {
1413-
"description": "Comma-separated list of numbers to exclude from the analysis.",
1414-
"examples": ["1000,1234_567_890,3.14159264"],
1415-
"type": "string"
1416-
},
1417-
"checks": {
1418-
"description": "The list of enabled checks.",
1419-
"type": "array",
1420-
"items": {
1421-
"enum": [
1422-
"argument",
1423-
"case",
1424-
"condition",
1425-
"operation",
1426-
"return",
1427-
"assign"
1428-
]
1429-
}
1430-
}
1431-
}
1432-
}
1433-
}
1434-
},
14351397
"ignored-files": {
14361398
"description": "List of file patterns to exclude from analysis.",
14371399
"examples": [["magic1_.*.go"]],

0 commit comments

Comments
 (0)