Clean-up trailing white-spaces

Remove final new-lines
Remove trailing white-spaces
This commit is contained in:
Nirmal Guru 2021-02-14 14:02:05 +05:30 коммит произвёл Michael Hawker MSFT (XAML Llama)
Родитель 4df2705dfc
Коммит ae9e58e25e
1348 изменённых файлов: 2316 добавлений и 2337 удалений

8
.github/ISSUE_TEMPLATE/bug_report.md поставляемый
Просмотреть файл

@ -38,9 +38,9 @@ If applicable, add screenshots to help explain your problem.
## Environment
<!-- Check one or more of the following options with "x" -->
```
NuGet Package(s):
NuGet Package(s):
Package Version(s):
Package Version(s):
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
@ -64,9 +64,9 @@ Device form factor:
- [ ] Surface Hub
- [ ] IoT
Visual Studio
Visual Studio
- [ ] 2017 (version: )
- [ ] 2019 (version: )
- [ ] 2019 (version: )
- [ ] 2019 Preview (version: )
```

2
.github/ISSUE_TEMPLATE/feature_request.md поставляемый
Просмотреть файл

@ -13,7 +13,7 @@ IF NOT CERTAIN ABOUT THE FEATURE AND REQUIRE MORE CLARITY THEN PLEASE POST ON "I
## Describe the problem this feature would solve
<!-- Please describe or link to any existing issues or discussions.
A clear and concise description of what the problem is, starting with the user story.
A clear and concise description of what the problem is, starting with the user story.
Provide examples of the restrictions in the current environment that hinders the work your users or you want to perform. What are the ways this new feature will help transform and deliver those results?
For example, I am currently using the InfiniteCanvas control which lacks the TabbedCommandBar control feature. I am looking to improve user experience therefore i would like to use that in my project to provide ease of accessibility and a user-friendly interface. This new feature will provide quick access to the toolbar, enhance space utilization, etc [...] -->

2
.github/ISSUE_TEMPLATE/win32_controls.md поставляемый
Просмотреть файл

@ -2,7 +2,7 @@
name: Win32 Controls
about: I have an issue with a Toolkit WPF or WinForms control
title: "[Win32]"
labels:
labels:
assignees: ''
---

2
.github/PULL_REQUEST_TEMPLATE.md поставляемый
Просмотреть файл

@ -43,7 +43,7 @@ Please check if your PR fulfills the following requirements:
- [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [ ] Contains **NO** breaking changes
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below.
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below.
Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. -->

Просмотреть файл

@ -7,7 +7,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/main/build/nuget.png</PackageIconUrl>
<PackageIcon>images\nuget.png</PackageIcon>
<PackageProjectUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>https://github.com/windows-toolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
<DefaultLanguage>en-US</DefaultLanguage>

Просмотреть файл

@ -13,7 +13,7 @@
</PropertyGroup>
</When>
</Choose>
<!--Exclude Notifications project from this since it sets different min versions than what we want for notifications-->
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.Uwp.Build.targets" Condition="'$(UseUWP)' == 'true' and $(MSBuildProjectName) != 'Microsoft.Toolkit.Uwp.Notifications'"/>

Просмотреть файл

@ -5,4 +5,4 @@
xmlns:local="using:GazeInputTest"
RequestedTheme="Light">
</Application>
</Application>

Просмотреть файл

@ -97,4 +97,4 @@ namespace GazeInputTest
deferral.Complete();
}
}
}
}

Просмотреть файл

@ -166,7 +166,7 @@
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>

Просмотреть файл

@ -8,7 +8,7 @@
xmlns:g="using:Microsoft.Toolkit.Uwp.Input.GazeInteraction"
g:GazeInput.Interaction="Enabled"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
@ -53,4 +53,4 @@
<Button Grid.Column="1" Content="Dialog" Margin="4" HorizontalAlignment="Stretch" Click="DialogClicked"/>
</Grid>
</Grid>
</Page>
</Page>

Просмотреть файл

@ -108,4 +108,4 @@ namespace GazeInputTest
await dialog.ShowAsync();
}
}
}
}

Просмотреть файл

@ -22,8 +22,8 @@
the application package. The asterisks are not wildcards.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<!-- Add your application specific runtime directives here. -->

