mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 09:34:34 +00:00
updated sasjslint-schema
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
"noTrailingSpaces": true,
|
"noTrailingSpaces": true,
|
||||||
"lineEndings": "off",
|
"lineEndings": "off",
|
||||||
"strictMacroDefinition": true,
|
"strictMacroDefinition": true,
|
||||||
"ignoreList": ["sajsbuild", "sasjsresults"]
|
"ignoreList": ["sajsbuild", "sasjsresults"],
|
||||||
|
"hasRequiredMacroOptions": false,
|
||||||
|
"requiredMacroOptions": []
|
||||||
},
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
@@ -43,7 +45,9 @@
|
|||||||
"hasMacroParentheses": true,
|
"hasMacroParentheses": true,
|
||||||
"lineEndings": "crlf",
|
"lineEndings": "crlf",
|
||||||
"strictMacroDefinition": true,
|
"strictMacroDefinition": true,
|
||||||
"ignoreList": ["sajsbuild", "sasjsresults"]
|
"ignoreList": ["sajsbuild", "sasjsresults"],
|
||||||
|
"hasRequiredMacroOptions": false,
|
||||||
|
"requiredMacroOptions": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -204,6 +208,22 @@
|
|||||||
"default": ["sasjsbuild/", "sasjsresults/"],
|
"default": ["sasjsbuild/", "sasjsresults/"],
|
||||||
"examples": ["sasjs/tests", "tmp/scratch.sas"]
|
"examples": ["sasjs/tests", "tmp/scratch.sas"]
|
||||||
},
|
},
|
||||||
|
"hasRequiredMacroOptions": {
|
||||||
|
"$id": "#/properties/hasRequiredMacroOptions",
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "hasRequiredMacroOptions",
|
||||||
|
"description": "Enforces required macro options as defined by requiredMacroOptions",
|
||||||
|
"default": false,
|
||||||
|
"examples": [true, false]
|
||||||
|
},
|
||||||
|
"requiredMacroOptions": {
|
||||||
|
"$id": "#/properties/requiredMacroOptions",
|
||||||
|
"type": "array",
|
||||||
|
"title": "requiredMacroOptions",
|
||||||
|
"description": "An array of macro options to require all macros to include.",
|
||||||
|
"default": [],
|
||||||
|
"examples": ["['SECURE']", "['SRC', 'STMT']"]
|
||||||
|
},
|
||||||
"severityLevel": {
|
"severityLevel": {
|
||||||
"$id": "#/properties/severityLevel",
|
"$id": "#/properties/severityLevel",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -320,6 +340,13 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["error", "warn"],
|
"enum": ["error", "warn"],
|
||||||
"default": "warn"
|
"default": "warn"
|
||||||
|
},
|
||||||
|
"hasRequiredMacroOptions": {
|
||||||
|
"$id": "#/properties/severityLevel/hasRequiredMacroOptions",
|
||||||
|
"title": "hasRequiredMacroOptions",
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["error", "warn"],
|
||||||
|
"default": "warn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user