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 mod verify
|
||||||
go.sum: go.mod
|
go.sum: go.mod
|
||||||
|
|
||||||
|
website_copy_jsonschema:
|
||||||
|
cp -r ./jsonschema ./docs/static
|
||||||
|
.PHONY: website_copy_jsonschema
|
||||||
|
|
||||||
website_expand_templates:
|
website_expand_templates:
|
||||||
go run ./scripts/website/expand_templates/
|
go run ./scripts/website/expand_templates/
|
||||||
.PHONY: website_expand_templates
|
.PHONY: website_expand_templates
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
"gatsby-plugin-netlify": "^5.1.0"
|
"gatsby-plugin-netlify": "^5.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "make -C .. website_expand_templates && gatsby build",
|
"build": "make -C .. website_expand_templates website_copy_jsonschema && gatsby build",
|
||||||
"start": "gatsby develop",
|
"start": "gatsby develop",
|
||||||
"serve": "gatsby serve",
|
"serve": "gatsby serve",
|
||||||
"clean": "gatsby clean"
|
"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": {
|
"goheader": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1393,45 +1394,6 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"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": {
|
"ignored-files": {
|
||||||
"description": "List of file patterns to exclude from analysis.",
|
"description": "List of file patterns to exclude from analysis.",
|
||||||
"examples": [["magic1_.*.go"]],
|
"examples": [["magic1_.*.go"]],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user