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 c7e200e commit 3ca8d0bCopy full SHA for 3ca8d0b
Rules/UsePSCredentialType.cs
@@ -115,7 +115,7 @@ private bool WrongCredentialUsage(ParameterAst parameter)
115
var credentialAttribute = parameter.Attributes.FirstOrDefault(paramAttribute => paramAttribute.TypeName.GetReflectionType() == typeof(CredentialAttribute));
116
117
// check that both exists and pscredentialtype comes before credential attribute
118
- if (psCredentialType != null && credentialAttribute != null && psCredentialType.Extent.EndOffset < credentialAttribute.Extent.StartOffset)
+ if (psCredentialType != null && credentialAttribute != null && psCredentialType.Extent.EndOffset <= credentialAttribute.Extent.StartOffset)
119
{
120
return false;
121
}
0 commit comments