docs: publish JSON schema on golangci-lint.run (#4488)

This commit is contained in:
Ludovic Fernandez 2024-03-13 00:19:26 +01:00 committed by GitHub
parent 0554536620
commit c047ed6005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 40 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1 @@
/jsonschema/

View File

@ -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"]],