Skip to content

Commit 4f3e19f

Browse files
author
Kapil Borle
committed
Add module manifest check in UseToExportFieldsInManifest
1 parent 3604024 commit 4f3e19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/UseToExportFieldsInManifest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
5050
throw new ArgumentNullException(Strings.NullAstErrorMessage);
5151
}
5252

53-
if (fileName == null || !fileName.EndsWith(".psd1", StringComparison.OrdinalIgnoreCase))
53+
if (fileName == null || !Helper.IsModuleManifest(fileName))
5454
{
5555
yield break;
5656
}

0 commit comments

Comments
 (0)