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

@ -9,4 +9,4 @@ namespace AppThrowing
throw new MyException();
}
}
}
}

View file

@ -1,3 +1,3 @@
public class EmptyItemGroup
{
}
}

View file

@ -1,4 +1,4 @@
// Dummy reference - it can be used as an existing reference in any of the projects
public class Lib
{
}
}

View file

@ -2,4 +2,4 @@
// it should be used as a reference passed to the dotnet add p2p
public class ValidRef
{
}
}

View file

@ -1,3 +1,3 @@
public class WithDoubledRef
{
}
}

View file

@ -1,3 +1,3 @@
public class WithExistingRefCondOnItem
{
}
}

View file

@ -1,3 +1,3 @@
public class WithExistingRefCondWhitespaces
{
}
}

View file

@ -1,3 +1,3 @@
public class WithRefCondNonUniform
{
}
}

View file

@ -1,3 +1,3 @@
public class WithRefNoCondNonUniform
{
}
}

View file

@ -7,4 +7,4 @@ namespace AppWithOutputAssemblyName
System.Console.WriteLine("Hello, World!");
}
}
}
}

View file

@ -3,4 +3,4 @@ namespace LibraryWithOutputAssemblyName
public class MyClass
{
}
}
}

View file

@ -6,4 +6,4 @@ class Program
{
Console.WriteLine("Hello World!");
}
}
}

View file

@ -29,4 +29,4 @@ namespace TestNamespace
}
#endif
}
}
}

View file

@ -16,4 +16,4 @@ namespace TestNamespace
Assert.Fail();
}
}
}
}

View file

@ -47,4 +47,4 @@ namespace Microsoft.DotNet.Cli.Build.Framework
}
}
}
}
}

View file

@ -5,4 +5,4 @@ namespace Microsoft.DotNet.Cli.Build.Framework
x86 = 1,
x64 = 2
}
}
}

View file

@ -398,4 +398,4 @@ namespace Microsoft.DotNet.Build.CloudTestTasks
return dictionary;
}
}
}
}

View file

@ -164,4 +164,4 @@ namespace Microsoft.DotNet.Build.CloudTestTasks
return true;
}
}
}
}

View file

@ -44,4 +44,4 @@ namespace Microsoft.DotNet.Cli.Build
return osname;
}
}
}
}

View file

@ -61,4 +61,4 @@ namespace Microsoft.DotNet.Cli.Build
return true;
}
}
}
}

View file

@ -180,4 +180,4 @@ namespace Microsoft.DotNet.Build.CloudTestTasks
}
}
}
}
}

View file

@ -183,4 +183,4 @@ namespace Microsoft.DotNet.Build.CloudTestTasks
}
}
}
}
}

View file

@ -128,4 +128,4 @@ namespace Microsoft.DotNet.Build.Tasks
return subdirectory.Substring(chop);
}
}
}
}

View file

@ -82,4 +82,4 @@ namespace Microsoft.DotNet.Build.Tasks
return true;
}
}
}
}

View file

@ -11,9 +11,9 @@ namespace Microsoft.DotNet.Cli.Build
public BuildFailureException(string message) : base(message)
{
}
public BuildFailureException(string message, Exception innerException) : base(message, innerException)
{
}
}
}
}

View file

@ -49,4 +49,4 @@ namespace Microsoft.DotNet.Archive
}
}
}
}
}

View file

@ -15,4 +15,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
public readonly TLeft Left;
public readonly TDown Down;
}
}
}

View file

@ -60,4 +60,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
return result.Value.ToArray();
}
}
}
}

View file

@ -31,4 +31,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
return new Result<TValue>(result, new Cursor(_text, _start + length, _end));
}
}
}
}

View file

@ -49,4 +49,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
return pos => pos.Peek(0) != ch ? Result<char>.Empty : pos.Advance(ch, 1);
}
}
}
}

View file

@ -4,4 +4,4 @@
namespace Microsoft.DotNet.Cli.Utils.CommandParsing
{
public delegate Result<TValue> Parser<TValue>(Cursor cursor);
}
}

View file

@ -82,4 +82,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
return parser.Build(x => String.Concat(x.ToArray()));
}
}
}
}

