mirror of
https://github.com/sasjs/lint.git
synced 2026-01-10 05:50:05 +00:00
feat: new rules noNestedMacros & hasMacroParentheses
This commit is contained in:
@@ -7,6 +7,8 @@ import { noSpacesInFileNames } from '../rules/noSpacesInFileNames'
|
||||
import { noTabIndentation } from '../rules/noTabIndentation'
|
||||
import { noTrailingSpaces } from '../rules/noTrailingSpaces'
|
||||
import { hasMacroNameInMend } from '../rules/hasMacroNameInMend'
|
||||
import { noNestedMacros } from '../rules/noNestedMacros'
|
||||
import { hasMacroParentheses } from '../rules/hasMacroParentheses'
|
||||
import { FileLintRule, LineLintRule, PathLintRule } from './LintRule'
|
||||
|
||||
/**
|
||||
@@ -61,5 +63,13 @@ export class LintConfig {
|
||||
if (json?.hasMacroNameInMend) {
|
||||
this.fileLintRules.push(hasMacroNameInMend)
|
||||
}
|
||||
|
||||
if (json?.noNestedMacros) {
|
||||
this.fileLintRules.push(noNestedMacros)
|
||||
}
|
||||
|
||||
if (json?.hasMacroParentheses) {
|
||||
this.fileLintRules.push(hasMacroParentheses)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user