Skip to content

Commit

Permalink
Fix format (#1529)
Browse files Browse the repository at this point in the history
* fix formatting ("dotnet-format  --fix-whitespace")

* apply format after merge

* remove comments

* rebase and apply formatting ("dotnet-format --fix-whitespace")
  • Loading branch information
Bertk authored Oct 26, 2023
1 parent 3ec85e7 commit 91acb45
Show file tree
Hide file tree
Showing 145 changed files with 11,496 additions and 11,490 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

file_header_template = Copyright (c) Toni Solarin-Sodara\nLicensed under the MIT license. See LICENSE file in the project root for full license information.

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
Expand Down
8 changes: 8 additions & 0 deletions Documentation/Examples/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# top-most EditorConfig file
# We don't want to import other EditorConfig files and we want
# to ensure no rules are enabled for these asset source files.
root = true

[*.cs]
# Default severity for all analyzer diagnostics
dotnet_analyzer_diagnostic.severity = none
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;

namespace ClassLibrary1
namespace ClassLibrary1
{
public class Class1
public class Class1
{
public int Method()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<Project>
<!-- Deterministic build workaround -->
<Import Project="$(MSBuildThisFileDirectory)DeterministicBuild.targets" />

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;

namespace ClassLibrary1
namespace ClassLibrary1
{
public class Class1
public class Class1
{
public int Method()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;

namespace ClassLibrary2
namespace ClassLibrary2
{
public class Class2
public class Class2
{
public int Method()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;

namespace ClassLibrary3
namespace ClassLibrary3
{
public class Class3
public class Class3
{
public int Method()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using Xunit;
using Xunit;

namespace XUnitTestProject1
{
public class UnitTest1
public class UnitTest1
{
[Fact]
public void Test1()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using Xunit;
using Xunit;

namespace XUnitTestProject2
{
public class UnitTest2
public class UnitTest2
{
[Fact]
public void Test2()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using Xunit;
using Xunit;

namespace XUnitTestProject3
{
public class UnitTest3
public class UnitTest3
{
[Fact]
public void Test3()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;

namespace ClassLibrary1
namespace ClassLibrary1
{
public class Class1
public class Class1
{
public int Method()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using Xunit;
using Xunit;

namespace XUnitTestProject1
{
public class UnitTest1
public class UnitTest1
{
[Fact]
public void Test1()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
<RunSettingsFilePath>$(MSBuildThisFileDirectory).runsettings</RunSettingsFilePath>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 91acb45

Please sign in to comment.