1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-07 20:50:04 +00:00

fix(strictMacroDefinition): moved from lineRules to fileRules

This commit is contained in:
Saad Jutt
2021-05-21 17:29:23 +05:00
parent af2d2c12c1
commit f793eb3a76
8 changed files with 351 additions and 232 deletions

View File

@@ -3,15 +3,15 @@ import {
hasMacroNameInMend,
noNestedMacros,
hasMacroParentheses,
lineEndings
lineEndings,
strictMacroDefinition
} from '../rules/file'
import {
indentationMultiple,
maxLineLength,
noEncodedPasswords,
noTabIndentation,
noTrailingSpaces,
strictMacroDefinition
noTrailingSpaces
} from '../rules/line'
import { lowerCaseFileNames, noSpacesInFileNames } from '../rules/path'
import { LineEndings } from './LineEndings'
@@ -93,7 +93,7 @@ export class LintConfig {
}
if (json?.strictMacroDefinition) {
this.lineLintRules.push(strictMacroDefinition)
this.fileLintRules.push(strictMacroDefinition)
}
}
}