1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-05 11:40:06 +00:00

feat: new rule added 'strictMacroDefinition'

This commit is contained in:
Saad Jutt
2021-05-20 19:14:01 +05:00
parent e5780cd69a
commit dcfeb7a641
7 changed files with 190 additions and 4 deletions

View File

@@ -10,7 +10,8 @@ import {
maxLineLength,
noEncodedPasswords,
noTabIndentation,
noTrailingSpaces
noTrailingSpaces,
strictMacroDefinition
} from '../rules/line'
import { lowerCaseFileNames, noSpacesInFileNames } from '../rules/path'
import { LineEndings } from './LineEndings'
@@ -90,5 +91,9 @@ export class LintConfig {
if (json?.hasMacroParentheses) {
this.fileLintRules.push(hasMacroParentheses)
}
if (json?.strictMacroDefinition) {
this.lineLintRules.push(strictMacroDefinition)
}
}
}