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 5a9083f commit 563c0a2Copy full SHA for 563c0a2
Engine/Helper.cs
@@ -1775,6 +1775,19 @@ public static bool IsPowerShellVersionSupported(Version version)
1775
return version >= minSupportedPSVersion;
1776
}
1777
1778
+ /// <summary>
1779
+ /// Determines if analyzing a script module.
1780
+ /// </summary>
1781
+ /// <returns>True is file name ends with ".psm1"</returns>
1782
+ public static bool IsModuleScript(string filepath)
1783
+ {
1784
+ if (filepath == null)
1785
1786
+ throw new ArgumentNullException("filepath");
1787
+ }
1788
+ return filepath.EndsWith(".psm1");
1789
1790
+
1791
/// <summary>
1792
/// Checks if a given file is a valid PowerShell module manifest
1793
/// </summary>
0 commit comments