View file

@ -30,4 +30,4 @@ namespace Microsoft.DotNet.Cli.Utils.CommandParsing
return new Result<TValue2>(value2, Remainder);
}
}
}
}

View file

@ -29,4 +29,4 @@
// command not found
None
}
}
}

View file

@ -39,4 +39,4 @@ namespace Microsoft.DotNet.Cli.Utils
return null;
}
}
}
}

View file

@ -312,4 +312,4 @@ namespace Microsoft.DotNet.Cli.Utils
return new ResourceAssembly(resourceAssembly.Path, locale);
}
}
}
}

View file

@ -4,4 +4,4 @@ namespace Microsoft.DotNet.Cli.Utils
{
CompositeCommandResolver CreateCommandResolver();
}
}
}

View file

@ -24,4 +24,4 @@ namespace Microsoft.DotNet.Cli.Utils
Dictionary<string, string> EnvironmentVariables { get; }
}
}
}

View file

@ -98,4 +98,4 @@ namespace Microsoft.DotNet.Cli.Utils
}
}
}
}
}

View file

@ -170,4 +170,4 @@ namespace Microsoft.DotNet.Cli.Utils
return Path.Combine(intermediateOutputPath, "project.assets.json");
}
}
}
}

View file

@ -22,4 +22,4 @@ namespace Microsoft.DotNet.Cli.Utils
return files.Where(f => !IsPlaceholderFile(f.Path));
}
}
}
}

View file

@ -14,4 +14,4 @@ namespace Microsoft.DotNet.Cli.Utils
RelativePath = relativePath;
}
}
}
}

View file

@ -24,4 +24,4 @@ namespace Microsoft.DotNet.Cli.Utils
return $"{Name}.dll";
}
}
}
}

View file

@ -22,4 +22,4 @@ namespace Microsoft.DotNet.Cli.Utils
StdErr = stdErr;
}
}
}
}

View file

@ -32,4 +32,4 @@ namespace Microsoft.DotNet.Cli.Utils
}
}
}
}
}

View file

@ -18,4 +18,4 @@ namespace Microsoft.DotNet.Cli.Utils
{
}
}
}
}

View file

@ -70,4 +70,4 @@ namespace Microsoft.DotNet.Cli.Utils
public string StaticLib { get; internal set; }
}
}
}
}

View file

@ -18,4 +18,4 @@ namespace Microsoft.DotNet.Cli.Utils
Data.Add(ExceptionExtensions.CLI_User_Displayed_Exception, true);
}
}
}
}

View file

@ -86,4 +86,4 @@ namespace Microsoft.DotNet.Cli.Utils
public const string UnableToInvokeMemberNameAfterCommand = "Unable to invoke {0} after the command has been run";
}
}
}

View file

@ -79,7 +79,7 @@ namespace Microsoft.DotNet.Tools.Common
EnsureDirectoryExists(directory);
}
public static void EnsureDirectoryExists(string directoryPath)
{
if (!Directory.Exists(directoryPath))
@ -123,7 +123,7 @@ namespace Microsoft.DotNet.Tools.Common
}
/// <summary>
/// Returns path2 relative to path1, with Path.DirectorySeparatorChar as separator but ignoring directory
/// Returns path2 relative to path1, with Path.DirectorySeparatorChar as separator but ignoring directory
/// traversals.
/// </summary>
public static string GetRelativePathIgnoringDirectoryTraversals(string path1, string path2)
@ -333,4 +333,4 @@ namespace Microsoft.DotNet.Tools.Common
}
}
}
}
}

View file

@ -31,4 +31,4 @@ namespace Microsoft.DotNet.Cli.Utils
return _threads;
}
}
}
}

View file

@ -24,4 +24,4 @@ namespace Microsoft.DotNet.Cli.Utils
Children = children.OrderBy(e => e.StartUtc).ToList();
}
}
}
}

View file

@ -77,4 +77,4 @@ namespace Microsoft.DotNet.Cli.Utils
}
}
}
}
}

View file

@ -73,4 +73,4 @@ namespace Microsoft.DotNet.Cli.Utils
public PerfTraceEvent CreateEvent() => new PerfTraceEvent(_eventType, _instance, Children, _startUtc, _stopwatch.Elapsed);
}
}
}
}

