docs: publish JSON schema on golangci-lint.run (#4488)
This commit is contained in:
parent
0554536620
commit
c047ed6005
4
Makefile
4
Makefile
@ -88,6 +88,10 @@ go.mod: FORCE
|
||||
go mod verify
|
||||
go.sum: go.mod
|
||||
|
||||
website_copy_jsonschema:
|
||||
cp -r ./jsonschema ./docs/static
|
||||
.PHONY: website_copy_jsonschema
|
||||
|
||||
website_expand_templates:
|
||||
go run ./scripts/website/expand_templates/
|
||||
.PHONY: website_expand_templates
|
||||
|
@ -51,7 +51,7 @@
|
||||
"gatsby-plugin-netlify": "^5.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "make -C .. website_expand_templates && gatsby build",
|
||||
"build": "make -C .. website_expand_templates website_copy_jsonschema && gatsby build",
|
||||
"start": "gatsby develop",
|
||||
"serve": "gatsby serve",
|
||||
"clean": "gatsby clean"
|
||||
|
1
docs/static/.gitignore
vendored
Normal file
1
docs/static/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/jsonschema/
|
@ -1308,6 +1308,7 @@
|
||||
},
|
||||
"goheader": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"allOf": [
|
||||
{
|
||||
"properties": {
|
||||
@ -1393,45 +1394,6 @@
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mnd": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ignored-files": {
|
||||
"description": "Comma-separated list of file patterns to exclude from the analysis.",
|
||||
"examples": ["magic1_.*.go"],
|
||||
"type": "string"
|
||||
},
|
||||
"ignored-functions": {
|
||||
"description": "Comma-separated list of function patterns to exclude from the analysis.",
|
||||
"examples": ["math.*,http.StatusText,make"],
|
||||
"type": "string"
|
||||
},
|
||||
"ignored-numbers": {
|
||||
"description": "Comma-separated list of numbers to exclude from the analysis.",
|
||||
"examples": ["1000,1234_567_890,3.14159264"],
|
||||
"type": "string"
|
||||
},
|
||||
"checks": {
|
||||
"description": "The list of enabled checks.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"enum": [
|
||||
"argument",
|
||||
"case",
|
||||
"condition",
|
||||
"operation",
|
||||
"return",
|
||||
"assign"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ignored-files": {
|
||||
"description": "List of file patterns to exclude from analysis.",
|
||||
"examples": [["magic1_.*.go"]],
|
||||
|
Loading…
x
Reference in New Issue
Block a user