Style: Add a space after "//" in comments and remove unneeded comments after "}" (#8576)

This commit is contained in:
Ilya
2019-01-05 17:51:20 -08:00
committed by Dongbo Wang
parent 1be3f4cc0e
commit 233b54ed65
296 changed files with 2729 additions and 2727 deletions
@@ -298,7 +298,7 @@ namespace Microsoft.PowerShell.Commands
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -214,7 +214,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionDisableUser);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -214,7 +214,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionEnableUser);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -165,7 +165,7 @@ namespace Microsoft.PowerShell.Commands
}
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -157,12 +157,12 @@ namespace Microsoft.PowerShell.Commands
// if no members are specified, return all of them
if (Member == null)
{
//return membership;
// return membership;
rv = new List<LocalPrincipal>(membership);
}
else
{
//var rv = new List<LocalPrincipal>();
// var rv = new List<LocalPrincipal>();
rv = new List<LocalPrincipal>();
if (WildcardPattern.ContainsWildcardCharacters(Member))
@@ -230,7 +230,7 @@ namespace Microsoft.PowerShell.Commands
return ProcessesMembership(sam.GetLocalGroupMembers(groupSid));
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -167,7 +167,7 @@ namespace Microsoft.PowerShell.Commands
}
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -115,7 +115,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionNewGroup);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -289,7 +289,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionNewUser);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -207,7 +207,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionRemoveGroup);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -296,7 +296,7 @@ namespace Microsoft.PowerShell.Commands
}
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -208,7 +208,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionRemoveUser);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -227,7 +227,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(groupName, msg);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -227,7 +227,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(userName, msg);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -174,7 +174,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionSetGroup);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -317,7 +317,7 @@ namespace Microsoft.PowerShell.Commands
return ShouldProcess(target, Strings.ActionSetUser);
}
#endregion Private Methods
}//End Class
}
}//End namespace
}
@@ -1619,12 +1619,12 @@ namespace System.Management.Automation.SecurityAccountsManager
FullName = allInfo.FullName.ToString(),
Description = allInfo.AdminComment.ToString(),
//TODO: why is this coming up as 864000000000 (number of ticks per day)?
// TODO: why is this coming up as 864000000000 (number of ticks per day)?
PasswordChangeableDate = DateTimeFromSam(allInfo.PasswordCanChange.QuadPart),
PasswordExpires = DateTimeFromSam(allInfo.PasswordMustChange.QuadPart),
//TODO: why is this coming up as 0X7FFFFFFFFFFFFFFF (largest signed 64-bit, and well out of range of DateTime)?
// TODO: why is this coming up as 0X7FFFFFFFFFFFFFFF (largest signed 64-bit, and well out of range of DateTime)?
AccountExpires = DateTimeFromSam(allInfo.AccountExpires.QuadPart),
LastLogon = DateTimeFromSam(allInfo.LastLogon.QuadPart),
PasswordLastSet = DateTimeFromSam(allInfo.PasswordLastSet.QuadPart),
@@ -2778,7 +2778,7 @@ namespace System.Management.Automation.SecurityAccountsManager
{
// Bug: 7407413 :
// If accountname is in the format domain1\user1,
//then AccountName.ToString() will return domain1\domain1\user1
// then AccountName.ToString() will return domain1\domain1\user1
// Ideally , accountname should be processed to hold only account name (without domain)
// as we are keeping the domain in 'DomainName' variable.
@@ -2828,7 +2828,7 @@ namespace System.Management.Automation.SecurityAccountsManager
switch (info.Use)
{
case SID_NAME_USE.SidTypeAlias: //TODO: is this the right thing to do???
case SID_NAME_USE.SidTypeAlias: // TODO: is this the right thing to do???
case SID_NAME_USE.SidTypeGroup:
case SID_NAME_USE.SidTypeWellKnownGroup:
rv.ObjectClass = Strings.ObjectClassGroup;
@@ -2948,7 +2948,7 @@ namespace System.Management.Automation.SecurityAccountsManager
return new UserNotFoundException(context.ObjectName, context.target);
case NtStatus.STATUS_SPECIAL_GROUP: // The group specified is a special group and cannot be operated on in the requested fashion.
//case NtStatus.STATUS_SPECIAL_ALIAS: // referred to in source for SAM api, but not in ntstatus.h!!!
// case NtStatus.STATUS_SPECIAL_ALIAS: // referred to in source for SAM api, but not in ntstatus.h!!!
return new InvalidOperationException(StringUtil.Format(Strings.InvalidForGroup, context.ObjectName));
@@ -2984,7 +2984,7 @@ namespace System.Management.Automation.SecurityAccountsManager
case NtStatus.STATUS_PASSWORD_RESTRICTION:
return new InvalidPasswordException(Native.Win32.RtlNtStatusToDosError(ntStatus));
//TODO: do we want to handle these?
// TODO: do we want to handle these?
// they appear to be returned only in functions we are not calling
case NtStatus.STATUS_INVALID_SID: // member sid is corrupted
case NtStatus.STATUS_INVALID_MEMBER: // member has wrong account type
@@ -196,7 +196,7 @@ namespace System.Management.Automation.SecurityAccountsManager.Native.NtSam
[StructLayout(LayoutKind.Sequential)]
internal struct USER_EXPIRES_INFORMATION
{
//LARGE_INTEGER AccountExpires;
// LARGE_INTEGER AccountExpires;
public Int64 AccountExpires;
}