View file

@ -7,4 +7,4 @@ namespace Microsoft.DotNet.Configurer
{
void PrimeCache();
}
}
}

View file

@ -13,4 +13,4 @@ namespace Microsoft.DotNet.Configurer
void CreateIfNotExists();
}
}
}

View file

@ -21,4 +21,4 @@ A command is running to initially populate your local package cache, to improve
public const string FailedToPrimeCacheError = "Failed to prime the NuGet cache. {0} failed with: {1}";
}
}
}

View file

@ -12,11 +12,11 @@ namespace Microsoft.DotNet.Configurer
{
private ITemporaryDirectory _temporaryDirectory;
public string NuGetPackagesArchive =>
public string NuGetPackagesArchive =>
Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "nuGetPackagesArchive.lzma"));
public NuGetPackagesArchiver() : this(FileSystemWrapper.Default.Directory)
{
{
}
internal NuGetPackagesArchiver(IDirectory directory)
@ -25,7 +25,7 @@ namespace Microsoft.DotNet.Configurer
}
public string ExtractArchive()
{
{
var progress = new ConsoleProgressReport();
var archive = new IndexedArchive();
@ -37,6 +37,6 @@ namespace Microsoft.DotNet.Configurer
public void Dispose()
{
_temporaryDirectory.Dispose();
}
}
}
}
}

View file

@ -2,4 +2,4 @@ using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyMetadataAttribute("Serviceable", "True")]
[assembly: InternalsVisibleTo("Microsoft.DotNet.Configurer.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.DotNet.Configurer.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]

View file

@ -43,4 +43,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
return directoryFullName;
}
}
}
}

View file

@ -14,4 +14,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
return Environment.GetEnvironmentVariable(name);
}
}
}
}

View file

@ -11,4 +11,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
public IDirectory Directory { get; } = new DirectoryWrapper();
}
}
}

View file

@ -41,4 +41,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
}
}
}
}
}

View file

@ -15,4 +15,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
string GetDirectoryFullName(string path);
}
}
}

View file

@ -7,4 +7,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
{
string GetEnvironmentVariable(string name);
}
}
}

View file

@ -23,4 +23,4 @@ namespace Microsoft.Extensions.EnvironmentAbstractions
void CreateEmptyFile(string path);
}
}
}

View file

@ -16,4 +16,4 @@ namespace Microsoft.DotNet.ProjectJsonMigration
public const string MstestTestFrameworkVersion = "1.0.8-rc";
public const string BundleMinifierToolVersion = "2.2.301";
}
}
}

View file

@ -52,4 +52,4 @@ namespace Microsoft.DotNet.ProjectJsonMigration
return !string.IsNullOrEmpty(version);
}
}
}
}

View file

@ -10,4 +10,4 @@ namespace Microsoft.DotNet.ProjectJsonMigration
void AddDotnetSupportedPackageVersions(
IDictionary<PackageDependencyInfo, PackageDependencyInfo> projectDependenciesPackages);
}
}
}

View file

@ -123,4 +123,4 @@ namespace Microsoft.DotNet.ProjectJsonMigration
public const string PropertyInfo = "{0}: {1}, {{ Name={2}, Value={3} }}";
}
}
}

View file

@ -54,4 +54,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel
return !(left == right);
}
}
}
}

View file

@ -11,22 +11,22 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Compilation
/// The fully-qualified path to the analyzer assembly.
/// </summary>
public string AssemblyPath { get; }
/// <summary>
/// The supported language of the analyzer assembly.
/// </summary>
public string AnalyzerLanguage { get; }
/// <summary>
/// The required framework for hosting the analyzer assembly.
/// </summary>
public NuGetFramework RequiredFramework { get; }
/// <summary>
/// The required runtime for hosting the analyzer assembly.
/// </summary>
public string RuntimeIdentifier { get; }
public AnalyzerReference(
string assembly,
NuGetFramework framework,
@ -39,4 +39,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Compilation
RuntimeIdentifier = runtimeIdentifier;
}
}
}
}

View file