Просмотреть файл

@ -25,4 +25,4 @@ namespace System.Runtime.CompilerServices
}
}
#endif
#endif

Просмотреть файл

@ -222,4 +222,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
#endif
}
}
}

Просмотреть файл

@ -71,4 +71,4 @@ namespace Microsoft.Toolkit.Diagnostics
return new string(p, 0, bufferSize);
}
}
}
}

Просмотреть файл

@ -442,4 +442,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentOutOfRangeExceptionForIsNotBetweenOrEqualTo(value, minimum, maximum, name);
}
}
}
}

Просмотреть файл

@ -268,4 +268,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentExceptionForIsNotCloseTo(value, target, delta, name);
}
}
}
}

Просмотреть файл

@ -81,4 +81,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentExceptionForIsAtStartPosition(stream, name);
}
}
}
}

Просмотреть файл

@ -405,4 +405,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentOutOfRangeExceptionForIsNotInRangeFor(index, text, name);
}
}
}
}

Просмотреть файл

@ -185,4 +185,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentExceptionForHasStatusNotEqualTo(task, status, name);
}
}
}
}

Просмотреть файл

@ -349,4 +349,4 @@ namespace Microsoft.Toolkit.Diagnostics
ThrowHelper.ThrowArgumentExceptionForIsFalse(name, message);
}
}
}
}

Просмотреть файл

@ -50,4 +50,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -171,4 +171,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -108,4 +108,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -55,4 +55,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -180,4 +180,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -109,4 +109,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -201,4 +201,4 @@ namespace Microsoft.Toolkit.Diagnostics
}
}
}
}
}

Просмотреть файл

@ -70,7 +70,7 @@
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<Compile Update="Generated\Guard.Comparable.Numeric.g.cs">
<DesignTime>True</DesignTime>
@ -94,4 +94,4 @@
</Compile>
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -1099,4 +1099,4 @@ namespace Microsoft.Toolkit.Diagnostics
throw new Win32Exception(message, innerException);
}
}
}
}

Просмотреть файл

@ -937,4 +937,4 @@ namespace Microsoft.Toolkit.Diagnostics
throw new Win32Exception(message, innerException);
}
}
}
}

Просмотреть файл

@ -33,4 +33,4 @@ namespace System.Diagnostics.CodeAnalysis
}
}
#endif
#endif

Просмотреть файл

@ -25,4 +25,4 @@ namespace System.Runtime.CompilerServices
}
}
#endif
#endif

Просмотреть файл

@ -226,4 +226,4 @@ namespace Microsoft.Toolkit.HighPerformance
return ref Unsafe.Unbox<T>(box);
}
}
}
}

Просмотреть файл

@ -19,4 +19,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers
/// </summary>
Clear
}
}
}

Просмотреть файл

@ -130,4 +130,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Internals
throw new ArgumentOutOfRangeException("elementIndex", "The input index is not in the valid range");
}
}
}
}

Просмотреть файл

@ -22,4 +22,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Internals.Interfaces
Memory<T> GetMemory<T>(int offset, int length)
where T : unmanaged;
}
}
}

Просмотреть файл

@ -131,4 +131,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Internals
throw new ArgumentOutOfRangeException("elementIndex", "The input index doesn't result in an aligned item access");
}
}
}
}

Просмотреть файл

@ -95,4 +95,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Internals
}
}
#endif
#endif

Просмотреть файл

@ -122,4 +122,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Internals
throw new ArgumentOutOfRangeException("elementIndex", "The input index is not in the valid range");
}
}
}
}

Просмотреть файл

@ -352,4 +352,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers
throw new ArgumentOutOfRangeException(nameof(length), "The input length parameter was not valid");
}
}
}
}

Просмотреть файл

@ -208,4 +208,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers
return $"Microsoft.Toolkit.HighPerformance.Buffers.SpanOwner<{typeof(T)}>[{this.length}]";
}
}
}
}

Просмотреть файл

@ -796,4 +796,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers
throw new ArgumentOutOfRangeException("minimumSize", "The requested size must be greater than 0");
}
}
}
}

Просмотреть файл

