|
124 | 124 | <value>Avoid Using Cmdlet Aliases or omitting the 'Get-' prefix.</value> |
125 | 125 | </data> |
126 | 126 | <data name="AvoidUsingEmptyCatchBlockDescription" xml:space="preserve"> |
127 | | - <value>Empty catch blocks are considered poor design decisions because if an error occurs in the try block, this error is simply swallowed and not acted upon. While this does not inherently lead to bad things. It can and this should be avoided if possible. To fix a violation of this rule, using Write-Error or throw statements in catch blocks.</value> |
| 127 | + <value>Empty catch blocks are considered poor design decisions because if an error occurs in the try block, this error is simply swallowed and not acted upon. While this does not inherently lead to bad things. It can and this should be avoided if possible. To fix a violation of this rule, use Write-Error or throw statements in catch blocks.</value> |
128 | 128 | </data> |
129 | 129 | <data name="AvoidUsingEmptyCatchBlockCommonName" xml:space="preserve"> |
130 | 130 | <value>Avoid Using Empty Catch Block</value> |
|
136 | 136 | <value>Avoid Using Invoke-Expression</value> |
137 | 137 | </data> |
138 | 138 | <data name="AvoidUsingPositionalParametersDescription" xml:space="preserve"> |
139 | | - <value>Readability and clarity should be the goal of any script we expect to maintain over time. When calling a command that takes parameters, where possible consider using name parameters as opposed to positional parameters. To fix a violation of this rule, please use named parameters instead of positional parameters when calling a command.</value> |
| 139 | + <value>Readability and clarity should be the goal of any script we expect to maintain over time. When calling a command that takes parameters, where possible consider using named parameters as opposed to positional parameters. To fix a violation of this rule, please use named parameters instead of positional parameters when calling a command.</value> |
140 | 140 | </data> |
141 | 141 | <data name="AvoidUsingPositionalParametersCommonName" xml:space="preserve"> |
142 | 142 | <value>Avoid Using Positional Parameters</value> |
|
178 | 178 | <value>No Global Variables</value> |
179 | 179 | </data> |
180 | 180 | <data name="PossibleIncorrectComparisonWithNullDescription" xml:space="preserve"> |
181 | | - <value>Checks that $null is on the left side of any equaltiy comparisons (eq, ne, ceq, cne, ieq, ine). When there is an array on the left side of a null equality comparison, PowerShell will check for a $null IN the array rather than if the array is null. If the two sides of the comaprision are switched this is fixed. Therefore, $null should always be on the left side of equality comparisons just in case.</value> |
| 181 | + <value>Checks that $null is on the left side of any equality comparisons (eq, ne, ceq, cne, ieq, ine). When there is an array on the left side of a null equality comparison, PowerShell will check for a $null IN the array rather than if the array is null. If the two sides of the comparison are switched this is fixed. Therefore, $null should always be on the left side of equality comparisons just in case.</value> |
182 | 182 | </data> |
183 | 183 | <data name="PossibleIncorrectComparisonWithNullError" xml:space="preserve"> |
184 | 184 | <value>$null should be on the left side of equality comparisons.</value> |
|
618 | 618 | <data name="UseShouldProcessForStateChangingFunctionsCommonName" xml:space="preserve"> |
619 | 619 | <value>Use ShouldProcess For State Changing Functions</value> |
620 | 620 | </data> |
621 | | - <data name="UseShouldProcessForStateChangingFunctionsDescrption" xml:space="preserve"> |
| 621 | + <data name="UseShouldProcessForStateChangingFunctionsDescription" xml:space="preserve"> |
622 | 622 | <value>Functions that have verbs like New, Start, Stop, Set, Reset, Restart that change system state should support 'ShouldProcess'.</value> |
623 | 623 | </data> |
624 | 624 | <data name="UseShouldProcessForStateChangingFunctionsError" xml:space="preserve"> |
|
703 | 703 | <value>PowerShell help file needs to use UTF8 Encoding.</value> |
704 | 704 | </data> |
705 | 705 | <data name="UseUTF8EncodingForHelpFileError" xml:space="preserve"> |
706 | | - <value>File {0} has to use UTF8 instead of {1} encoding because it is a powershell help file.</value> |
| 706 | + <value>File {0} has to use UTF8 instead of {1} encoding because it is a PowerShell help file.</value> |
707 | 707 | </data> |
708 | 708 | <data name="UseUTF8EncodingForHelpFileName" xml:space="preserve"> |
709 | 709 | <value>UseUTF8EncodingForHelpFile</value> |
|
742 | 742 | <value>Misleading Backtick</value> |
743 | 743 | </data> |
744 | 744 | <data name="MisleadingBacktickDescription" xml:space="preserve"> |
745 | | - <value>Ending a line with an escaped whitepsace character is misleading. A trailing backtick is usually used for line continuation. Users typically don't intend to end a line with escaped whitespace.</value> |
| 745 | + <value>Ending a line with an escaped whitespace character is misleading. A trailing backtick is usually used for line continuation. Users typically don't intend to end a line with escaped whitespace.</value> |
746 | 746 | </data> |
747 | 747 | <data name="MisleadingBacktickName" xml:space="preserve"> |
748 | 748 | <value>MisleadingBacktick</value> |
|
786 | 786 | <data name="UseToExportFieldsInManifestCorrectionDescription" xml:space="preserve"> |
787 | 787 | <value>Replace {0} with {1}</value> |
788 | 788 | </data> |
789 | | - <data name="UseLiteralInitilializerForHashtableCommonName" xml:space="preserve"> |
| 789 | + <data name="UseLiteralInitializerForHashtableCommonName" xml:space="preserve"> |
790 | 790 | <value>Create hashtables with literal initializers</value> |
791 | 791 | </data> |
792 | | - <data name="UseLiteralInitilializerForHashtableDescription" xml:space="preserve"> |
| 792 | + <data name="UseLiteralInitializerForHashtableDescription" xml:space="preserve"> |
793 | 793 | <value>Use literal initializer, @{{}}, for creating a hashtable as they are case-insensitive by default</value> |
794 | 794 | </data> |
795 | | - <data name="UseLiteralInitilializerForHashtableError" xml:space="preserve"> |
796 | | - <value>Create hashtables with literal initliazers</value> |
| 795 | + <data name="UseLiteralInitializerForHashtableError" xml:space="preserve"> |
| 796 | + <value>Create hashtables with literal initializers</value> |
797 | 797 | </data> |
798 | | - <data name="UseLiteralInitilializerForHashtableName" xml:space="preserve"> |
| 798 | + <data name="UseLiteralInitializerForHashtableName" xml:space="preserve"> |
799 | 799 | <value>UseLiteralInitializerForHashtable</value> |
800 | 800 | </data> |
801 | 801 | <data name="UseCompatibleCmdletsName" xml:space="preserve"> |
|
874 | 874 | <value>The type accelerator '{0}' is not available by default in PowerShell version '{1}' on platform '{2}'</value> |
875 | 875 | </data> |
876 | 876 | <data name="AvoidGlobalFunctionsCommonName" xml:space="preserve"> |
877 | | - <value>Avoid global functiosn and aliases</value> |
| 877 | + <value>Avoid global functions and aliases</value> |
878 | 878 | </data> |
879 | 879 | <data name="AvoidGlobalFunctionsDescription" xml:space="preserve"> |
880 | 880 | <value>Checks that global functions and aliases are not used. Global functions are strongly discouraged as they can cause errors across different systems.</value> |
|
979 | 979 | <value>Use consistent indentation</value> |
980 | 980 | </data> |
981 | 981 | <data name="UseConsistentIndentationDescription" xml:space="preserve"> |
982 | | - <value>Each statement block should have a consistent indenation.</value> |
| 982 | + <value>Each statement block should have a consistent indentation.</value> |
983 | 983 | </data> |
984 | 984 | <data name="UseConsistentIndentationError" xml:space="preserve"> |
985 | 985 | <value>Indentation not consistent</value> |
|
991 | 991 | <value>Use whitespaces</value> |
992 | 992 | </data> |
993 | 993 | <data name="UseConsistentWhitespaceDescription" xml:space="preserve"> |
994 | | - <value>Check for whitespace between keyword and open paren/curly, around assigment operator ('='), around arithmetic operators and after separators (',' and ';')</value> |
| 994 | + <value>Check for whitespace between keyword and open paren/curly, around assignment operator ('='), around arithmetic operators and after separators (',' and ';')</value> |
995 | 995 | </data> |
996 | 996 | <data name="UseConsistentWhitespaceErrorBeforeOpeningBrace" xml:space="preserve"> |
997 | 997 | <value>Use space before open brace.</value> |
|
1015 | 1015 | <value>Use SupportsShouldProcess</value> |
1016 | 1016 | </data> |
1017 | 1017 | <data name="UseSupportsShouldProcessDescription" xml:space="preserve"> |
1018 | | - <value>Commands typically provide Confirm and Whatif parameters to give more control on its execution in an interactive environment. In PowerShell, a command can use a SupportsShouldProcess attribute to provide this capability. Hence, manual addition of these parameters to a command is discouraged. If a commands need Confirm and Whatif parameters, then it should support ShouldProcess.</value> |
| 1018 | + <value>Commands typically provide Confirm and Whatif parameters to give more control on its execution in an interactive environment. In PowerShell, a command can use a SupportsShouldProcess attribute to provide this capability. Hence, manual addition of these parameters to a command is discouraged. If a command needs Confirm and Whatif parameters, then it should support ShouldProcess.</value> |
1019 | 1019 | </data> |
1020 | 1020 | <data name="UseSupportsShouldProcessError" xml:space="preserve"> |
1021 | 1021 | <value>Whatif and/or Confirm manually defined in function {0}. Instead, please use SupportsShouldProcess attribute.</value> |
|
1042 | 1042 | <value>Use a different variable name</value> |
1043 | 1043 | </data> |
1044 | 1044 | <data name="AvoidAssignmentToReadOnlyAutomaticVariableCommonName" xml:space="preserve"> |
1045 | | - <value>Changing automtic variables might have undesired side effects</value> |
| 1045 | + <value>Changing automatic variables might have undesired side effects</value> |
1046 | 1046 | </data> |
1047 | 1047 | <data name="AvoidAssignmentToReadOnlyAutomaticVariableDescription" xml:space="preserve"> |
1048 | | - <value>This automatic variables is built into PowerShell and readonly.</value> |
| 1048 | + <value>This automatic variable is built into PowerShell and readonly.</value> |
1049 | 1049 | </data> |
1050 | 1050 | <data name="AvoidAssignmentToReadOnlyAutomaticVariableError" xml:space="preserve"> |
1051 | 1051 | <value>The Variable '{0}' cannot be assigned since it is a readonly automatic variable that is built into PowerShell, please use a different name.</value> |
|
1077 | 1077 | <data name="PossibleIncorrectUsageOfRedirectionOperatorName" xml:space="preserve"> |
1078 | 1078 | <value>PossibleIncorrectUsageOfRedirectionOperator</value> |
1079 | 1079 | </data> |
1080 | | - <data name="PossibleIncorrectComparisonWithNullSuggesteCorrectionDescription" xml:space="preserve"> |
| 1080 | + <data name="PossibleIncorrectComparisonWithNullSuggestedCorrectionDescription" xml:space="preserve"> |
1081 | 1081 | <value>Use $null on the left hand side for safe comparison with $null.</value> |
1082 | 1082 | </data> |
1083 | 1083 | <data name="UseConsistentWhitespaceErrorAfterOpeningBrace" xml:space="preserve"> |
|
1177 | 1177 | <value>Avoid multiple type specifiers on parameters</value> |
1178 | 1178 | </data> |
1179 | 1179 | <data name="AvoidMultipleTypeAttributesDescription" xml:space="preserve"> |
1180 | | - <value>Prameter should not have more than one type specifier.</value> |
| 1180 | + <value>Parameter should not have more than one type specifier.</value> |
1181 | 1181 | </data> |
1182 | 1182 | <data name="AvoidMultipleTypeAttributesError" xml:space="preserve"> |
1183 | 1183 | <value>Parameter '{0}' has more than one type specifier.</value> |
|
1219 | 1219 | <value>Avoid sending credentials and secrets over unencrypted connections.</value> |
1220 | 1220 | </data> |
1221 | 1221 | <data name="AvoidUsingAllowUnencryptedAuthenticationError" xml:space="preserve"> |
1222 | | - <value>The insecure AllowUsingUnencryptedAuthentication switch was used. This should be avoided except for compatability with legacy systems.</value> |
| 1222 | + <value>The insecure AllowUnencryptedAuthentication switch was used. This should be avoided except for compatibility with legacy systems.</value> |
1223 | 1223 | </data> |
1224 | 1224 | <data name="AvoidUsingAllowUnencryptedAuthenticationName" xml:space="preserve"> |
1225 | 1225 | <value>AvoidUsingAllowUnencryptedAuthentication</value> |
|
0 commit comments