@ -26,4 +26,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Compilation
/// </summary>
public IReadOnlyList<LibraryAsset> Assets { get; }
}
}
}

View file

@ -188,4 +188,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Compilation
list.Add(item);
}
}
}
}

View file

@ -15,4 +15,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Compilation
public string Locale { get; }
}
}
}

View file

@ -101,4 +101,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel
return includeFiles.Select(f => f.SourcePath);
}
}
}
}

View file

@ -40,9 +40,9 @@ namespace Microsoft.DotNet.Internal.ProjectModel
source: source)
{ }
public DiagnosticMessage(string errorCode, string message, string formattedMessage, string filePath,
public DiagnosticMessage(string errorCode, string message, string formattedMessage, string filePath,
DiagnosticMessageSeverity severity, int startLine, int startColumn, int endLine, int endColumn)
: this(errorCode,
: this(errorCode,
message,
formattedMessage,
filePath,
@ -129,4 +129,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel
/// </summary>
public LibraryDescription Source { get; }
}
}
}

View file

@ -12,4 +12,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel
Warning,
Error,
}
}
}

View file

@ -13,4 +13,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Abstractions
public abstract FileInfoBase GetFile(string path);
}
}
}

View file

@ -6,4 +6,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Abstractions
internal abstract class FileInfoBase : FileSystemInfoBase
{
}
}
}

View file

@ -29,4 +29,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Abstractions
get { return new DirectoryInfoWrapper(_fileInfo.Directory); }
}
}
}
}

View file

@ -11,4 +11,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Abstractions
public abstract DirectoryInfoBase ParentDirectory { get; }
}
}
}

View file

@ -37,4 +37,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing
return hashCodeCombiner.CombinedHash;
}
}
}
}

View file

@ -9,4 +9,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal
{
IList<IPathSegment> Segments { get; }
}
}
}

View file

@ -9,4 +9,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal
bool Match(string value);
}
}
}

View file

@ -9,4 +9,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal
IPatternContext CreatePatternContextForExclude();
}
}
}

View file

@ -15,4 +15,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal
IList<IPathSegment> EndsWith { get; }
}
}
}

View file

@ -14,4 +14,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return false;
}
}
}
}

View file

@ -45,4 +45,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return StringComparisonHelper.GetStringComparer(_comparisonType).GetHashCode(Value);
}
}
}
}

View file

@ -16,4 +16,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return string.Equals(LiteralParent, value, StringComparison.Ordinal);
}
}
}
}

View file

@ -14,4 +14,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return false;
}
}
}
}

View file

@ -8,7 +8,7 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
{
internal class WildcardPathSegment : IPathSegment
{
// It doesn't matter which StringComparison type is used in this MatchAll segment because
// It doesn't matter which StringComparison type is used in this MatchAll segment because
// all comparing are skipped since there is no content in the segment.
public static readonly WildcardPathSegment MatchAll = new WildcardPathSegment(
string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
@ -71,4 +71,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return true;
}
}
}
}

View file

@ -36,4 +36,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
return _stack.Count == 0;
}
}
}
}

View file

@ -21,4 +21,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal
return new PatternTestResult(isSuccessful: true, stem: stem);
}
}
}
}

View file

@ -104,7 +104,7 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
pattern[beginSegment + 2] == '.')
{
// recognize **.
// swallow the first *, add the recursive path segment and
// swallow the first *, add the recursive path segment and
// the remaining part will be treat as wild card in next loop.
segment = new RecursiveWildcardSegment();
endSegment = beginSegment;
@ -269,4 +269,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing.Internal.Pat
}
}
}
}
}

View file

@ -45,4 +45,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing
return context.Execute();
}
}
}
}

View file

@ -41,4 +41,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing
return result;
}
}
}
}

View file

@ -14,4 +14,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.FileSystemGlobbing
public IEnumerable<FilePatternMatch> Files { get; set; }
}
}
}

View file

@ -46,4 +46,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Files
return new string[0];
}
}
}
}

View file

@ -20,4 +20,4 @@ namespace Microsoft.DotNet.Internal.ProjectModel.Graph
Exports = exports.Any() ? exports : new List<LockFileTargetLibrary>(0);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show more