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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user