eslint-plugin-json-schema-validator
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -1,2 +0,2 @@ | ||
import type Ajv from "ajv"; | ||
import type Ajv from "../ajv"; | ||
export declare function applyLimitNumberKeywords(ajv: Ajv): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.applyLimitNumberKeywords = void 0; | ||
const ajv_1 = require("ajv"); | ||
const ajv_1 = require("../ajv"); | ||
const ops = { | ||
@@ -6,0 +6,0 @@ GT: ajv_1._ `>`, |
@@ -1,2 +0,5 @@ | ||
import Ajv from "ajv"; | ||
import type { CodeKeywordDefinition, DefinedError, ErrorObject, SchemaObject, ValidateFunction } from "ajv"; | ||
import Ajv, { _, str } from "ajv"; | ||
export default Ajv; | ||
export { _, str }; | ||
export type { CodeKeywordDefinition, DefinedError, ErrorObject, SchemaObject, ValidateFunction, }; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ajv_1 = __importDefault(require("ajv")); | ||
exports.str = exports._ = void 0; | ||
const ajv_1 = __importStar(require("ajv")); | ||
Object.defineProperty(exports, "_", { enumerable: true, get: function () { return ajv_1._; } }); | ||
Object.defineProperty(exports, "str", { enumerable: true, get: function () { return ajv_1.str; } }); | ||
exports.default = ajv_1.default; |
import type { RuleContext } from "../types"; | ||
import type { SchemaObject } from "ajv"; | ||
import type { SchemaObject } from "./types"; | ||
export declare function urlToSchemastoreFilePath(url: string): string | null; | ||
export declare function loadSchema(schemaPath: string, context: RuleContext): null | SchemaObject; |
@@ -1,2 +0,2 @@ | ||
import type { SchemaObject } from "ajv"; | ||
import type { SchemaObject } from "./ajv"; | ||
import type { RuleContext } from "../types"; | ||
@@ -3,0 +3,0 @@ export declare type Validator = (data: unknown) => ValidateError[]; |
{ | ||
"name": "eslint-plugin-json-schema-validator", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "ESLint plugin that validates data using JSON Schema Validator.", | ||
@@ -84,3 +84,3 @@ "main": "lib/index.js", | ||
"eslint-plugin-eslint-plugin": "^2.3.0", | ||
"eslint-plugin-json-schema-validator": "^0.2.0", | ||
"eslint-plugin-json-schema-validator": "^0.3.0", | ||
"eslint-plugin-jsonc": "^0.9.0", | ||
@@ -87,0 +87,0 @@ "eslint-plugin-markdown": "^2.0.0-0", |
@@ -1,1 +0,1 @@ | ||
{"title":"JSON schema for CircleCI configuration files","$schema":"http://json-schema.org/draft-04/schema#","definitions":{"logical":{"oneOf":[{"type":["string","boolean","integer","number"]},{"type":"object","additionalProperties":false,"minProperties":1,"maxProperties":1,"properties":{"and":{"type":"array","items":{"$ref":"#/definitions/logical"}},"or":{"type":"array","items":{"$ref":"#/definitions/logical"}},"not":{"$ref":"#/definitions/logical"},"equal":{"type":"array"}}}]},"filter":{"type":"object","additionalProperties":false,"properties":{"only":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"ignore":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"orbs":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","pattern":"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+@(\\d+|\\d+\\.\\d+|\\d+\\.\\d+\\.\\d+|volatile)$"},{"type":"object","properties":{"orbs":{"$ref":"#/definitions/orbs"},"commands":{"$ref":"#/definitions/commands"},"executors":{"$ref":"#/definitions/executors"},"jobs":{"$ref":"#/definitions/jobs"}}}]}},"commands":{"type":"object","additionalProperties":{"type":"object","required":["steps"],"properties":{"steps":{"type":"array","items":{"$ref":"#/definitions/step"}},"parameters":{"type":"object","patternProperties":{"^[a-z][a-z0-9_-]+$":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"enum":["string"]},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["boolean"]},"description":{"type":"string"},"default":{"type":"boolean"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["integer"]},"description":{"type":"string"},"default":{"type":"integer"}}},{"type":"object","required":["type","enum"],"properties":{"type":{"enum":["enum"]},"enum":{"type":"array","minItems":1,"items":{"type":"string"}},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["executor"]},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["steps"]},"description":{"type":"string"},"default":{"type":"array","items":{"$ref":"#/definitions/step"}}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["env_var_name"]},"description":{"type":"string"},"default":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_-]+$"}}}]}}},"description":{"type":"string"}}}},"dockerExecutor":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["image"],"properties":{"image":{"type":"string"},"name":{"type":"string"},"entrypoint":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"command":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"user":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"auth":{"type":"object","additionalProperties":false,"properties":{"username":{"type":"string"},"password":{"type":"string"}}},"aws_auth":{"type":"object","additionalProperties":false,"properties":{"aws_access_key_id":{"type":"string"},"aws_secret_access_key":{"type":"string"}}}}}},"machineExecutor":{"type":"object","required":["image"],"additionalProperties":false,"properties":{"image":{"type":"string","default":"ubuntu-1604:202004-01"},"docker_layer_caching":{"type":"boolean","default":"true"}}},"macosExecutor":{"type":"object","additionalProperties":false,"required":["xcode"],"properties":{"xcode":{"type":"string"}}},"executorChoice":{"oneOf":[{"type":"object","required":["docker"],"properties":{"docker":{"$ref":"#/definitions/dockerExecutor"}}},{"type":"object","required":["machine"],"properties":{"machine":{"$ref":"#/definitions/machineExecutor"}}},{"type":"object","required":["machine"],"properties":{"machine":{"type":"boolean"}}},{"type":"object","required":["macos"],"properties":{"macos":{"$ref":"#/definitions/macosExecutor"}}}]},"executors":{"type":"object","additionalProperties":{"type":"object","$ref":"#/definitions/executorChoice","properties":{"resource_class":{"type":"string","default":"medium","enum":["small","medium","medium+","large","xlarge","2xlarge","2xlarge+","gpu.nvidia.small","gpu.nvidia.medium","windows.gpu.nvidia.medium"]},"shell":{"type":"string"},"working_directory":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}}}}},"builtinSteps":{"documentation":{"run":{},"checkout":{},"setup_remote_docker":{},"save_cache":{},"restore_cache":{},"deploy":{},"store_artifacts":{},"store_test_results":{},"persist_to_workspace":{},"attach_workspace":{},"add_ssh_keys":{},"when":{},"unless":{}},"configuration":{"run":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/run"}],"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"required":["command"],"properties":{"command":{"type":"string"},"name":{"type":"string"},"shell":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"background":{"default":false,"type":"boolean"},"working_directory":{"type":"string"},"no_output_timeout":{"type":"string","pattern":"\\d+(\\.\\d+)?[mhs]","default":"10m"},"when":{"enum":["always","on_success","on_fail"]}}}]},"checkout":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/checkout"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"path":{"type":"string"}}},"setup_remote_docker":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/setup_remote_docker"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"docker_layer_caching":{"type":"boolean","default":false},"version":{"enum":["19.03.13","19.03.12","19.03.8","18.09.3"],"default":"19.03.13"}}},"save_cache":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/save_cache"}],"type":"object","additionalProperties":false,"required":["paths","key"],"properties":{"paths":{"type":"array","items":{"type":"string"}},"key":{"type":"string"},"name":{"type":"string"},"when":{"enum":["always","on_success","on_fail"]}}},"restore_cache":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/restore_cache"}],"oneOf":[{"type":"object","additionalProperties":false,"required":["key"],"properties":{"key":{"type":"string"},"name":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"name":{"type":"string"},"keys":{"type":"array","items":{"type":"string"}}}}]},"deploy":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/deploy"},{"$ref":"#/definitions/builtinSteps/configuration/run"}]},"store_artifacts":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/store_artifacts"}],"type":"object","additionalProperties":false,"required":["path"],"properties":{"name":{"type":"string"},"path":{"type":"string"},"destination":{"type":"string"}}},"store_test_results":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/store_test_results"}],"type":"object","additionalProperties":false,"required":["path"],"properties":{"name":{"type":"string"},"path":{"type":"string"}}},"persist_to_workspace":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/persist_to_workspace"}],"type":"object","additionalProperties":false,"required":["root","paths"],"properties":{"name":{"type":"string"},"root":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"attach_workspace":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/attach_workspace"}],"type":"object","additionalProperties":false,"required":["at"],"properties":{"name":{"type":"string"},"at":{"type":"string"}}},"add_ssh_keys":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/add_ssh_keys"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"fingerprints":{"type":"array","items":{"type":"string"}}}},"when":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/when"}],"type":"object","additionalProperties":false,"properties":{"condition":{"$ref":"#/definitions/logical"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}}},"required":["condition","steps"]},"unless":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/unless"}],"type":"object","additionalProperties":false,"properties":{"condition":{"$ref":"#/definitions/logical"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}}},"required":["condition","steps"]}}},"step":{"anyOf":[{"$ref":"#/definitions/builtinSteps/documentation/checkout","enum":["checkout"]},{"$ref":"#/definitions/builtinSteps/documentation/setup_remote_docker","enum":["setup_remote_docker"]},{"$ref":"#/definitions/builtinSteps/documentation/add_ssh_keys","enum":["add_ssh_keys"]},{"type":"string","pattern":"^[a-z][a-z0-9_-]+$"},{"type":"string","pattern":"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+$"},{"type":"object","minProperties":1,"maxProperties":1,"properties":{"run":{"$ref":"#/definitions/builtinSteps/configuration/run"},"checkout":{"$ref":"#/definitions/builtinSteps/configuration/checkout"},"setup_remote_docker":{"$ref":"#/definitions/builtinSteps/configuration/setup_remote_docker"},"save_cache":{"$ref":"#/definitions/builtinSteps/configuration/save_cache"},"restore_cache":{"$ref":"#/definitions/builtinSteps/configuration/restore_cache"},"deploy":{"$ref":"#/definitions/builtinSteps/configuration/deploy"},"store_artifacts":{"$ref":"#/definitions/builtinSteps/configuration/store_artifacts"},"store_test_results":{"$ref":"#/definitions/builtinSteps/configuration/store_test_results"},"persist_to_workspace":{"$ref":"#/definitions/builtinSteps/configuration/persist_to_workspace"},"attach_workspace":{"$ref":"#/definitions/builtinSteps/configuration/attach_workspace"},"add_ssh_keys":{"$ref":"#/definitions/builtinSteps/configuration/add_ssh_keys"},"when":{"$ref":"#/definitions/builtinSteps/configuration/when"},"unless":{"$ref":"#/definitions/builtinSteps/configuration/unless"}},"patternProperties":{"^[a-z][a-z0-9_-]+$":{},"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+$":{}}}]},"jobRef":{"type":"object","additionalProperties":true,"properties":{"requires":{"type":"array","items":{"type":"string"}},"context":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"default":"org-global"},"type":{"enum":["approval"]},"filters":{"type":"object","additionalProperties":{"branches":{"$ref":"#/definitions/filter"},"tags":{"$ref":"#/definitions/filter"}}},"matrix":{"type":"object","additionalProperties":false,"required":["parameters"],"properties":{"parameters":{"type":"object","additionalProperties":{"type":"array"}},"exclude":{"type":"array","items":{"type":"object"}},"alias":{"type":"string"}}}}},"jobs":{"type":"object","additionalProperties":{"type":"object","oneOf":[{"$ref":"#/definitions/executorChoice"},{"type":"object","required":["executor"],"properties":{"executor":{"type":"string"}}},{"type":"object","required":["executor"],"properties":{"executor":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}],"required":["steps"],"properties":{"shell":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}},"working_directory":{"type":"string","default":"~/project"},"parallelism":{"default":1,"oneOf":[{"type":"integer"},{"type":"string","pattern":"^<<.+\\..+>>$"}]},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"branches":{"type":"object","additionalProperties":{"type":"string"}}}}}},"type":"object","required":["version"],"properties":{"version":{"default":2.1,"enum":[2,2.1]},"orbs":{"$ref":"#/definitions/orbs"},"commands":{"$ref":"#/definitions/commands"},"executors":{"$ref":"#/definitions/executors"},"jobs":{"$ref":"#/definitions/jobs"},"workflows":{"type":"object","properties":{"version":{"enum":[2]}},"additionalProperties":{"type":"object","additionalProperties":false,"properties":{"triggers":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"schedule":{"type":"object","properties":{"cron":{"type":"string"},"filters":{"type":"object","additionalProperties":false,"properties":{"branches":{"$ref":"#/definitions/filter"}}}}}}}},"jobs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"object","$ref":"#/definitions/jobRef"}}]}},"when":{"$ref":"#/definitions/logical"},"unless":{"$ref":"#/definitions/logical"}}}}}} | ||
{"title":"JSON schema for CircleCI configuration files","$schema":"http://json-schema.org/draft-04/schema#","definitions":{"logical":{"oneOf":[{"type":["string","boolean","integer","number"]},{"type":"object","additionalProperties":false,"minProperties":1,"maxProperties":1,"properties":{"and":{"type":"array","items":{"$ref":"#/definitions/logical"}},"or":{"type":"array","items":{"$ref":"#/definitions/logical"}},"not":{"$ref":"#/definitions/logical"},"equal":{"type":"array"}}}]},"filter":{"type":"object","additionalProperties":false,"properties":{"only":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"ignore":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"orbs":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","pattern":"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+@(\\d+|\\d+\\.\\d+|\\d+\\.\\d+\\.\\d+|volatile)$"},{"type":"object","properties":{"orbs":{"$ref":"#/definitions/orbs"},"commands":{"$ref":"#/definitions/commands"},"executors":{"$ref":"#/definitions/executors"},"jobs":{"$ref":"#/definitions/jobs"}}}]}},"commands":{"type":"object","additionalProperties":{"type":"object","required":["steps"],"properties":{"steps":{"type":"array","items":{"$ref":"#/definitions/step"}},"parameters":{"type":"object","patternProperties":{"^[a-z][a-z0-9_-]+$":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"enum":["string"]},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["boolean"]},"description":{"type":"string"},"default":{"type":"boolean"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["integer"]},"description":{"type":"string"},"default":{"type":"integer"}}},{"type":"object","required":["type","enum"],"properties":{"type":{"enum":["enum"]},"enum":{"type":"array","minItems":1,"items":{"type":"string"}},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["executor"]},"description":{"type":"string"},"default":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["steps"]},"description":{"type":"string"},"default":{"type":"array","items":{"$ref":"#/definitions/step"}}}},{"type":"object","required":["type"],"properties":{"type":{"enum":["env_var_name"]},"description":{"type":"string"},"default":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_-]+$"}}}]}}},"description":{"type":"string"}}}},"dockerExecutor":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["image"],"properties":{"image":{"type":"string"},"name":{"type":"string"},"entrypoint":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"command":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"user":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"auth":{"type":"object","additionalProperties":false,"properties":{"username":{"type":"string"},"password":{"type":"string"}}},"aws_auth":{"type":"object","additionalProperties":false,"properties":{"aws_access_key_id":{"type":"string"},"aws_secret_access_key":{"type":"string"}}}}}},"machineExecutor":{"type":"object","required":["image"],"additionalProperties":false,"properties":{"image":{"type":"string","default":"ubuntu-1604:202004-01"},"docker_layer_caching":{"type":"boolean","default":"true"}}},"macosExecutor":{"type":"object","additionalProperties":false,"required":["xcode"],"properties":{"xcode":{"type":"string"}}},"executorChoice":{"oneOf":[{"type":"object","required":["docker"],"properties":{"docker":{"$ref":"#/definitions/dockerExecutor"}}},{"type":"object","required":["machine"],"properties":{"machine":{"$ref":"#/definitions/machineExecutor"}}},{"type":"object","required":["machine"],"properties":{"machine":{"type":"boolean"}}},{"type":"object","required":["macos"],"properties":{"macos":{"$ref":"#/definitions/macosExecutor"}}}]},"executors":{"type":"object","additionalProperties":{"type":"object","$ref":"#/definitions/executorChoice","properties":{"resource_class":{"type":"string","default":"medium","enum":["small","medium","medium+","large","xlarge","2xlarge","2xlarge+","gpu.nvidia.small","gpu.nvidia.medium","windows.gpu.nvidia.medium"]},"shell":{"type":"string"},"working_directory":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}}}}},"builtinSteps":{"documentation":{"run":{},"checkout":{},"setup_remote_docker":{},"save_cache":{},"restore_cache":{},"deploy":{},"store_artifacts":{},"store_test_results":{},"persist_to_workspace":{},"attach_workspace":{},"add_ssh_keys":{},"when":{},"unless":{}},"configuration":{"run":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/run"}],"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"required":["command"],"properties":{"command":{"type":"string"},"name":{"type":"string"},"shell":{"type":"string"},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"background":{"default":false,"type":"boolean"},"working_directory":{"type":"string"},"no_output_timeout":{"type":"string","pattern":"\\d+(\\.\\d+)?[mhs]","default":"10m"},"when":{"enum":["always","on_success","on_fail"]}}}]},"checkout":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/checkout"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"path":{"type":"string"}}},"setup_remote_docker":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/setup_remote_docker"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"docker_layer_caching":{"type":"boolean","default":false},"version":{"enum":["20.10.2","19.03.14","19.03.13","19.03.12","19.03.8","18.09.3","17.09.0-ce"],"default":"19.03.13"}}},"save_cache":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/save_cache"}],"type":"object","additionalProperties":false,"required":["paths","key"],"properties":{"paths":{"type":"array","items":{"type":"string"}},"key":{"type":"string"},"name":{"type":"string"},"when":{"enum":["always","on_success","on_fail"]}}},"restore_cache":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/restore_cache"}],"oneOf":[{"type":"object","additionalProperties":false,"required":["key"],"properties":{"key":{"type":"string"},"name":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"name":{"type":"string"},"keys":{"type":"array","items":{"type":"string"}}}}]},"deploy":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/deploy"},{"$ref":"#/definitions/builtinSteps/configuration/run"}]},"store_artifacts":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/store_artifacts"}],"type":"object","additionalProperties":false,"required":["path"],"properties":{"name":{"type":"string"},"path":{"type":"string"},"destination":{"type":"string"}}},"store_test_results":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/store_test_results"}],"type":"object","additionalProperties":false,"required":["path"],"properties":{"name":{"type":"string"},"path":{"type":"string"}}},"persist_to_workspace":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/persist_to_workspace"}],"type":"object","additionalProperties":false,"required":["root","paths"],"properties":{"name":{"type":"string"},"root":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"attach_workspace":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/attach_workspace"}],"type":"object","additionalProperties":false,"required":["at"],"properties":{"name":{"type":"string"},"at":{"type":"string"}}},"add_ssh_keys":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/add_ssh_keys"}],"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"fingerprints":{"type":"array","items":{"type":"string"}}}},"when":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/when"}],"type":"object","additionalProperties":false,"properties":{"condition":{"$ref":"#/definitions/logical"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}}},"required":["condition","steps"]},"unless":{"allOf":[{"$ref":"#/definitions/builtinSteps/documentation/unless"}],"type":"object","additionalProperties":false,"properties":{"condition":{"$ref":"#/definitions/logical"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}}},"required":["condition","steps"]}}},"step":{"anyOf":[{"$ref":"#/definitions/builtinSteps/documentation/checkout","enum":["checkout"]},{"$ref":"#/definitions/builtinSteps/documentation/setup_remote_docker","enum":["setup_remote_docker"]},{"$ref":"#/definitions/builtinSteps/documentation/add_ssh_keys","enum":["add_ssh_keys"]},{"type":"string","pattern":"^[a-z][a-z0-9_-]+$"},{"type":"string","pattern":"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+$"},{"type":"object","minProperties":1,"maxProperties":1,"properties":{"run":{"$ref":"#/definitions/builtinSteps/configuration/run"},"checkout":{"$ref":"#/definitions/builtinSteps/configuration/checkout"},"setup_remote_docker":{"$ref":"#/definitions/builtinSteps/configuration/setup_remote_docker"},"save_cache":{"$ref":"#/definitions/builtinSteps/configuration/save_cache"},"restore_cache":{"$ref":"#/definitions/builtinSteps/configuration/restore_cache"},"deploy":{"$ref":"#/definitions/builtinSteps/configuration/deploy"},"store_artifacts":{"$ref":"#/definitions/builtinSteps/configuration/store_artifacts"},"store_test_results":{"$ref":"#/definitions/builtinSteps/configuration/store_test_results"},"persist_to_workspace":{"$ref":"#/definitions/builtinSteps/configuration/persist_to_workspace"},"attach_workspace":{"$ref":"#/definitions/builtinSteps/configuration/attach_workspace"},"add_ssh_keys":{"$ref":"#/definitions/builtinSteps/configuration/add_ssh_keys"},"when":{"$ref":"#/definitions/builtinSteps/configuration/when"},"unless":{"$ref":"#/definitions/builtinSteps/configuration/unless"}},"patternProperties":{"^[a-z][a-z0-9_-]+$":{},"^[a-z][a-z0-9_-]+/[a-z][a-z0-9_-]+$":{}}}]},"jobRef":{"type":"object","additionalProperties":true,"properties":{"requires":{"type":"array","items":{"type":"string"}},"context":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"default":"org-global"},"type":{"enum":["approval"]},"filters":{"type":"object","additionalProperties":{"branches":{"$ref":"#/definitions/filter"},"tags":{"$ref":"#/definitions/filter"}}},"matrix":{"type":"object","additionalProperties":false,"required":["parameters"],"properties":{"parameters":{"type":"object","additionalProperties":{"type":"array"}},"exclude":{"type":"array","items":{"type":"object"}},"alias":{"type":"string"}}}}},"jobs":{"type":"object","additionalProperties":{"type":"object","oneOf":[{"$ref":"#/definitions/executorChoice"},{"type":"object","required":["executor"],"properties":{"executor":{"type":"string"}}},{"type":"object","required":["executor"],"properties":{"executor":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}],"required":["steps"],"properties":{"shell":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/definitions/step"}},"working_directory":{"type":"string","default":"~/project"},"parallelism":{"default":1,"oneOf":[{"type":"integer"},{"type":"string","pattern":"^<<.+\\..+>>$"}]},"environment":{"type":"object","additionalProperties":{"type":["string","number"]}},"branches":{"type":"object","additionalProperties":{"type":"string"}}}}}},"type":"object","required":["version"],"properties":{"version":{"default":2.1,"enum":[2,2.1]},"orbs":{"$ref":"#/definitions/orbs"},"commands":{"$ref":"#/definitions/commands"},"executors":{"$ref":"#/definitions/executors"},"jobs":{"$ref":"#/definitions/jobs"},"workflows":{"type":"object","properties":{"version":{"enum":[2]}},"additionalProperties":{"type":"object","additionalProperties":false,"properties":{"triggers":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"schedule":{"type":"object","properties":{"cron":{"type":"string"},"filters":{"type":"object","additionalProperties":false,"properties":{"branches":{"$ref":"#/definitions/filter"}}}}}}}},"jobs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"object","$ref":"#/definitions/jobRef"}}]}},"when":{"$ref":"#/definitions/logical"},"unless":{"$ref":"#/definitions/logical"}}}}}} |
@@ -1,1 +0,1 @@ | ||
{"$schema":"https://json-schema.org/draft/2019-09/schema#","type":"object","definitions":{"gocritic-checks":{"enum":["appendAssign","argOrder","badCall","badCond","caseOrder","codegenComment","commentedOutCode","deprecatedComment","dupArg","dupBranchBody","dupCase","dupSubExpr","evalOrder","exitAfterDefer","flagDeref","flagName","mapKey","nilValReturn","octalLiteral","offBy1","regexpPattern","sloppyReassign","truncateCmp","weakCond","assignOp","boolExprSimplify","builtinShadow","captLocal","commentFormatting","commentedOutImport","defaultCaseOrder","docStub","dupImport","elseif","emptyFallthrough","emptyStringTest","hexLiteral","ifElseChain","importShadow","initClause","methodExprCall","nestingReduce","newDeref","paramTypeCombine","ptrToRefParam","regexpMust","singleCaseSwitch","sloppyLen","stringXbytes","switchTrue","typeAssertChain","typeSwitchVar","typeUnparen","underef","unlabelStmt","unlambda","unnamedResult","unnecessaryBlock","unslice","valSwap","whyNoLint","wrapperFunc","yodaStyleExpr","appendCombine","equalFold","hugeParam","indexAlloc","rangeExprCopy","rangeValCopy"]},"gocritic-tags":{"enum":["diagnostic","style","performance","experimental","opinionated","security"]},"govet-analyzers":{"enum":["asmdecl","assign","atomic","atomicalign","bools","buildtag","cgocall","composite","copylock","deepequalerrors","errorsas","findcall","httpresponse","loopclosure","lostcancel","nilfunc","nilness","printf","shadow","shift","sortslice","stdmethods","structtag","testinggoroutine","tests","unmarshal","unreachable","unsafeptr","unusedresult"]},"linters":{"$comment":"anyOf with enum is used to allow auto completion of non-custom linters","anyOf":[{"enum":["govet","errcheck","staticcheck","unused","gosimple","structcheck","varcheck","ineffassign","deadcode","bodyclose","noctx","golint","rowserrcheck","stylecheck","gosec","interfacer","unconvert","dupl","goconst","gocyclo","gocognit","asciicheck","gofmt","gofumpt","goimports","goheader","gci","maligned","depguard","misspell","lll","unparam","dogsled","nakedret","prealloc","scopelint","gocritic","gochecknoinits","gochecknoglobals","godox","funlen","whitespace","wsl","goprintffuncname","gomnd","goerr113","gomodguard","godot","testpackage","nestif","exportloopref","exhaustive","sqlclosecheck","nlreturn","wrapcheck","tparallel","exhaustivestruct","errorlint","nolintlint"]},{"type":"string"}]},"issue-match-path":{"type":"object","properties":{"path":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-linters":{"type":"object","properties":{"linters":{"type":"array","items":{"$ref":"#/definitions/linters"}},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-source":{"type":"object","properties":{"source":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-text":{"type":"object","properties":{"text":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false}},"properties":{"run":{"type":"object","properties":{"concurrency":{"type":"integer","minimum":1,"examples":[4]},"timeout":{"type":"string","pattern":"^\\d*[sm]$","default":"1m","examples":["30s","5m"]},"issue-exit-code":{"type":"integer","default":1},"tests":{"type":"boolean","default":true},"build-tags":{"type":"array","items":{"type":"string"},"default":[],"examples":[["mytag"]]},"skip-dirs":{"type":"array","items":{"type":"string","examples":["generated.*"]},"default":[],"examples":[["src/external_libs","autogenerated_by_my_lib"]]},"skip-dirs-use-default":{"type":"boolean","default":true},"skip-files":{"type":"array","items":{"type":"string","examples":[".*\\.my\\.go$"]},"default":[],"examples":[[".*\\.my\\.go$","lib/bad.go"]]},"modules-download-mode":{"enum":["readonly","release","vendor"]},"allow-parallel-runners":{"type":"boolean","default":false}}},"output":{"type":"object","properties":{"format":{"enum":["colored-line-number","line-number","json","tab","checkstyle","code-climate"],"default":"colored-line-number"},"print-issued-lines":{"type":"boolean","default":true},"print-linter-name":{"type":"boolean","default":true},"unique-by-line":{"type":"boolean","default":true},"path-prefix":{"type":"string","default":""}}},"linters-settings":{"type":"object","properties":{"dogsled":{"type":"object","properties":{"max-blank-identifiers":{"type":"integer","default":2,"minimum":0}}},"dupl":{"type":"object","properties":{"threshold":{"type":"integer","default":150,"minimum":0}}},"errcheck":{"type":"object","properties":{"check-type-assertions":{"type":"boolean","default":false},"check-blank":{"type":"boolean","default":false},"ignore":{"type":"string","default":"fmt:.*"},"exclude":{"type":"string","examples":["/path/to/file.txt"]}}},"exhaustive":{"type":"object","properties":{"check-generated":{"type":"boolean","default":false},"default-signifies-exhaustive":{"type":"boolean","default":false}}},"funlen":{"type":"object","properties":{"lines":{"type":"integer","default":60},"statements":{"type":"integer","default":40}}},"gci":{"type":"object","properties":{"local-prefixes":{"type":"string","examples":["github.com/org/project"]}}},"gocognit":{"type":"object","properties":{"min-complexity":{"type":"integer","default":30}}},"nestif":{"type":"object","properties":{"min-complexity":{"type":"integer","default":5}}},"goconst":{"type":"object","properties":{"min-len":{"type":"integer","default":3},"min-occurrences":{"type":"integer","default":3}}},"gocritic":{"type":"object","properties":{"enabled-checks":{"type":"array","items":{"$ref":"#/definitions/gocritic-checks"}},"disabled-checks":{"type":"array","items":{"$ref":"#/definitions/gocritic-checks"},"default":[]},"enabled-tags":{"type":"array","items":{"$ref":"#/definitions/gocritic-tags"}},"disabled-tags":{"type":"array","items":{"$ref":"#/definitions/gocritic-tags"}},"settings":{"type":"object","propertyNames":{"$ref":"#/definitions/gocritic-checks"}}}},"gocyclo":{"type":"object","properties":{"min-complexity":{"type":"integer","default":30}}},"godot":{"type":"object","properties":{"check-all":{"type":"boolean","default":false}}},"godox":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string"},"default":["TODO","BUG","FIXME"]}}},"gofmt":{"type":"object","properties":{"simplify":{"type":"boolean","default":true}}},"goheader":{"type":"object","allOf":[{"properties":{"values":{"type":"object","properties":{"const":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false,"examples":[{"YEAR":"2030","COMPANY":"MY FUTURISTIC COMPANY"}]},"regexp":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false,"examples":[{"AUTHOR":".*@mycompany\\.com"}]}}}}},{"oneOf":[{"properties":{"template":{"type":"string","examples":["{{ MY COMPANY }}\nSPDX-License-Identifier: Apache-2.0\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at:\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."]}},"required":["template"]},{"properties":{"template-path":{"type":"string","examples":["my_header_template.txt"]}},"required":["template-path"]}]}]},"goimports":{"type":"object","properties":{"local-prefixes":{"type":"string","examples":["github.com/org/project"]}}},"golint":{"type":"object","properties":{"min-confidence":{"type":"number","minimum":0,"exclusiveMaximum":1}}},"gomnd":{"type":"object","properties":{"settings":{"type":"object","properties":{"mnd":{"type":"object","properties":{"checks":{"type":"array","items":{"enum":["argument","case","condition","operation","return","assign"]}}}}}}}},"gomodguard":{"type":"object","properties":{"allowed":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"string","examples":["gopkg.in/yaml.v2"]}},"domains":{"type":"array","items":{"type":"string","examples":["golang.org"]}}}},"blocked":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"recommendations":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}}}},"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"version":{"type":"string"},"reason":{"type":"string"}},"required":["reason"]}}}}}}}},"govet":{"type":"object","properties":{"check-shadowing":{"type":"boolean","default":true},"settings":{"type":"object","propertyNames":{"$ref":"#/definitions/govet-analyzers"},"patternProperties":{"^.*$":{"type":"object"}}},"enable":{"type":"array","items":{"$ref":"#/definitions/govet-analyzers"}},"disable":{"type":"array","items":{"$ref":"#/definitions/govet-analyzers"}},"enable-all":{"type":"boolean","default":false},"disable-all":{"type":"boolean","default":false}}},"depguard":{"type":"object","properties":{"list-type":{"enum":["blacklist","whitelist"],"default":"blacklist"},"include-go-root":{"type":"boolean","default":false},"packages":{"type":"array","items":{"type":"string","examples":["github.com/OpenPeeDeeP/depguard"]}},"packages-with-error-message":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"examples":[{"github.com/OpenPeeDeeP/depguards":"Please use \"github.com/OpenPeeDeeP/depguard\"."}]}}},"lll":{"type":"object","properties":{"line-length":{"type":"integer","minimum":1,"default":120},"tab-width":{"type":"integer","minimum":0,"default":1}}},"maligned":{"type":"object","properties":{"suggest-new":{"type":"boolean","default":false}}},"misspell":{"type":"object","properties":{"locale":{"enum":["US","UK"]},"ignore-words":{"type":"array","items":{"type":"string"}}}},"nakedret":{"type":"object","properties":{"max-func-lines":{"type":"integer","minimum":0,"default":30}}},"prealloc":{"type":"object","properties":{"simple":{"type":"boolean","default":true},"range-loops":{"type":"boolean","default":true},"for-loops":{"type":"boolean","default":false}}},"nolintlint":{"type":"object","properties":{"allow-unused":{"type":"boolean","default":true},"allow-leading-space":{"type":"boolean","default":true},"allow-no-explanation":{"type":"array","items":{"type":"string"},"default":[]},"require-explanation":{"type":"boolean","default":false},"require-specific":{"type":"boolean","default":false}}},"rowserrcheck":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"string","examples":["github.com/jmoiron/sqlx"]}}}},"testpackage":{"type":"object","properties":{"skip-regexp":{"type":"string","examples":["(export|internal)_test\\.go"]}}},"unparam":{"type":"object","properties":{"check-exported":{"type":"boolean","default":false}}},"unused":{"type":"object","properties":{"check-exported":{"type":"boolean","default":false}}},"whitespace":{"type":"object","properties":{"multi-if":{"type":"boolean","default":false},"multi-func":{"type":"boolean","default":false}}},"wsl":{"type":"object","properties":{"strict-append":{"type":"boolean","default":true},"allow-assign-and-call":{"type":"boolean","default":true},"allow-multiline-assign":{"type":"boolean","default":true},"allow-cuddle-declarations":{"type":"boolean","default":false},"allow-trailing-comment":{"type":"boolean","default":false},"force-case-trailing-whitespace":{"type":"integer","minimum":0,"default":0},"force-err-cuddling":{"type":"boolean","default":false},"allow-separated-leading-comment":{"type":"boolean","default":false}}},"gofumpt":{"type":"object","properties":{"extra-rules":{"type":"boolean","default":false}}},"errorlint":{"type":"object","properties":{"errorf":{"type":"boolean","default":true}}},"custom":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"path":{"type":"string","examples":["/path/to/example.so"]},"description":{"type":"string"},"original-url":{"type":"string"}},"required":["path"]}}}}},"linters":{"type":"object","properties":{"enable":{"type":"array","items":{"$ref":"#/definitions/linters"}},"disable":{"type":"array","items":{"$ref":"#/definitions/linters"}},"disable-all":{"type":"boolean","default":false},"presets":{"type":"array","items":{"type":"string"}},"fast":{"type":"boolean","default":false}}},"issues":{"type":"object","properties":{"exclude":{"type":"array","items":{"type":"string"}},"exclude-rules":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"linters":{"type":"array","items":{"$ref":"#/definitions/linters"}},"text":{"type":"string"},"source":{"type":"string"}}}},"exclude-use-default":{"type":"boolean","default":true},"exclude-case-sensitive":{"type":"boolean","default":false},"include":{"type":"array","items":{"type":"string"},"default":[]},"max-issues-per-linter":{"type":"integer","default":50,"minimum":0},"max-same-issues":{"type":"integer","default":3,"minimum":0},"new":{"type":"boolean","default":false},"new-from-rev":{"type":"string"},"new-from-patch":{"type":"string","examples":["path/to/patch/file"]}}},"severity":{"type":"object","properties":{"default-severity":{"type":"string","default":""},"case-sensitive":{"type":"boolean","default":false},"rules":{"type":"array","items":{"allOf":[{"oneOf":[{"$ref":"#/definitions/issue-match-path"},{"$ref":"#/definitions/issue-match-source"},{"$ref":"#/definitions/issue-match-linters"},{"$ref":"#/definitions/issue-match-text"}]},{"properties":{"severity":{"type":"string"}}}]},"default":[]}}}}} | ||
{"$schema":"https://json-schema.org/draft/2019-09/schema#","type":"object","definitions":{"gocritic-checks":{"enum":["appendAssign","argOrder","badCall","badCond","caseOrder","codegenComment","commentedOutCode","deprecatedComment","dupArg","dupBranchBody","dupCase","dupSubExpr","evalOrder","exitAfterDefer","flagDeref","flagName","mapKey","nilValReturn","octalLiteral","offBy1","regexpPattern","sloppyReassign","truncateCmp","weakCond","assignOp","boolExprSimplify","builtinShadow","captLocal","commentFormatting","commentedOutImport","defaultCaseOrder","docStub","dupImport","elseif","emptyFallthrough","emptyStringTest","hexLiteral","ifElseChain","importShadow","initClause","methodExprCall","nestingReduce","newDeref","paramTypeCombine","ptrToRefParam","regexpMust","singleCaseSwitch","sloppyLen","stringXbytes","switchTrue","typeAssertChain","typeSwitchVar","typeUnparen","underef","unlabelStmt","unlambda","unnamedResult","unnecessaryBlock","unslice","valSwap","whyNoLint","wrapperFunc","yodaStyleExpr","appendCombine","equalFold","hugeParam","indexAlloc","rangeExprCopy","rangeValCopy"]},"gocritic-tags":{"enum":["diagnostic","style","performance","experimental","opinionated","security"]},"govet-analyzers":{"enum":["asmdecl","assign","atomic","atomicalign","bools","buildtag","cgocall","composite","copylocks","deepequalerrors","errorsas","findcall","httpresponse","loopclosure","lostcancel","nilfunc","nilness","printf","shadow","shift","sortslice","stdmethods","structtag","testinggoroutine","tests","unmarshal","unreachable","unsafeptr","unusedresult"]},"linters":{"$comment":"anyOf with enum is used to allow auto completion of non-custom linters","anyOf":[{"enum":["govet","errcheck","staticcheck","unused","gosimple","structcheck","varcheck","ineffassign","deadcode","bodyclose","noctx","golint","rowserrcheck","stylecheck","gosec","interfacer","unconvert","dupl","goconst","gocyclo","gocognit","asciicheck","gofmt","gofumpt","goimports","goheader","gci","maligned","depguard","misspell","lll","unparam","dogsled","nakedret","prealloc","scopelint","gocritic","gochecknoinits","gochecknoglobals","godox","funlen","whitespace","wsl","goprintffuncname","gomnd","goerr113","gomodguard","godot","testpackage","nestif","exportloopref","exhaustive","sqlclosecheck","nlreturn","wrapcheck","tparallel","exhaustivestruct","errorlint","nolintlint"]},{"type":"string"}]},"issue-match-path":{"type":"object","properties":{"path":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-linters":{"type":"object","properties":{"linters":{"type":"array","items":{"$ref":"#/definitions/linters"}},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-source":{"type":"object","properties":{"source":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false},"issue-match-text":{"type":"object","properties":{"text":{"type":"string"},"severity":{"$comment":"This is here only to allow `additionalProperties: false`."}},"additionalProperties":false}},"properties":{"run":{"type":"object","properties":{"concurrency":{"type":"integer","minimum":1,"examples":[4]},"timeout":{"type":"string","pattern":"^\\d*[sm]$","default":"1m","examples":["30s","5m"]},"issue-exit-code":{"type":"integer","default":1},"tests":{"type":"boolean","default":true},"build-tags":{"type":"array","items":{"type":"string"},"default":[],"examples":[["mytag"]]},"skip-dirs":{"type":"array","items":{"type":"string","examples":["generated.*"]},"default":[],"examples":[["src/external_libs","autogenerated_by_my_lib"]]},"skip-dirs-use-default":{"type":"boolean","default":true},"skip-files":{"type":"array","items":{"type":"string","examples":[".*\\.my\\.go$"]},"default":[],"examples":[[".*\\.my\\.go$","lib/bad.go"]]},"modules-download-mode":{"enum":["readonly","release","vendor"]},"allow-parallel-runners":{"type":"boolean","default":false}}},"output":{"type":"object","properties":{"format":{"enum":["colored-line-number","line-number","json","tab","checkstyle","code-climate"],"default":"colored-line-number"},"print-issued-lines":{"type":"boolean","default":true},"print-linter-name":{"type":"boolean","default":true},"unique-by-line":{"type":"boolean","default":true},"path-prefix":{"type":"string","default":""}}},"linters-settings":{"type":"object","properties":{"dogsled":{"type":"object","properties":{"max-blank-identifiers":{"type":"integer","default":2,"minimum":0}}},"dupl":{"type":"object","properties":{"threshold":{"type":"integer","default":150,"minimum":0}}},"errcheck":{"type":"object","properties":{"check-type-assertions":{"type":"boolean","default":false},"check-blank":{"type":"boolean","default":false},"ignore":{"type":"string","default":"fmt:.*"},"exclude":{"type":"string","examples":["/path/to/file.txt"]}}},"exhaustive":{"type":"object","properties":{"check-generated":{"type":"boolean","default":false},"default-signifies-exhaustive":{"type":"boolean","default":false}}},"funlen":{"type":"object","properties":{"lines":{"type":"integer","default":60},"statements":{"type":"integer","default":40}}},"gci":{"type":"object","properties":{"local-prefixes":{"type":"string","examples":["github.com/org/project"]}}},"gocognit":{"type":"object","properties":{"min-complexity":{"type":"integer","default":30}}},"nestif":{"type":"object","properties":{"min-complexity":{"type":"integer","default":5}}},"goconst":{"type":"object","properties":{"min-len":{"type":"integer","default":3},"min-occurrences":{"type":"integer","default":3}}},"gocritic":{"type":"object","properties":{"enabled-checks":{"type":"array","items":{"$ref":"#/definitions/gocritic-checks"}},"disabled-checks":{"type":"array","items":{"$ref":"#/definitions/gocritic-checks"},"default":[]},"enabled-tags":{"type":"array","items":{"$ref":"#/definitions/gocritic-tags"}},"disabled-tags":{"type":"array","items":{"$ref":"#/definitions/gocritic-tags"}},"settings":{"type":"object","propertyNames":{"$ref":"#/definitions/gocritic-checks"}}}},"gocyclo":{"type":"object","properties":{"min-complexity":{"type":"integer","default":30}}},"godot":{"type":"object","properties":{"check-all":{"type":"boolean","default":false}}},"godox":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string"},"default":["TODO","BUG","FIXME"]}}},"gofmt":{"type":"object","properties":{"simplify":{"type":"boolean","default":true}}},"goheader":{"type":"object","allOf":[{"properties":{"values":{"type":"object","properties":{"const":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false,"examples":[{"YEAR":"2030","COMPANY":"MY FUTURISTIC COMPANY"}]},"regexp":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false,"examples":[{"AUTHOR":".*@mycompany\\.com"}]}}}}},{"oneOf":[{"properties":{"template":{"type":"string","examples":["{{ MY COMPANY }}\nSPDX-License-Identifier: Apache-2.0\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at:\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."]}},"required":["template"]},{"properties":{"template-path":{"type":"string","examples":["my_header_template.txt"]}},"required":["template-path"]}]}]},"goimports":{"type":"object","properties":{"local-prefixes":{"type":"string","examples":["github.com/org/project"]}}},"golint":{"type":"object","properties":{"min-confidence":{"type":"number","minimum":0,"exclusiveMaximum":1}}},"gomnd":{"type":"object","properties":{"settings":{"type":"object","properties":{"mnd":{"type":"object","properties":{"checks":{"type":"array","items":{"enum":["argument","case","condition","operation","return","assign"]}}}}}}}},"gomodguard":{"type":"object","properties":{"allowed":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"string","examples":["gopkg.in/yaml.v2"]}},"domains":{"type":"array","items":{"type":"string","examples":["golang.org"]}}}},"blocked":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"recommendations":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}}}},"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"version":{"type":"string"},"reason":{"type":"string"}},"required":["reason"]}}}}}}}},"govet":{"type":"object","properties":{"check-shadowing":{"type":"boolean","default":true},"settings":{"type":"object","propertyNames":{"$ref":"#/definitions/govet-analyzers"},"patternProperties":{"^.*$":{"type":"object"}}},"enable":{"type":"array","items":{"$ref":"#/definitions/govet-analyzers"}},"disable":{"type":"array","items":{"$ref":"#/definitions/govet-analyzers"}},"enable-all":{"type":"boolean","default":false},"disable-all":{"type":"boolean","default":false}}},"depguard":{"type":"object","properties":{"list-type":{"enum":["blacklist","whitelist"],"default":"blacklist"},"include-go-root":{"type":"boolean","default":false},"packages":{"type":"array","items":{"type":"string","examples":["github.com/OpenPeeDeeP/depguard"]}},"packages-with-error-message":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"examples":[{"github.com/OpenPeeDeeP/depguards":"Please use \"github.com/OpenPeeDeeP/depguard\"."}]}}},"lll":{"type":"object","properties":{"line-length":{"type":"integer","minimum":1,"default":120},"tab-width":{"type":"integer","minimum":0,"default":1}}},"maligned":{"type":"object","properties":{"suggest-new":{"type":"boolean","default":false}}},"misspell":{"type":"object","properties":{"locale":{"enum":["US","UK"]},"ignore-words":{"type":"array","items":{"type":"string"}}}},"nakedret":{"type":"object","properties":{"max-func-lines":{"type":"integer","minimum":0,"default":30}}},"prealloc":{"type":"object","properties":{"simple":{"type":"boolean","default":true},"range-loops":{"type":"boolean","default":true},"for-loops":{"type":"boolean","default":false}}},"nolintlint":{"type":"object","properties":{"allow-unused":{"type":"boolean","default":true},"allow-leading-space":{"type":"boolean","default":true},"allow-no-explanation":{"type":"array","items":{"type":"string"},"default":[]},"require-explanation":{"type":"boolean","default":false},"require-specific":{"type":"boolean","default":false}}},"rowserrcheck":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"string","examples":["github.com/jmoiron/sqlx"]}}}},"testpackage":{"type":"object","properties":{"skip-regexp":{"type":"string","examples":["(export|internal)_test\\.go"]}}},"unparam":{"type":"object","properties":{"check-exported":{"type":"boolean","default":false}}},"unused":{"type":"object","properties":{"check-exported":{"type":"boolean","default":false}}},"whitespace":{"type":"object","properties":{"multi-if":{"type":"boolean","default":false},"multi-func":{"type":"boolean","default":false}}},"wsl":{"type":"object","properties":{"strict-append":{"type":"boolean","default":true},"allow-assign-and-call":{"type":"boolean","default":true},"allow-multiline-assign":{"type":"boolean","default":true},"allow-cuddle-declarations":{"type":"boolean","default":false},"allow-trailing-comment":{"type":"boolean","default":false},"force-case-trailing-whitespace":{"type":"integer","minimum":0,"default":0},"force-err-cuddling":{"type":"boolean","default":false},"allow-separated-leading-comment":{"type":"boolean","default":false}}},"gofumpt":{"type":"object","properties":{"extra-rules":{"type":"boolean","default":false}}},"errorlint":{"type":"object","properties":{"errorf":{"type":"boolean","default":true}}},"custom":{"type":"object","patternProperties":{"^.*$":{"type":"object","properties":{"path":{"type":"string","examples":["/path/to/example.so"]},"description":{"type":"string"},"original-url":{"type":"string"}},"required":["path"]}}}}},"linters":{"type":"object","properties":{"enable":{"type":"array","items":{"$ref":"#/definitions/linters"}},"disable":{"type":"array","items":{"$ref":"#/definitions/linters"}},"disable-all":{"type":"boolean","default":false},"presets":{"type":"array","items":{"type":"string"}},"fast":{"type":"boolean","default":false}}},"issues":{"type":"object","properties":{"exclude":{"type":"array","items":{"type":"string"}},"exclude-rules":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"linters":{"type":"array","items":{"$ref":"#/definitions/linters"}},"text":{"type":"string"},"source":{"type":"string"}}}},"exclude-use-default":{"type":"boolean","default":true},"exclude-case-sensitive":{"type":"boolean","default":false},"include":{"type":"array","items":{"type":"string"},"default":[]},"max-issues-per-linter":{"type":"integer","default":50,"minimum":0},"max-same-issues":{"type":"integer","default":3,"minimum":0},"new":{"type":"boolean","default":false},"new-from-rev":{"type":"string"},"new-from-patch":{"type":"string","examples":["path/to/patch/file"]}}},"severity":{"type":"object","properties":{"default-severity":{"type":"string","default":""},"case-sensitive":{"type":"boolean","default":false},"rules":{"type":"array","items":{"allOf":[{"oneOf":[{"$ref":"#/definitions/issue-match-path"},{"$ref":"#/definitions/issue-match-source"},{"$ref":"#/definitions/issue-match-linters"},{"$ref":"#/definitions/issue-match-text"}]},{"properties":{"severity":{"type":"string"}}}]},"default":[]}}}}} |
@@ -1,1 +0,1 @@ | ||
{"timestamp":1613780447857} | ||
{"timestamp":1614039694684} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3932956
298
5010