We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f73aa8 commit ba212edCopy full SHA for ba212ed
1 file changed
Rules/UseIdenticalMandatoryParametersDSC.cs
@@ -45,10 +45,17 @@ public class UseIdenticalMandatoryParametersDSC : IDSCResourceRule
45
/// <returns>The results of the analysis</returns>
46
public IEnumerable<DiagnosticRecord> AnalyzeDSCResource(Ast ast, string fileName)
47
{
48
- if (ast == null) throw new ArgumentNullException(Strings.NullAstErrorMessage);
+ if (ast == null)
49
+ {
50
+ throw new ArgumentNullException(Strings.NullAstErrorMessage);
51
+ }
52
+
53
+ if (fileName == null)
54
55
+ throw new ArgumentNullException(nameof(fileName));
56
57
- // todo write tests for same
- // todo update documentation
58
+ // Get the keys in the corresponding mof file
59
var keys = GetKeys(fileName);
60
61
// Loop through Set/Test/Get TargetResource DSC cmdlets
0 commit comments