@ -54,4 +54,4 @@ namespace Microsoft.Toolkit.HighPerformance.Buffers.Views
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[]? Items { get; }
}
}
}

Просмотреть файл

@ -411,4 +411,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
throw new ArgumentException("The target span is too short to copy all the current items to");
}
}
}
}

Просмотреть файл

@ -154,4 +154,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
}
}
}
}
}

Просмотреть файл

@ -112,4 +112,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
get => this.span.Slice(this.start, this.end - this.start);
}
}
}
}

Просмотреть файл

@ -504,4 +504,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
throw new ArgumentException("The target span is too short to copy all the current items to");
}
}
}
}

Просмотреть файл

@ -159,4 +159,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
}
}
}
}
}

Просмотреть файл

@ -103,4 +103,4 @@ namespace Microsoft.Toolkit.HighPerformance.Enumerables
get => this.span.Slice(this.start, this.end - this.start);
}
}
}
}

Просмотреть файл

@ -218,4 +218,4 @@ namespace Microsoft.Toolkit.HighPerformance
throw new OverflowException();
}
}
}
}

Просмотреть файл

@ -464,4 +464,4 @@ namespace Microsoft.Toolkit.HighPerformance
throw new ArgumentOutOfRangeException("column");
}
}
}
}

Просмотреть файл

@ -321,4 +321,4 @@ namespace Microsoft.Toolkit.HighPerformance
throw new ArgumentOutOfRangeException("depth");
}
}
}
}

Просмотреть файл

@ -28,4 +28,4 @@ namespace Microsoft.Toolkit.HighPerformance
return new IBufferWriterStream<ArrayBufferWriterOwner>(new ArrayBufferWriterOwner(writer));
}
}
}
}

Просмотреть файл

@ -53,4 +53,4 @@ namespace Microsoft.Toolkit.HighPerformance
array = newArray;
}
}
}
}

Просмотреть файл

@ -80,4 +80,4 @@ namespace Microsoft.Toolkit.HighPerformance
return mask;
}
}
}
}

Просмотреть файл

@ -32,4 +32,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
#endif
#endif

Просмотреть файл

@ -133,4 +133,4 @@ namespace Microsoft.Toolkit.HighPerformance
throw new ArgumentException("The current buffer writer can't contain the requested input data.");
}
}
}
}

Просмотреть файл

@ -33,4 +33,4 @@ namespace Microsoft.Toolkit.HighPerformance
return MemoryStream.Create(memoryOwner);
}
}
}
}

Просмотреть файл

@ -39,4 +39,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
#endif
#endif

Просмотреть файл

@ -116,4 +116,4 @@ namespace Microsoft.Toolkit.HighPerformance
return MemoryStream.Create(memory, false);
}
}
}
}

Просмотреть файл

@ -155,4 +155,4 @@ namespace Microsoft.Toolkit.HighPerformance
return MemoryStream.Create(memory, true);
}
}
}
}

Просмотреть файл

@ -400,4 +400,4 @@ namespace Microsoft.Toolkit.HighPerformance
return destination.TryCopyFrom(span);
}
}
}
}

Просмотреть файл

@ -298,4 +298,4 @@ namespace Microsoft.Toolkit.HighPerformance
throw new ArgumentOutOfRangeException("value", "The input reference does not belong to an element of the input span");
}
}
}
}

Просмотреть файл

@ -185,4 +185,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
}
}
}

Просмотреть файл

@ -165,4 +165,4 @@ namespace Microsoft.Toolkit.HighPerformance
return SpanHelper.GetDjb2HashCode(ref r0, length);
}
}
}
}

Просмотреть файл

@ -464,4 +464,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
return (~loadMask & value) | storeMask;
}
}
}
}

Просмотреть файл

@ -82,4 +82,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
}
}
#endif
#endif

Просмотреть файл

@ -40,4 +40,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers.Internals
#endif
}
}
}
}

Просмотреть файл

@ -264,4 +264,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers.Internals
}
}
}
}
}

Просмотреть файл

@ -365,4 +365,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers.Internals
throw null!;
}
}
}
}

Просмотреть файл

@ -312,4 +312,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers.Internals
return hash;
}
}
}
}

