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,
|
||||
"lineEndings": "off",
|
||||
"strictMacroDefinition": true,
|
||||
"ignoreList": ["sajsbuild", "sasjsresults"]
|
||||
"ignoreList": ["sajsbuild", "sasjsresults"],
|
||||
"hasRequiredMacroOptions": false,
|
||||
"requiredMacroOptions": []
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
@@ -43,7 +45,9 @@
|
||||
"hasMacroParentheses": true,
|
||||
"lineEndings": "crlf",
|
||||
"strictMacroDefinition": true,
|
||||
"ignoreList": ["sajsbuild", "sasjsresults"]
|
||||
"ignoreList": ["sajsbuild", "sasjsresults"],
|
||||
"hasRequiredMacroOptions": false,
|
||||
"requiredMacroOptions": []
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
@@ -204,6 +208,22 @@
|
||||
"default": ["sasjsbuild/", "sasjsresults/"],
|
||||
"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": {
|
||||
"$id": "#/properties/severityLevel",
|
||||
"type": "object",
|
||||
@@ -320,6 +340,13 @@
|
||||
"type": "string",
|
||||
"enum": ["error", "warn"],
|
||||
"default": "warn"
|
||||
},
|
||||
"hasRequiredMacroOptions": {
|
||||
"$id": "#/properties/severityLevel/hasRequiredMacroOptions",
|
||||
"title": "hasRequiredMacroOptions",
|
||||
"type": "string",
|
||||
"enum": ["error", "warn"],
|
||||
"default": "warn"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user