We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961dd5e commit 036f164Copy full SHA for 036f164
Rules/UseToExportFieldsInManifest.cs
@@ -42,7 +42,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
42
throw new ArgumentNullException(Strings.NullAstErrorMessage);
43
}
44
45
- if (!fileName.EndsWith(".psd1", StringComparison.OrdinalIgnoreCase))
+ if (fileName == null || !fileName.EndsWith(".psd1", StringComparison.OrdinalIgnoreCase))
46
{
47
yield break;
48
0 commit comments