-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Removed double spaces from .cs and .ps1 files #4743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -3122,7 +3122,7 @@ internal static bool DisallowPrivateReflection(TypeInfo typeInfo) | |||
} | |||
|
|||
var productAttribute = assembly.GetCustomAttribute<AssemblyProductAttribute>(); | |||
if (productAttribute != null && string.Equals(productAttribute.Product, "Microsoft� .NET Framework", StringComparison.OrdinalIgnoreCase)) | |||
if (productAttribute != null && string.Equals(productAttribute.Product, "Microsoft� .NET Framework", StringComparison.OrdinalIgnoreCase)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will revert this
if (result == null) | ||
{ | ||
result = AutomountBuiltInDrive(name); // internally this calls GetDrive(name, false) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what is changed here? EOL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git gave some warnings about line endings (and performing some LF<->CRLF conversions on my behalf since I was doing this on Windows), so I think that's what this is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarify.
Closed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original file had inconsistent line endings, LF
everywhere but this region. Your script changed the file to have consistent line endings, so git sees this region differently I guess.
@@ -525,7 +525,7 @@ protected override void StopProcessing() | |||
private CustomSerialization _serializer; | |||
|
|||
/// <summary> | |||
///Memory Stream used for serialization | |||
///Memory Stream used for serialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add space before Memory
.
It seems we should set final point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
…istent formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So many files - we need an approvement from someone else.
if (result == null) | ||
{ | ||
result = AutomountBuiltInDrive(name); // internally this calls GetDrive(name, false) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarify.
Closed.
@@ -95,7 +95,7 @@ private static string PSObjectTypeName(PSObject so) | |||
FormattingCommandLineParameters parameters) | |||
{ | |||
ViewDefinition view = null; | |||
const string findViewType = "FINDING VIEW TYPE: {0}"; | |||
const string findViewType = "FINDING VIEW TYPE: {0}"; | |||
const string findViewShapeType = "FINDING VIEW {0} TYPE: {1}"; | |||
const string findViewNameType = "FINDING VIEW NAME: {0} TYPE: {1}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
@@ -3122,7 +3122,7 @@ internal static bool DisallowPrivateReflection(TypeInfo typeInfo) | |||
} | |||
|
|||
var productAttribute = assembly.GetCustomAttribute<AssemblyProductAttribute>(); | |||
if (productAttribute != null && string.Equals(productAttribute.Product, "Microsoft� .NET Framework", StringComparison.OrdinalIgnoreCase)) | |||
if (productAttribute != null && string.Equals(productAttribute.Product, "Microsoft® .NET Framework", StringComparison.OrdinalIgnoreCase)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to Microsoft\u00a9
(assuming that is the correct character). When we run automated tools, they always mess this character up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the character in some files - maybe fix this all in follow PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue #4752 as we should just fix that (and potentially Trademark as well)
Did a regular expression search "\b \b" in VSCode while checking if https://github.com/PowerShell/PowerShell/pull/4741/files missed any, so fixing the ones in .cs and .ps1 files.
A few left in that help align comments making them easier to read.
Removed one commented out code that doesn't provide value.
The file SessionStateDriveAPIs.cs has a section that I didn't change, but git complained it had LF line endings and resaving as CRLF, so maybe only that section had mixed line endings.