Просмотреть файл

@ -145,4 +145,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
return ref Unsafe.Unbox<T>(obj);
}
}
}
}

Просмотреть файл

@ -246,4 +246,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
/// <param name="i">The current index for the action to execute.</param>
void Invoke(int i);
}
}
}

Просмотреть файл

@ -344,4 +344,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
/// <param name="j">The second index for the action to execute.</param>
void Invoke(int i, int j);
}
}
}

Просмотреть файл

@ -169,4 +169,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
/// <param name="item">The current item to process.</param>
void Invoke(in T item);
}
}
}

Просмотреть файл

@ -157,4 +157,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
}
}
}
}
}

Просмотреть файл

@ -169,4 +169,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
/// <param name="item">The current item to process.</param>
void Invoke(ref T item);
}
}
}

Просмотреть файл

@ -164,4 +164,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
}
}
}
}
}

Просмотреть файл

@ -57,4 +57,4 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers
throw new ArgumentOutOfRangeException("left", "The left parameter must be less than or equal to right");
}
}
}
}

Просмотреть файл

@ -69,4 +69,4 @@ namespace Microsoft.Toolkit.HighPerformance.Memory.Internals
return checked(((width + pitch) * Max(unchecked(height - 1), 0)) + width);
}
}
}
}

Просмотреть файл

@ -127,4 +127,4 @@ namespace Microsoft.Toolkit.HighPerformance.Memory.Internals
throw new ArgumentOutOfRangeException("pitch");
}
}
}
}

Просмотреть файл

@ -902,4 +902,4 @@ namespace Microsoft.Toolkit.HighPerformance
/// </summary>
public static implicit operator Memory2D<T>(T[,]? array) => new(array);
}
}
}

Просмотреть файл

@ -920,4 +920,4 @@ namespace Microsoft.Toolkit.HighPerformance
/// </summary>
public static implicit operator ReadOnlyMemory2D<T>(Memory2D<T> memory) => Unsafe.As<Memory2D<T>, ReadOnlyMemory2D<T>>(ref memory);
}
}
}

Просмотреть файл

@ -198,4 +198,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
}
}
}

Просмотреть файл

@ -1032,4 +1032,4 @@ namespace Microsoft.Toolkit.HighPerformance
#endif
}
}
}
}

Просмотреть файл

@ -198,4 +198,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
}
}
}

Просмотреть файл

@ -1175,4 +1175,4 @@ namespace Microsoft.Toolkit.HighPerformance
/// <param name="array">The input 2D array to convert.</param>
public static implicit operator Span2D<T>(T[,]? array) => new(array);
}
}
}

Просмотреть файл

@ -54,4 +54,4 @@ namespace Microsoft.Toolkit.HighPerformance.Memory.Views
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[,]? Items { get; }
}
}
}

Просмотреть файл

@ -106,4 +106,4 @@
</When>
</Choose>
</Project>
</Project>

Просмотреть файл

@ -136,4 +136,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
#endif
#endif

Просмотреть файл

@ -120,4 +120,4 @@ namespace Microsoft.Toolkit.HighPerformance
}
}
#endif
#endif

Просмотреть файл

@ -131,4 +131,4 @@ namespace Microsoft.Toolkit.HighPerformance
return reference.Value;
}
}
}
}

Просмотреть файл

@ -100,4 +100,4 @@ namespace Microsoft.Toolkit.HighPerformance
return reference.Value;
}
}
}
}

Просмотреть файл

@ -73,4 +73,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
}
}
#endif
#endif

Просмотреть файл

@ -170,4 +170,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
this.disposed = true;
}
}
}
}

Просмотреть файл

@ -39,4 +39,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
this.disposable.Dispose();
}
}
}
}

Просмотреть файл

@ -94,4 +94,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
throw new ObjectDisposedException("source", "The current stream has already been disposed");
}
}
}
}

Просмотреть файл

@ -80,4 +80,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
}
}
}
}
}

Просмотреть файл

@ -92,4 +92,4 @@ namespace Microsoft.Toolkit.HighPerformance.Streams
throw new ArgumentException("The input instance doesn't have a valid underlying data store.");
}
}
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше