Trailing newlines + standardize tabs -> spaces

This commit is contained in:
Piotr Puszkiewicz 2017-03-02 20:35:20 -08:00
parent d9a06ba95c
commit e617376bc7
181 changed files with 285 additions and 285 deletions

View file

@ -6,7 +6,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
/// <summary>
/// Implements a few file name utilities that are needed by the compiler.
/// In general the compiler is not supposed to understand the format of the paths.
/// In rare cases it needs to check if a string is a valid file name or change the extension
/// In rare cases it needs to check if a string is a valid file name or change the extension
/// (embedded resources, netmodules, output name).
/// The APIs are intentionally limited to cover just these rare cases. Do not add more APIs.
/// </summary>
@ -18,7 +18,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
internal const char VolumeSeparatorChar = ':';
/// <summary>
/// Returns true if the string represents an unqualified file name.
/// Returns true if the string represents an unqualified file name.
/// The name may contain any characters but directory and volume separators.
/// </summary>
/// <param name="path">Path.</param>
@ -121,8 +121,8 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
/// </summary>
/// <returns>
/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
///
/// If <paramref name="path"/> is null, returns null.
///
/// If <paramref name="path"/> is null, returns null.
/// If path does not end with an extension, the new extension is appended to the path.
/// If extension is null, equivalent to <see cref="RemoveExtension"/>.
/// </returns>
@ -180,4 +180,4 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
return (fileNameStart <= 0) ? path : path.Substring(fileNameStart);
}
}
}
}

View file

@ -40,4 +40,4 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
}
}
}
}
}

View file

@ -40,4 +40,4 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
/// </summary>
Absolute,
}
}
}

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
// For example we need to be able to work with invalid paths or paths containing wildcards
internal static class PathUtilities
{
// We consider '/' a directory separator on Unix like systems.
// We consider '/' a directory separator on Unix like systems.
// On Windows both / and \ are equally accepted.
internal static readonly char DirectorySeparatorChar = IsUnixLikePlatform ? '/' : '\\';
internal static readonly char AltDirectorySeparatorChar = '/';
@ -73,7 +73,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
/// </summary>
/// <remarks>
/// Unlike <see cref="System.IO.Path.GetDirectoryName"/> it
/// doesn't check for invalid path characters,
/// doesn't check for invalid path characters,
/// doesn't strip any trailing directory separators (TODO: tomat),
/// doesn't recognize UNC structure \\computer-name\share\directory-name\file-name (TODO: tomat).
/// </remarks>
@ -295,9 +295,9 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
/// <param name="root">Absolute root path.</param>
/// <param name="relativePath">Relative path.</param>
/// <returns>
/// An absolute combined path, or null if <paramref name="relativePath"/> is
/// absolute (e.g. "C:\abc", "\\machine\share\abc"),
/// relative to the current root (e.g. "\abc"),
/// An absolute combined path, or null if <paramref name="relativePath"/> is
/// absolute (e.g. "C:\abc", "\\machine\share\abc"),
/// relative to the current root (e.g. "\abc"),
/// or relative to a drive directory (e.g. "C:abc\def").
/// </returns>
/// <seealso cref="CombinePossiblyRelativeAndRelativePaths"/>
@ -376,4 +376,4 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|| assemblyDisplayNameOrPath.IndexOf(AltDirectorySeparatorChar) != -1;
}
}
}
}