Skip to content

Commit 54a4bb2

Browse files
authored
Fix documentation examples of new UseCompatible* rules (#1225)
* FIx documentation for new UseCompatible* rules: - Enabled is not a valid key for the settings - Use profile string name that is available in the shipped version * Update UseCompatibleCommands.md * Update UseCompatibleCommands.md
1 parent 4f8e34e commit 54a4bb2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

RuleDocumentation/UseCompatibleCommands.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ An example configuration might look like:
7575
UseCompatibleCommmands = @{
7676
Enable = $true
7777
TargetProfiles = @(
78-
'ubuntu_x64_18.04_6.1.2_x64_4.0.30319.42000_core'
79-
'win-4_x64_10.0.18312.0_6.1.1_x64_4.0.30319.42000_framework'
78+
'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core'
79+
'win-48_x64_10.0.17763.0_5.1.17763.316_x64_4.0.30319.42000_framework'
8080
'MyProfile'
8181
'another_custom_profile_in_the_profiles_directory.json'
8282
'D:\My Profiles\profile1.json'

RuleDocumentation/UseCompatibleSyntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ due to those PowerShell versions not being able to parse the incompatible syntax
1313
@{
1414
Rules = @{
1515
UseCompatibleCommmands = @{
16-
Enabled = $true
16+
Enable = $true
1717
TargetedVersions = @(
1818
"6.0",
1919
"5.1",

RuleDocumentation/UseCompatibleTypes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ An example configuration might look like:
7373
@{
7474
Rules = @{
7575
UseCompatibleTypes = @{
76-
Enabled = $true
76+
Enable = $true
7777
TargetProfiles = @(
78-
'ubuntu_x64_18.04_6.1.2_x64_4.0.30319.42000_core'
79-
'win-4_x64_10.0.18312.0_6.1.1_x64_4.0.30319.42000_framework'
78+
'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core'
79+
'win-48_x64_10.0.17763.0_5.1.17763.316_x64_4.0.30319.42000_framework'
8080
'MyProfile'
8181
'another_custom_profile_in_the_profiles_directory.json'
8282
'D:\My Profiles\profile1.json'

0 commit comments

Comments
 (0)