mirror of
https://github.com/sasjs/lint.git
synced 2026-01-10 14:00:05 +00:00
fix: alphabeticalisation of config, typo fix and description extension
This commit is contained in:
@@ -5,17 +5,17 @@
|
|||||||
"title": "SASjs Lint Config File",
|
"title": "SASjs Lint Config File",
|
||||||
"description": "The SASjs Lint Config file provides the settings for customising SAS code style in your project.",
|
"description": "The SASjs Lint Config file provides the settings for customising SAS code style in your project.",
|
||||||
"default": {
|
"default": {
|
||||||
"noTrailingSpaces": true,
|
|
||||||
"noEncodedPasswords": true,
|
"noEncodedPasswords": true,
|
||||||
"hasDoxygenHeader": true,
|
"hasDoxygenHeader": true,
|
||||||
"noSpacesInFileNames": true,
|
"hasMacroNameInMend": false,
|
||||||
|
"hasMacroParentheses": true,
|
||||||
|
"indentationMultiple": 2,
|
||||||
"lowerCaseFileNames": true,
|
"lowerCaseFileNames": true,
|
||||||
"maxLineLength": 80,
|
"maxLineLength": 80,
|
||||||
"noTabIndentation": true,
|
|
||||||
"indentationMultiple": 2,
|
|
||||||
"hasMacroNameInMend": false,
|
|
||||||
"noNestedMacros": true,
|
"noNestedMacros": true,
|
||||||
"hasMacroParentheses": true
|
"noSpacesInFileNames": true,
|
||||||
|
"noTabIndentation": true,
|
||||||
|
"noTrailingSpaces": true
|
||||||
},
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
@@ -33,14 +33,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"noTrailingSpaces": {
|
|
||||||
"$id": "#/properties/noTrailingSpaces",
|
|
||||||
"type": "boolean",
|
|
||||||
"title": "noTrailingSpaces",
|
|
||||||
"description": "Enforces no trailing spaces in lines of SAS code. Shows a warning when they are present.",
|
|
||||||
"default": true,
|
|
||||||
"examples": [true, false]
|
|
||||||
},
|
|
||||||
"noEncodedPasswords": {
|
"noEncodedPasswords": {
|
||||||
"$id": "#/properties/noEncodedPasswords",
|
"$id": "#/properties/noEncodedPasswords",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -57,14 +49,30 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"examples": [true, false]
|
"examples": [true, false]
|
||||||
},
|
},
|
||||||
"noSpacesInFileNames": {
|
"hasMacroNameInMend": {
|
||||||
"$id": "#/properties/noSpacesInFileNames",
|
"$id": "#/properties/hasMacroNameInMend",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "noSpacesInFileNames",
|
"title": "hasMacroNameInMend",
|
||||||
"description": "Enforces no spaces in file names. Shows a warning when they are present.",
|
"description": "Enforces the presence of macro names in %mend statements. Shows a warning for %mend statements with missing or mismatched macro names.",
|
||||||
|
"default": false,
|
||||||
|
"examples": [true, false]
|
||||||
|
},
|
||||||
|
"hasMacroParentheses": {
|
||||||
|
"$id": "#/properties/hasMacroParentheses",
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "hasMacroParentheses",
|
||||||
|
"description": "Enforces the presence of parentheses in macro definitions. Shows a warning for each macro defined without parentheses, or with spaces between the macro name and the opening parenthesis.",
|
||||||
"default": true,
|
"default": true,
|
||||||
"examples": [true, false]
|
"examples": [true, false]
|
||||||
},
|
},
|
||||||
|
"indentationMultiple": {
|
||||||
|
"$id": "#/properties/indentationMultiple",
|
||||||
|
"type": "number",
|
||||||
|
"title": "indentationMultiple",
|
||||||
|
"description": "Enforces a configurable multiple for the number of spaces for indentation. Shows a warning for lines that are not indented by a multiple of this number.",
|
||||||
|
"default": 2,
|
||||||
|
"examples": [2, 3, 4]
|
||||||
|
},
|
||||||
"lowerCaseFileNames": {
|
"lowerCaseFileNames": {
|
||||||
"$id": "#/properties/lowerCaseFileNames",
|
"$id": "#/properties/lowerCaseFileNames",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -81,30 +89,6 @@
|
|||||||
"default": 80,
|
"default": 80,
|
||||||
"examples": [60, 80, 120]
|
"examples": [60, 80, 120]
|
||||||
},
|
},
|
||||||
"noTabIndentation": {
|
|
||||||
"$id": "#/properties/noTabIndentation",
|
|
||||||
"type": "boolean",
|
|
||||||
"title": "noTabIndentation",
|
|
||||||
"description": "Enforces no indentation using tabs. Shows a warning when a line starts with a tab.",
|
|
||||||
"default": true,
|
|
||||||
"examples": [true, false]
|
|
||||||
},
|
|
||||||
"indentationMultiple": {
|
|
||||||
"$id": "#/properties/indentationMultiple",
|
|
||||||
"type": "number",
|
|
||||||
"title": "indentationMultiple",
|
|
||||||
"description": "Enforces a configurable multiple for the number of spaces for indentation. Shows a warning for lines that are not indented by a multiple of this number.",
|
|
||||||
"default": 2,
|
|
||||||
"examples": [2, 3, 4]
|
|
||||||
},
|
|
||||||
"hasMacroNameInMend": {
|
|
||||||
"$id": "#/properties/hasMacroNameInMend",
|
|
||||||
"type": "boolean",
|
|
||||||
"title": "hasMacroNameInMend",
|
|
||||||
"description": "Enforces the presence of macro names in %mend statements. Shows a warning for %mend statements with missing or mismatched macro names.",
|
|
||||||
"default": false,
|
|
||||||
"examples": [true, false]
|
|
||||||
},
|
|
||||||
"noNestedMacros": {
|
"noNestedMacros": {
|
||||||
"$id": "#/properties/noNestedMacros",
|
"$id": "#/properties/noNestedMacros",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -113,11 +97,27 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"examples": [true, false]
|
"examples": [true, false]
|
||||||
},
|
},
|
||||||
"hasMacroParentheses": {
|
"noSpacesInFileNames": {
|
||||||
"$id": "#/properties/hasMacroParentheses",
|
"$id": "#/properties/noSpacesInFileNames",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "hasMacroParentheses",
|
"title": "noSpacesInFileNames",
|
||||||
"description": "Enforces the presence of parantheses in macro definitions. Shows a warning for each macro defined without parantheses.",
|
"description": "Enforces no spaces in file names. Shows a warning when they are present.",
|
||||||
|
"default": true,
|
||||||
|
"examples": [true, false]
|
||||||
|
},
|
||||||
|
"noTabIndentation": {
|
||||||
|
"$id": "#/properties/noTabIndentation",
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "noTabIndentation",
|
||||||
|
"description": "Enforces no indentation using tabs. Shows a warning when a line starts with a tab.",
|
||||||
|
"default": true,
|
||||||
|
"examples": [true, false]
|
||||||
|
},
|
||||||
|
"noTrailingSpaces": {
|
||||||
|
"$id": "#/properties/noTrailingSpaces",
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "noTrailingSpaces",
|
||||||
|
"description": "Enforces no trailing spaces in lines of SAS code. Shows a warning when they are present.",
|
||||||
"default": true,
|
"default": true,
|
||||||
"examples": [true, false]
|
"examples": [true, false]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user