Skip to content

Commit 0477d08

Browse files
author
Kapil Borle
committed
Set experimental parameters for debug mode
1 parent 641ba45 commit 0477d08

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Rules/UseCompatibleCmdlets.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ private void SetupCmdletsDictionary()
274274
}
275275
}
276276

277+
referencePlatform = defaultReferencePlatform;
278+
#if DEBUG
277279
// Setup reference file
278280
object referenceObject;
279281
if (ruleArgs.TryGetValue("reference", out referenceObject))
@@ -284,16 +286,6 @@ private void SetupCmdletsDictionary()
284286
return;
285287
}
286288
}
287-
else
288-
{
289-
referencePlatform = defaultReferencePlatform;
290-
}
291-
292-
// check if the reference file has valid platformSpec
293-
if (!IsValidPlatformString(referencePlatform))
294-
{
295-
return;
296-
}
297289

298290
object modeObject;
299291
if (ruleArgs.TryGetValue("mode", out modeObject))
@@ -322,6 +314,13 @@ private void SetupCmdletsDictionary()
322314

323315
return;
324316
}
317+
#endif
318+
319+
// check if the reference file has valid platformSpec
320+
if (!IsValidPlatformString(referencePlatform))
321+
{
322+
return;
323+
}
325324

326325
var settingsPath = GetShippedSettingsDirectory();
327326
if (settingsPath == null

0 commit comments

Comments
 (0)