1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-15 08:10:05 +00:00

feat: add new rule noGremlins

This commit is contained in:
2022-12-26 21:14:48 +05:00
parent 65772804fe
commit 7d6fc8eb8c
4 changed files with 150 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ import {
maxLineLength,
noEncodedPasswords,
noTabs,
noTrailingSpaces
noTrailingSpaces,
noGremlins
} from '../rules/line'
import { lowerCaseFileNames, noSpacesInFileNames } from '../rules/path'
import { LineEndings } from './LineEndings'
@@ -119,6 +120,10 @@ export class LintConfig {
this.fileLintRules.push(strictMacroDefinition)
}
if (json?.noGremlins) {
this.lineLintRules.push(noGremlins)
}
if (json?.severityLevel) {
for (const [rule, severity] of Object.entries(json.severityLevel)) {
if (severity === 'warn') this.severityLevel[rule] = Severity.Warning