mirror of
https://github.com/sasjs/lint.git
synced 2026-01-04 03:10:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1ebb51230 | ||
| 496e0bc8fc |
@@ -20,7 +20,7 @@
|
|||||||
"noSpacesInFileNames": true,
|
"noSpacesInFileNames": true,
|
||||||
"noTabs": true,
|
"noTabs": true,
|
||||||
"noTrailingSpaces": true,
|
"noTrailingSpaces": true,
|
||||||
"lineEndings": "lf",
|
"lineEndings": "off",
|
||||||
"strictMacroDefinition": true,
|
"strictMacroDefinition": true,
|
||||||
"ignoreList": ["sajsbuild", "sasjsresults"]
|
"ignoreList": ["sajsbuild", "sasjsresults"]
|
||||||
},
|
},
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
"enum": ["lf", "crlf", "off"],
|
"enum": ["lf", "crlf", "off"],
|
||||||
"title": "lineEndings",
|
"title": "lineEndings",
|
||||||
"description": "Enforces the configured terminating character for each line. Shows a warning when incorrect line endings are present.",
|
"description": "Enforces the configured terminating character for each line. Shows a warning when incorrect line endings are present.",
|
||||||
"default": "lf",
|
"default": "off",
|
||||||
"examples": ["lf", "crlf"]
|
"examples": ["lf", "crlf"]
|
||||||
},
|
},
|
||||||
"strictMacroDefinition": {
|
"strictMacroDefinition": {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import path from 'path'
|
|||||||
import { LintConfig } from '../types/LintConfig'
|
import { LintConfig } from '../types/LintConfig'
|
||||||
import { readFile } from '@sasjs/utils/file'
|
import { readFile } from '@sasjs/utils/file'
|
||||||
import { getProjectRoot } from './getProjectRoot'
|
import { getProjectRoot } from './getProjectRoot'
|
||||||
|
import { LineEndings } from '../types/LineEndings'
|
||||||
|
|
||||||
export const getDefaultHeader = () =>
|
export const getDefaultHeader = () =>
|
||||||
`/**{lineEnding} @file{lineEnding} @brief <Your brief here>{lineEnding} <h4> SAS Macros </h4>{lineEnding}**/`
|
`/**{lineEnding} @file{lineEnding} @brief <Your brief here>{lineEnding} <h4> SAS Macros </h4>{lineEnding}**/`
|
||||||
@@ -10,6 +11,7 @@ export const getDefaultHeader = () =>
|
|||||||
* Default configuration that is used when a .sasjslint file is not found
|
* Default configuration that is used when a .sasjslint file is not found
|
||||||
*/
|
*/
|
||||||
export const DefaultLintConfiguration = {
|
export const DefaultLintConfiguration = {
|
||||||
|
lineEndings: LineEndings.OFF,
|
||||||
noTrailingSpaces: true,
|
noTrailingSpaces: true,
|
||||||
noEncodedPasswords: true,
|
noEncodedPasswords: true,
|
||||||
hasDoxygenHeader: true,
|
hasDoxygenHeader: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user