Add pslint sanity test settings.

Globally ignore rule: PSUseShouldProcessForStateChangingFunctions
This commit is contained in:
Matt Clay 2018-01-30 16:32:32 -08:00
parent 9c2c2f1534
commit 2d565d14ed
4 changed files with 7 additions and 21 deletions

View file

@ -66,7 +66,7 @@ class PslintTest(SanitySingleVersion):
ignore[path][code] = line
paths = sorted(i.path for i in targets.include if os.path.splitext(i.path)[1] in ('.ps1', '.psm1') and i.path not in skip_paths)
paths = sorted(i.path for i in targets.include if os.path.splitext(i.path)[1] in ('.ps1', '.psm1', '.psd1') and i.path not in skip_paths)
if not paths:
return SanitySkipped(self.name)