Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"chisel-slices.json",
"cloud-sdk-pipeline-config-schema.json",
"cloudify.json",
"codeclimate.json",
"codeship-services.json",
"codeship-steps.json",
"commitlintrc.json",
Expand Down
47 changes: 30 additions & 17 deletions src/schemas/json/codeclimate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/codeclimate.json",
"$comment": "https://docs.codeclimate.com/docs/advanced-configuration",
"definitions": {
"enabled": {
Expand All @@ -12,17 +13,19 @@
}
}
},
"config": {
"title": "Config",
"type": "object"
},
"threshold": {
"title": "Threshold",
"type": ["integer", "null"]
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"description": "Configuration file as an alternative for configuring your repository in the settings page.",
"id": "https://json.schemastore.org/codeclimate.json",
"properties": {
"version": {
"title": "Version",
Expand Down Expand Up @@ -54,10 +57,11 @@
"properties": {
"argument-count": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Argument Count",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -69,10 +73,11 @@
},
"complex-logic": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Complex Logic",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -84,10 +89,11 @@
},
"file-lines": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "File Lines",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -99,10 +105,11 @@
},
"method-complexity": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Method Complexity",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -114,10 +121,11 @@
},
"method-count": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Method Count",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -129,10 +137,11 @@
},
"method-lines": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Method Lines",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -144,10 +153,11 @@
},
"nested-control-flow": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Nested Control Flow",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -159,10 +169,11 @@
},
"return-statements": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Return Statements",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold",
Expand All @@ -174,10 +185,11 @@
},
"similar-code": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Similar Code",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold"
Expand All @@ -188,10 +200,11 @@
},
"identical-code": {
"$ref": "#/definitions/enabled",
"type": "object",
"title": "Identical Code",
"properties": {
"config": {
"$ref": "#/definitions/config",
"type": "object",
"properties": {
"threshold": {
"$ref": "#/definitions/threshold"
Expand Down