1
0
mirror of https://github.com/sasjs/lint.git synced 2025-12-10 09:34:34 +00:00

chore: updating docs for ignoreList

This commit is contained in:
Allan Bowe
2022-08-15 23:04:33 +00:00
parent 5ce33ab66c
commit 421513850c
3 changed files with 24 additions and 4 deletions

8
.gitpod.yml Normal file
View File

@@ -0,0 +1,8 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
tasks:
- init: npm install && npm run build

View File

@@ -23,6 +23,10 @@ Configuration is via a `.sasjslint` file with the following structure (these are
"hasDoxygenHeader": true, "hasDoxygenHeader": true,
"hasMacroNameInMend": true, "hasMacroNameInMend": true,
"hasMacroParentheses": true, "hasMacroParentheses": true,
"ignoreList": [
"sajsbuild/",
"sasjsresults/"
],
"indentationMultiple": 2, "indentationMultiple": 2,
"lowerCaseFileNames": true, "lowerCaseFileNames": true,
"maxLineLength": 80, "maxLineLength": 80,
@@ -60,6 +64,9 @@ As per the example [here](https://github.com/sasjs/lint/issues/20), macros defin
* Default: true * Default: true
* Severity: WARNING * Severity: WARNING
#### ignoreList
There may be specific files (or folders) that are not good candidates for linting. Simply list them in this array and they will be ignored. In addition, any files in the project `.gitignore` file will also be ignored.
#### indentationMultiple #### indentationMultiple
This will check each line to ensure that the count of leading spaces can be divided cleanly by this multiple. This will check each line to ensure that the count of leading spaces can be divided cleanly by this multiple.

View File

@@ -17,7 +17,11 @@
"noTabIndentation": true, "noTabIndentation": true,
"noTrailingSpaces": true, "noTrailingSpaces": true,
"lineEndings": "lf", "lineEndings": "lf",
"strictMacroDefinition": true "strictMacroDefinition": true,
"ignoreList": [
"sajsbuild",
"sasjsresults"
]
}, },
"examples": [ "examples": [
{ {
@@ -33,7 +37,8 @@
"noNestedMacros": true, "noNestedMacros": true,
"hasMacroParentheses": true, "hasMacroParentheses": true,
"lineEndings": "crlf", "lineEndings": "crlf",
"strictMacroDefinition": true "strictMacroDefinition": true,
"ignoreList": ["sajsbuild", "sasjsresults"]
} }
], ],
"properties": { "properties": {
@@ -143,11 +148,11 @@
}, },
"ignoreList": { "ignoreList": {
"$id": "#/properties/ignoreList", "$id": "#/properties/ignoreList",
"type": "object", "type": "array",
"title": "ignoreList", "title": "ignoreList",
"description": "An array of paths or path patterns to ignore matching resources from linting. Files or folders matching patterns in .gitignore will always be ignored.", "description": "An array of paths or path patterns to ignore matching resources from linting. Files or folders matching patterns in .gitignore will always be ignored.",
"default": ["sasjsbuild/", "sasjsresults/"], "default": ["sasjsbuild/", "sasjsresults/"],
"examples": ["sasjs/services", "appinit.sas"] "examples": ["sasjs/tests", "tmp/scratch.sas"]
} }
} }
} }