dotnet / format

Home for the dotnet-format command
MIT License
1.92k stars 173 forks source link

Cannot locate `.editorconfig` when not in the same location as sln #511

Closed jetersen closed 4 years ago

jetersen commented 4 years ago

https://github.com/GitTools/GitVersion

or rather https://github.com/casz/GitVersion/tree/fix/format

Seems like on appveyor it fails on Fix end of line marker even after eol = lf on git attributes and end_of_line = lf on editorconfig 😭

the editorconfig is at the repository root ./. the sln is under ./src/

I tried adding as a solution items, no luck

I even tried adding a .editorconfig under ./src without root = true however dotnet-format seems to ignore when no root is found most likely not coded into dotnet-format.

Last resort was to add .editorconfig inside ./src to no avail

I even tried messing with appveyor and git config and git attributes.

I have used dotnet format on https://github.com/nmklotas/GitLabApiClient without any issues.

JoeRobich commented 4 years ago

Hi @casz,

I cloned the fork that you shared and ran dotnet format from the repo root. It seemed to work fine.

~\source\repos\GitVersion [master ≡ +1 ~0 -0 !]> dotnet-format -f . --dry-run
  Formatting code files in workspace 'C:\Users\jorobich\source\repos\GitVersion'.
  GitVersion\src\GitVersionCore\GitVersionFinder.cs(33,14): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\AssemblyFileVersionTests.cs(20,66): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\AssemblyFileVersionTests.cs(21,27): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\AssemblyFileVersionTests.cs(22,91): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\DefaultConfigFileLocatorTests.cs(42,10): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\DefaultConfigFileLocatorTests.cs(103,57): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\DefaultConfigFileLocatorTests.cs(107,10): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\DynamicRepositoryTests.cs(80,16): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\GitRepoMetadataProviderTests.cs(196,74): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\GitToolsTestingExtensions.cs(90,48): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\GitToolsTestingExtensions.cs(103,52): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\GitVersionContextBuilder.cs(31,65): Fix whitespace formatting.
  GitVersion\src\GitVersionCore.Tests\JsonVersionBuilderTests.cs(39,29): Fix whitespace formatting.
  GitVersion\src\GitVersionExe\AssemblyInfo.cs(1,1): Fix whitespace formatting.
  GitVersion\src\GitVersionExe\ExecCommand.cs(46,45): Fix whitespace formatting.
  GitVersion\src\GitVersionExe\ExecCommand.cs(47,18): Fix whitespace formatting.
  GitVersion\src\GitVersionExe\ExecCommand.cs(48,69): Fix whitespace formatting.
  ...

Can you share details about how your are invoking dotnet-format?

JoeRobich commented 4 years ago

Saw that maybe you were running against the .sln file so I tried that as well.

~\source\repos\GitVersion\src [master ≡ +1 ~0 -0 !]> dotnet-format --dry-run
  Formatting code files in workspace 'C:\Users\jorobich\source\repos\GitVersion\src\GitVersion.sln'.
  Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.
  GitVersionExe\AssemblyInfo.cs(1,1): Fix whitespace formatting.
  GitVersionExe\ExecCommand.cs(46,45): Fix whitespace formatting.
  GitVersionExe\ExecCommand.cs(47,18): Fix whitespace formatting.
  GitVersionExe\ExecCommand.cs(48,69): Fix whitespace formatting.
  GitVersionExe\ExecCommand.cs(49,81): Fix whitespace formatting.
  GitVersionExe\ExecCommand.cs(51,27): Fix whitespace formatting.
  GitVersionCore.Tests\AssemblyFileVersionTests.cs(20,66): Fix whitespace formatting.
  GitVersionCore.Tests\AssemblyFileVersionTests.cs(21,27): Fix whitespace formatting.
  GitVersionCore.Tests\AssemblyFileVersionTests.cs(22,91): Fix whitespace formatting.
  GitVersionCore.Tests\BuildServers\BuildServerBaseTests.cs(14,39): Fix whitespace formatting.
  GitVersionCore.Tests\BuildServers\EnvRunTests.cs(66,39): Fix whitespace formatting.
  GitVersionCore.Tests\BuildServers\JenkinsTests.cs(52,10): Fix whitespace formatting.
  GitVersionCore.Tests\BuildServers\JenkinsTests.cs(58,68): Fix whitespace formatting.
jetersen commented 4 years ago

If fails in appveyor see the PR with fix/format. It complains on every line ending

JoeRobich commented 4 years ago

@casz, Am I right in that you are using dotnet-format to enforce your editorconfig? If so, I think there should be a commit where you have run dotnet-format locally and committed all the line ending changes.

jetersen commented 4 years ago

@JoeRobich see https://ci.appveyor.com/project/GitTools/gitversion/builds/30473436 and https://github.com/GitTools/GitVersion/pull/2067

As you can see in the build output on appveyor it does not match what you had locally. I tried several ways of fixing it as you can see by the commits in the PR.

JoeRobich commented 4 years ago

@casz, I don't think I understand the problem. I believe that dotnet-format is finding the .editorconfig, since the end_of_line marker was changed from crlf to lf, and dotnet format is flagging every line ending as an error. I believe the way to fix this is to update the source files in git to have lf line endings.

JoeRobich commented 4 years ago

Also, I see know what you meant about my log snippets. I didn't share enough to get to the end of line marker statements but saw them locally.

  GitVersion\src\GitVersionCore\Extensions\GitVersionInformationResources\AddFormats\GitVersionInformation.cs(1,34): Add final newline.
  GitVersion\src\GitVersionCore\Extensions\VersionAssemblyInfoResources\AddFormats\VersionAssemblyInfo.cs(1,16): Add final newline.
  GitVersion\src\GitVersionCore\Extensions\GitVersionInformationResources\AddFormats\GitVersionInformation.vb(1,36): Add final newline.
  GitVersion\src\GitVersionCore\Extensions\VersionAssemblyInfoResources\AddFormats\VersionAssemblyInfo.vb(1,16): Add final newline.
  GitVersion\test\Program.cs(1,14): Fix end of line marker.
  GitVersion\test\Program.cs(2,25): Fix end of line marker.
  GitVersion\test\Program.cs(4,19): Fix end of line marker.
  GitVersion\test\Program.cs(5,2): Fix end of line marker.
  GitVersion\test\Program.cs(6,18): Fix end of line marker.
  GitVersion\test\Program.cs(7,6): Fix end of line marker.
  GitVersion\test\Program.cs(8,40): Fix end of line marker.
  GitVersion\test\Program.cs(9,10): Fix end of line marker.
jetersen commented 4 years ago

Locally I am not seeing the same 🤔 Doing a git add --renormalize . does not convert any files to LF.

jetersen commented 4 years ago

I downloaded the appveyor log and did a

grep -o -i "Fix end of line marker." "log.txt" | wc -l

There is a total of 21235 line marker warnings on appveyor.

On locally I get ZERO

This is what I get exactly on both Windows and Linux

dotnet format -f ./ --dry-run --check
  Formatting code files in workspace '/home/joseph/code/gv/'.
  src/GitVersionCore.Tests/GitToolsTestingExtensions.cs(90,48): Fix whitespace formatting.
  src/GitVersionCore.Tests/GitToolsTestingExtensions.cs(103,52): Fix whitespace formatting.
  src/GitVersionCore.Tests/GitRepoMetadataProviderTests.cs(197,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/GitVersionContextBuilder.cs(31,65): Fix whitespace formatting.
  src/GitVersionCore.Tests/DynamicRepositoryTests.cs(82,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs(43,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs(103,57): Fix whitespace formatting.
  src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs(108,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/AssemblyFileVersionTests.cs(21,13): Fix whitespace formatting.
  src/GitVersionCore.Tests/AssemblyFileVersionTests.cs(22,17): Fix whitespace formatting.
  src/GitVersionCore.Tests/AssemblyFileVersionTests.cs(23,13): Fix whitespace formatting.
  src/GitVersionCore.Tests/JsonVersionBuilderTests.cs(39,29): Fix whitespace formatting.
  src/GitVersionCore/GitVersionFinder.cs(33,14): Fix whitespace formatting.
  src/GitVersionExe/ExecCommand.cs(47,17): Fix whitespace formatting.
  src/GitVersionExe/ExecCommand.cs(48,21): Fix whitespace formatting.
  src/GitVersionExe/ExecCommand.cs(49,21): Fix whitespace formatting.
  src/GitVersionExe/ExecCommand.cs(51,21): Fix whitespace formatting.
  src/GitVersionExe/ExecCommand.cs(52,17): Fix whitespace formatting.
  src/GitVersionExe/AssemblyInfo.cs(1,1): Fix whitespace formatting.
  src/GitVersionTask/GitVersionTasks.cs(46,1): Fix whitespace formatting.
  src/GitVersionExe.Tests/PullRequestInJenkinsPipelineTest.cs(51,1): Fix whitespace formatting.
  src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs(15,1): Fix whitespace formatting.
  src/GitVersionExe.Tests/ArgumentParserTests.cs(68,62): Fix whitespace formatting.
  src/GitVersionExe.Tests/ArgumentParserTests.cs(89,62): Fix whitespace formatting.
  src/GitVersionTask.MsBuild/TaskProxy.cs(24,24): Fix whitespace formatting.
  src/GitVersionTask.MsBuild/TaskProxy.cs(26,32): Fix whitespace formatting.
  src/GitVersionTask.MsBuild/TaskProxy.cs(27,40): Fix whitespace formatting.
  src/GitVersionCore.Tests/IntegrationTests/RemoteRepositoryScenarios.cs(59,39): Fix whitespace formatting.
  src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs(86,88): Fix whitespace formatting.
  src/GitVersionCore.Tests/IntegrationTests/MainlineDevelopmentMode.cs(519,25): Fix whitespace formatting.
  src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs(173,10): Fix whitespace formatting.
  src/GitVersionCore.Tests/IntegrationTests/DocumentationSamples.cs(400,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/Init/InitScenarios.cs(35,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/BuildServers/TeamCityTests.cs(22,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs(14,39): Fix whitespace formatting.
  src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs(53,1): Fix whitespace formatting.
  src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs(58,68): Fix whitespace formatting.
  src/GitVersionCore.Tests/BuildServers/EnvRunTests.cs(66,39): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/PathHelper.cs(15,10): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/PathHelper.cs(19,9): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/PathHelper.cs(25,10): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/PathHelper.cs(27,9): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(8,96): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(9,100): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(10,100): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(11,94): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(12,99): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(14,108): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(15,98): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(18,104): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(19,102): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(20,116): Fix whitespace formatting.
  src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs(21,115): Fix whitespace formatting.
  src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs(38,1): Fix whitespace formatting.
  src/GitVersionCore/Configuration/DefaultConfigFileLocator.cs(11,1): Fix whitespace formatting.
  src/GitVersionCore/Configuration/LegacyConfig.cs(41,1): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Config.cs(90,63): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Config.cs(90,75): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(134,15): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(135,15): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(136,15): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(137,15): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(156,66): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(156,114): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(159,17): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs(159,92): Fix whitespace formatting.
  src/GitVersionCore/SemanticVersioning/SemanticVersion.cs(157,1): Fix whitespace formatting.
  src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs(105,111): Fix whitespace formatting.
  src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs(165,15): Fix whitespace formatting.
  src/GitVersionCore/Extensions/StringExtensions.cs(34,1): Fix whitespace formatting.
  src/GitVersionCore/Extensions/StringExtensions.cs(39,1): Fix whitespace formatting.
  src/GitVersionCore/Extensions/StringExtensions.cs(116,1): Fix whitespace formatting.
  src/GitVersionCore/Extensions/LibGitExtensions.cs(62,61): Fix whitespace formatting.
  src/GitVersionCore/Extensions/ObjectExtensions.cs(27,79): Fix whitespace formatting.
  src/GitVersionCore/Extensions/AssemblyInfo.cs(1,1): Fix whitespace formatting.
  src/GitVersionCore/VersioningModes/VersioningModeExtension.cs(11,74): Fix whitespace formatting.
  src/GitVersionCore/BuildServers/GitHubActions.cs(6,31): Fix whitespace formatting.
  src/GitVersionCore/BuildServers/TravisCI.cs(15,54): Fix whitespace formatting.
  src/GitVersionCore/BuildServers/TravisCI.cs(33,42): Fix whitespace formatting.
  src/GitVersionCore/Logging/Log.cs(17,21): Fix whitespace formatting.
  src/GitVersionCore.Tests/VersionCalculation/Strategies/MergeMessageBaseVersionStrategyTests.cs(143,10): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/GitVersionInitModule.cs(29,10): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs(32,108): Fix whitespace formatting.
  src/GitVersionCore/VersionCalculation/BaseVersionCalculators/TaggedCommitVersionStrategy.cs(32,138): Fix whitespace formatting.
  src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AssemblyInfoFileUpdater.cs(137,1): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs(31,58): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs(31,80): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs(57,65): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs(58,49): Fix whitespace formatting.
  src/GitVersionCore/Configuration/Init/Wizard/GitFlowSetupStep.cs(14,169): Fix whitespace formatting.
  src/GitVersionCore.Tests/AssemblyParallelizable.cs(3,51): Add final newline.
  src/GitVersionCore/AuthenticationInfo.cs(27,2): Add final newline.
  src/GitVersionTask.Tests/AssemblyParallelizable.cs(3,51): Add final newline.
  src/GitVersionExe/IGitVersionExecutor.cs(7,2): Add final newline.
  src/GitVersionExe.Tests/AssemblyParallelizable.cs(3,51): Add final newline.
  src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs(23,2): Add final newline.
  src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs(21,2): Add final newline.
  src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs(231,2): Add final newline.
  src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs(22,2): Add final newline.
  src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs(65,2): Add final newline.
  src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs(75,2): Add final newline.
  src/GitVersionCore.Tests/Helpers/DirectoryHelper.cs(86,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockTagCollection.cs(59,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs(54,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockMergeCommit.cs(12,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockBranchCollection.cs(53,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockReflogCollection.cs(50,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockReferenceCollection.cs(59,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockTag.cs(25,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockTagAnnotation.cs(14,2): Add final newline.
  src/GitVersionCore.Tests/Mocks/MockCommitLog.cs(56,2): Add final newline.
  src/GitVersionCore/OutputFormatters/OutputType.cs(9,2): Add final newline.
  src/GitVersionCore/Configuration/OldConfigurationException.cs(14,2): Add final newline.
  src/GitVersionCore/Configuration/IConsole.cs(13,2): Add final newline.
  src/GitVersionCore/Configuration/EffectiveConfiguration.cs(125,2): Add final newline.
  src/GitVersionCore/Configuration/IgnoreConfig.cs(28,2): Add final newline.
  src/GitVersionCore/Configuration/IConfigFileLocatorFactory.cs(7,2): Add final newline.
  src/GitVersionCore/Configuration/GitVersionConfigurationException.cs(14,2): Add final newline.
  src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs(9,2): Add final newline.
  src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs(11,2): Add final newline.
  src/GitVersionCore/Exceptions/BugException.cs(11,2): Add final newline.
  src/GitVersionCore/Exceptions/WarningException.cs(13,2): Add final newline.
  src/GitVersionCore/Exceptions/GitToolsException.cs(18,2): Add final newline.
  src/GitVersionCore/Helpers/ServiceMessageEscapeHelper.cs(23,2): Add final newline.
  src/GitVersionCore/Logging/Disposable.cs(32,2): Add final newline.
  src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs(7,2): Add final newline.
  src/GitVersionTask.Tests/Helpers/Scrubbers.cs(16,2): Add final newline.
  src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs(21,2): Add final newline.
  src/GitVersionTask.Tests/Mocks/MockTaskItem.cs(40,2): Add final newline.
  src/GitVersionCore/Configuration/Init/StepResult.cs(44,2): Add final newline.
  src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs(1,16): Add final newline.  src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs(1,34): Add final newline.
  src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb(1,16): Add final newline.  src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb(1,36): Add final newline.
  src/GitVersionCore.Tests/DocumentationTests.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/AssemblyParallelizable.cs(1,1): Fix file encoding.
  src/GitVersionTask.Tests/AssemblyParallelizable.cs(1,1): Fix file encoding.
  src/GitVersionExe/AssemblyInfo.cs(1,1): Fix file encoding.
  src/GitVersionExe.Tests/AssemblyParallelizable.cs(1,1): Fix file encoding.
  src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/IntegrationTests/VersionBumpingScenarios.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs(1,1): Fix file encoding.
  src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs(1,1): Fix file encoding.
  src/GitVersionCore/OutputFormatters/BuildOutputFormatter.cs(1,1): Fix file encoding.
  src/GitVersionCore/Configuration/BranchConfig.cs(1,1): Fix file encoding.
  src/GitVersionCore/Configuration/EffectiveConfiguration.cs(1,1): Fix file encoding.
  src/GitVersionCore/Configuration/IgnoreConfig.cs(1,1): Fix file encoding.
  src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/AssemblyInfo.cs(1,1): Fix file encoding.
  src/GitVersionCore/VersioningModes/VersioningMode.cs(1,1): Fix file encoding.
  src/GitVersionCore/VersionFilters/IVersionFilter.cs(1,1): Fix file encoding.
  src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs(1,1): Fix file encoding.
  src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs(1,1): Fix file encoding.
  src/GitVersionTask.Tests/Mocks/MockTaskItem.cs(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb(1,1): Fix file encoding.
  src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb(1,1): Fix file encoding.
diff --git a/src/GitVersionCore.Tests/AssemblyFileVersionTests.cs b/src/GitVersionCore.Tests/AssemblyFileVersionTests.cs
index 92145daa..900dd3d5 100644
--- a/src/GitVersionCore.Tests/AssemblyFileVersionTests.cs
+++ b/src/GitVersionCore.Tests/AssemblyFileVersionTests.cs
@@ -18,9 +18,9 @@ namespace GitVersionCore.Tests
         int tag, string versionString)
         {
             var semVer = new SemanticVersion(major, minor, patch)
-                         {
-                             PreReleaseTag = new SemanticVersionPreReleaseTag("Test", tag)
-                         };
+            {
+                PreReleaseTag = new SemanticVersionPreReleaseTag("Test", tag)
+            };

             var assemblyFileVersion = semVer.GetAssemblyFileVersion(assemblyFileVersioningScheme);

diff --git a/src/GitVersionCore.Tests/AssemblyParallelizable.cs b/src/GitVersionCore.Tests/AssemblyParallelizable.cs
index 9f6f4f45..9ae285d9 100644
--- a/src/GitVersionCore.Tests/AssemblyParallelizable.cs
+++ b/src/GitVersionCore.Tests/AssemblyParallelizable.cs
@@ -1,3 +1,3 @@
-using NUnit.Framework;
+using NUnit.Framework;

-[assembly: Parallelizable(ParallelScope.Fixtures)]
\ No newline at end of file
+[assembly: Parallelizable(ParallelScope.Fixtures)]
diff --git a/src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs b/src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs
index 6b3cc0d8..b55e7f3b 100644
--- a/src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs
+++ b/src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs
@@ -11,7 +11,7 @@ using Microsoft.Extensions.DependencyInjection;
 namespace GitVersionCore.Tests.BuildServers
 {
     [TestFixture]
-    public class BuildServerBaseTests  : TestBase
+    public class BuildServerBaseTests : TestBase
     {
         private IVariableProvider buildServer;
         private IServiceProvider sp;
diff --git a/src/GitVersionCore.Tests/BuildServers/EnvRunTests.cs b/src/GitVersionCore.Tests/BuildServers/EnvRunTests.cs
index 57ee1dbe..ea935b70 100644
--- a/src/GitVersionCore.Tests/BuildServers/EnvRunTests.cs
+++ b/src/GitVersionCore.Tests/BuildServers/EnvRunTests.cs
@@ -63,7 +63,7 @@ namespace GitVersionCore.Tests.BuildServers
             version.ShouldBe(fullSemVer);
         }

-        [TestCase("Version", "1.2.3",     "@@envrun[set name='GitVersion_Version' value='1.2.3']")]
+        [TestCase("Version", "1.2.3", "@@envrun[set name='GitVersion_Version' value='1.2.3']")]
         [TestCase("Version", "1.2.3-rc4", "@@envrun[set name='GitVersion_Version' value='1.2.3-rc4']")]
         public void GenerateSetParameterMessage(string name, string value, string expected)
         {
diff --git a/src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs b/src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs
index 1aec9633..d8ab4d9c 100644
--- a/src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs
+++ b/src/GitVersionCore.Tests/BuildServers/JenkinsTests.cs
@@ -50,12 +50,12 @@ namespace GitVersionCore.Tests.BuildServers
             SetEnvironmentVariableForDetection();
             buildServer.CanApplyToCurrentContext().ShouldBe(true);
         }
-    
+
         [Test]
         public void CanNotApplyCurrentContextWhenenvironmentVariableIsNotSet()
         {
             ClearenvironmentVariableForDetection();
-            buildServer.CanApplyToCurrentContext().ShouldBe(false);  
+            buildServer.CanApplyToCurrentContext().ShouldBe(false);
         }

         [Test]
diff --git a/src/GitVersionCore.Tests/BuildServers/TeamCityTests.cs b/src/GitVersionCore.Tests/BuildServers/TeamCityTests.cs
index ea03df94..2c63de93 100644
--- a/src/GitVersionCore.Tests/BuildServers/TeamCityTests.cs
+++ b/src/GitVersionCore.Tests/BuildServers/TeamCityTests.cs
@@ -19,7 +19,7 @@ namespace GitVersionCore.Tests.BuildServers
             });
             buildServer = sp.GetService<TeamCity>();
         }
-        
+
         [Test]
         public void DevelopBranch()
         {
diff --git a/src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs b/src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs
index 05dd9852..83c7033d 100644
--- a/src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs
+++ b/src/GitVersionCore.Tests/DefaultConfigFileLocatorTests.cs
@@ -40,7 +40,7 @@ namespace GitVersionCore.Tests

             ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
         }
-    
+
         [TestCase(DefaultRepoPath)]
         [TestCase(DefaultWorkingPath)]
         public void WarnOnExistingGitVersionConfigYamlFile(string path)
@@ -100,12 +100,12 @@ namespace GitVersionCore.Tests

             var output = WithDefaultConfigFileLocator(configFileLocator =>
             {
-                configurationProvider.Provide(repoPath); 
+                configurationProvider.Provide(repoPath);
             });

             output.Length.ShouldBe(0);
         }
-        
+
         [Test]
         public void WarnOnObsoleteIsDevelopBranchConfigurationSetting()
         {
diff --git a/src/GitVersionCore.Tests/DocumentationTests.cs b/src/GitVersionCore.Tests/DocumentationTests.cs
index d44b57b0..ff433383 100644
--- a/src/GitVersionCore.Tests/DocumentationTests.cs
+++ b/src/GitVersionCore.Tests/DocumentationTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.IO;
 using System.Linq;
 using System.Reflection;
diff --git a/src/GitVersionCore.Tests/DynamicRepositoryTests.cs b/src/GitVersionCore.Tests/DynamicRepositoryTests.cs
index 1a0e88a0..8e2f2a37 100644
--- a/src/GitVersionCore.Tests/DynamicRepositoryTests.cs
+++ b/src/GitVersionCore.Tests/DynamicRepositoryTests.cs
@@ -79,7 +79,7 @@ namespace GitVersionCore.Tests
                 services.AddSingleton(options);
             });

-            
+
             var gitVersionCalculator = sp.GetService<IGitVersionCalculator>();

             var versionVariables = gitVersionCalculator.CalculateVersionVariables();
diff --git a/src/GitVersionCore.Tests/GitRepoMetadataProviderTests.cs b/src/GitVersionCore.Tests/GitRepoMetadataProviderTests.cs
index 254678ee..7a8f8a6b 100644
--- a/src/GitVersionCore.Tests/GitRepoMetadataProviderTests.cs
+++ b/src/GitVersionCore.Tests/GitRepoMetadataProviderTests.cs
@@ -194,7 +194,7 @@ namespace GitVersionCore.Tests

             var develop = fixture.Repository.FindBranch("develop");
             var release = fixture.Repository.FindBranch("release-2.0.0");
-            
+
             var releaseBranchMergeBase = new GitRepoMetadataProvider(fixture.Repository, log, configuration)
                 .FindMergeBase(release, develop);

diff --git a/src/GitVersionCore.Tests/GitToolsTestingExtensions.cs b/src/GitVersionCore.Tests/GitToolsTestingExtensions.cs
index 28ef39ab..dba91c18 100644
--- a/src/GitVersionCore.Tests/GitToolsTestingExtensions.cs
+++ b/src/GitVersionCore.Tests/GitToolsTestingExtensions.cs
@@ -87,7 +87,7 @@ namespace GitVersionCore.Tests

             var serviceProvider = ConfigureService(services =>
             {
-                services.AddSingleton(options); 
+                services.AddSingleton(options);
             });

             var gitPreparer = serviceProvider.GetService<IGitPreparer>();
@@ -100,7 +100,7 @@ namespace GitVersionCore.Tests
                 .AddModule(new GitVersionCoreTestModule());

             servicesOverrides?.Invoke(services);
-            return services.BuildServiceProvider(); 
+            return services.BuildServiceProvider();
         }
     }
 }
diff --git a/src/GitVersionCore.Tests/GitVersionContextBuilder.cs b/src/GitVersionCore.Tests/GitVersionContextBuilder.cs
index 7471c80a..9acbdc2e 100644
--- a/src/GitVersionCore.Tests/GitVersionContextBuilder.cs
+++ b/src/GitVersionCore.Tests/GitVersionContextBuilder.cs
@@ -28,7 +28,7 @@ namespace GitVersionCore.Tests
         {
             repository = CreateRepository();
             var target = repository.Head.Tip;
-            ((MockTagCollection)repository.Tags).Add(new MockTag ("1.0.0", target));
+            ((MockTagCollection)repository.Tags).Add(new MockTag("1.0.0", target));
             return this;
         }

diff --git a/src/GitVersionCore.Tests/Helpers/DirectoryHelper.cs b/src/GitVersionCore.Tests/Helpers/DirectoryHelper.cs
index 2a71eb24..252ffe46 100644
--- a/src/GitVersionCore.Tests/Helpers/DirectoryHelper.cs
+++ b/src/GitVersionCore.Tests/Helpers/DirectoryHelper.cs
@@ -83,4 +83,4 @@ namespace GitVersionCore.Tests.Helpers
             }
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Helpers/PathHelper.cs b/src/GitVersionCore.Tests/Helpers/PathHelper.cs
index 496eef71..ff4320c3 100644
--- a/src/GitVersionCore.Tests/Helpers/PathHelper.cs
+++ b/src/GitVersionCore.Tests/Helpers/PathHelper.cs
@@ -16,7 +16,7 @@ namespace GitVersionCore.Tests.Helpers
 #if NETFRAMEWORK
             var executable = Path.Combine(GetExeDirectory(), "GitVersion.exe");
 #else
-        var executable = "dotnet";
+            var executable = "dotnet";
 #endif
             return executable;
         }
@@ -24,7 +24,7 @@ namespace GitVersionCore.Tests.Helpers
         public static string GetExecutableArgs(string args)
         {
 #if !NETFRAMEWORK
-        args = $"{Path.Combine(GetExeDirectory(), "GitVersion.dll")} {args}";
+            args = $"{Path.Combine(GetExeDirectory(), "GitVersion.dll")} {args}";
 #endif
             return args;
         }
diff --git a/src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs b/src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs
index 40f417b7..619bb0e0 100644
--- a/src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs
+++ b/src/GitVersionCore.Tests/Helpers/TestableVersionVariables.cs
@@ -5,20 +5,20 @@ namespace GitVersionCore.Tests.Helpers
     internal class TestableVersionVariables : VersionVariables
     {
         public TestableVersionVariables(
-            string major = "", string minor = "", string patch = "", string buildMetaData = "", 
-            string buildMetaDataPadded = "", string fullBuildMetaData = "", string branchName = "", 
-            string sha = "", string shortSha = "", string majorMinorPatch = "", string semVer = "", 
-            string legacySemVer = "", string legacySemVerPadded = "", string fullSemVer = "", 
-            string assemblySemVer = "", string assemblySemFileVer = "", string preReleaseTag = "", 
+            string major = "", string minor = "", string patch = "", string buildMetaData = "",
+            string buildMetaDataPadded = "", string fullBuildMetaData = "", string branchName = "",
+            string sha = "", string shortSha = "", string majorMinorPatch = "", string semVer = "",
+            string legacySemVer = "", string legacySemVerPadded = "", string fullSemVer = "",
+            string assemblySemVer = "", string assemblySemFileVer = "", string preReleaseTag = "",
             string preReleaseTagWithDash = "", string preReleaseLabel = "", string preReleaseNumber = "",
-            string weightedPreReleaseNumber = "", string informationalVersion = "", string commitDate = "", 
-            string nugetVersion = "", string nugetVersionV2 = "", string nugetPreReleaseTag = "", 
+            string weightedPreReleaseNumber = "", string informationalVersion = "", string commitDate = "",
+            string nugetVersion = "", string nugetVersionV2 = "", string nugetPreReleaseTag = "",
             string nugetPreReleaseTagV2 = "", string versionSourceSha = "", string commitsSinceVersionSource = "",
             string commitsSinceVersionSourcePadded = "") : base(
-                major, minor, patch, buildMetaData, buildMetaDataPadded, fullBuildMetaData, branchName, 
-                sha, shortSha, majorMinorPatch, semVer, legacySemVer, legacySemVerPadded, fullSemVer, 
-                assemblySemVer, assemblySemFileVer, preReleaseTag, weightedPreReleaseNumber, preReleaseTagWithDash, 
-                preReleaseLabel, preReleaseNumber, informationalVersion, commitDate, nugetVersion, nugetVersionV2, 
+                major, minor, patch, buildMetaData, buildMetaDataPadded, fullBuildMetaData, branchName,
+                sha, shortSha, majorMinorPatch, semVer, legacySemVer, legacySemVerPadded, fullSemVer,
+                assemblySemVer, assemblySemFileVer, preReleaseTag, weightedPreReleaseNumber, preReleaseTagWithDash,
+                preReleaseLabel, preReleaseNumber, informationalVersion, commitDate, nugetVersion, nugetVersionV2,
                 nugetPreReleaseTag, nugetPreReleaseTagV2, versionSourceSha, commitsSinceVersionSource, commitsSinceVersionSourcePadded)
         {
         }
diff --git a/src/GitVersionCore.Tests/Init/InitScenarios.cs b/src/GitVersionCore.Tests/Init/InitScenarios.cs
index 0de2f989..dfe12e31 100644
--- a/src/GitVersionCore.Tests/Init/InitScenarios.cs
+++ b/src/GitVersionCore.Tests/Init/InitScenarios.cs
@@ -32,7 +32,7 @@ namespace GitVersionCore.Tests.Init
                 services.AddSingleton<IConsole>(new TestConsole("3", "2.0.0", "0"));
                 services.AddSingleton(options);
             });
-            
+
             var configurationProvider = sp.GetService<IConfigProvider>();
             var fileSystem = sp.GetService<IFileSystem>();
             configurationProvider.Init(workingDirectory);
diff --git a/src/GitVersionCore.Tests/IntegrationTests/DocumentationSamples.cs b/src/GitVersionCore.Tests/IntegrationTests/DocumentationSamples.cs
index 6a46afeb..184c9758 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/DocumentationSamples.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/DocumentationSamples.cs
@@ -397,7 +397,7 @@ namespace GitVersionCore.Tests.IntegrationTests
             fixture.MergeNoFF("release/2.0.0");
             fixture.SequenceDiagram.Destroy("release/2.0.0");
             fixture.SequenceDiagram.NoteOver("Release branches are deleted once merged", "release/2.0.0");
-            
+
             fixture.AssertFullSemver("2.0.0+0");
             fixture.ApplyTag("2.0.0");
             fixture.AssertFullSemver("2.0.0");
diff --git a/src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs b/src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs
index e55c739d..56cccff4 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/FileSystemTests.cs
@@ -1,4 +1,4 @@
-using System.IO;
+using System.IO;
 using System.Text;
 using NUnit.Framework;
 using Shouldly;
@@ -62,4 +62,4 @@ namespace GitVersionCore.Tests.IntegrationTests
             bytes.ShouldBe(preamble);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs
index fea61af8..593a24f9 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/HotfixBranchScenarios.cs
@@ -1,4 +1,4 @@
-using System.Linq;
+using System.Linq;
 using GitTools.Testing;
 using LibGit2Sharp;
 using NUnit.Framework;
@@ -83,7 +83,7 @@ namespace GitVersionCore.Tests.IntegrationTests
             // Merge hotfix branch to support
             Commands.Checkout(fixture.Repository, "master");
             var tag = fixture.Repository.Tags.Single(t => t.FriendlyName == "1.1.0");
-            var supportBranch = fixture.Repository.CreateBranch("support-1.1", (Commit) tag.Target);
+            var supportBranch = fixture.Repository.CreateBranch("support-1.1", (Commit)tag.Target);
             Commands.Checkout(fixture.Repository, supportBranch);
             fixture.AssertFullSemver("1.1.0");

@@ -228,4 +228,4 @@ namespace GitVersionCore.Tests.IntegrationTests
         }

     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/IntegrationTests/MainlineDevelopmentMode.cs b/src/GitVersionCore.Tests/IntegrationTests/MainlineDevelopmentMode.cs
index 243bfb2e..053969db 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/MainlineDevelopmentMode.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/MainlineDevelopmentMode.cs
@@ -516,7 +516,7 @@ namespace GitVersionCore.Tests.IntegrationTests
                 ?.GetValue(fixture.SequenceDiagram);

             string GetParticipant(string participant) =>
-                (string) typeof(SequenceDiagram).GetMethod("GetParticipant", BindingFlags.Instance | BindingFlags.NonPublic)
+                (string)typeof(SequenceDiagram).GetMethod("GetParticipant", BindingFlags.Instance | BindingFlags.NonPublic)
                     ?.Invoke(fixture.SequenceDiagram, new object[]
                     {
                         participant
diff --git a/src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs
index 54bd232b..dfc29644 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs
@@ -170,7 +170,7 @@ namespace GitVersionCore.Tests.IntegrationTests
             fixture.Repository.MakeCommits(5);

             fixture.AssertFullSemver(new Config { TagPrefix = "version-" }, "1.0.4+5");
-        }    
+        }

         [Test]
         public void CanSpecifyTagPrefixesAsRegex()
diff --git a/src/GitVersionCore.Tests/IntegrationTests/RemoteRepositoryScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/RemoteRepositoryScenarios.cs
index 087f10a4..476a9028 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/RemoteRepositoryScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/RemoteRepositoryScenarios.cs
@@ -56,7 +56,7 @@ namespace GitVersionCore.Tests.IntegrationTests
             fixture.AssertFullSemver("0.1.0+5");
             fixture.AssertFullSemver("0.1.0+4", fixture.LocalRepositoryFixture.Repository);
             var buildSignature = fixture.LocalRepositoryFixture.Repository.Config.BuildSignature(new DateTimeOffset(DateTime.Now));
-            Commands.Pull((Repository) fixture.LocalRepositoryFixture.Repository, buildSignature, new PullOptions());
+            Commands.Pull((Repository)fixture.LocalRepositoryFixture.Repository, buildSignature, new PullOptions());
             fixture.AssertFullSemver("0.1.0+5", fixture.LocalRepositoryFixture.Repository);
         }

diff --git a/src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs
index 2b856745..a5d14279 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/SupportBranchScenarios.cs
@@ -1,4 +1,4 @@
-using GitTools.Testing;
+using GitTools.Testing;
 using GitVersionCore.Tests.Helpers;
 using LibGit2Sharp;
 using NUnit.Framework;
@@ -72,4 +72,4 @@ namespace GitVersionCore.Tests.IntegrationTests
             fixture.AssertFullSemver("1.3.1+2");
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs
index 96c298d6..b7bfa24b 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/SwitchingToGitFlowScenarios.cs
@@ -1,4 +1,4 @@
-using GitTools.Testing;
+using GitTools.Testing;
 using GitVersionCore.Tests.Helpers;
 using LibGit2Sharp;
 using NUnit.Framework;
@@ -19,4 +19,4 @@ namespace GitVersionCore.Tests.IntegrationTests
             fixture.AssertFullSemver("1.1.0-alpha.2");
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/IntegrationTests/VersionBumpingScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/VersionBumpingScenarios.cs
index 08c4c9f1..32947f80 100644
--- a/src/GitVersionCore.Tests/IntegrationTests/VersionBumpingScenarios.cs
+++ b/src/GitVersionCore.Tests/IntegrationTests/VersionBumpingScenarios.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using GitTools.Testing;
 using NUnit.Framework;
 using GitVersion.Configuration;
diff --git a/src/GitVersionCore.Tests/JsonVersionBuilderTests.cs b/src/GitVersionCore.Tests/JsonVersionBuilderTests.cs
index 3fbf73ad..0a2ecc24 100644
--- a/src/GitVersionCore.Tests/JsonVersionBuilderTests.cs
+++ b/src/GitVersionCore.Tests/JsonVersionBuilderTests.cs
@@ -36,7 +36,7 @@ namespace GitVersionCore.Tests
             var sp = ConfigureServices();

             var variableProvider = sp.GetService<IVariableProvider>();
-            var variables =  variableProvider.GetVariablesFor(semanticVersion, config, false);
+            var variables = variableProvider.GetVariablesFor(semanticVersion, config, false);
             var json = variables.ToString();
             json.ShouldMatchApproved(c => c.SubFolder("Approved"));
         }
diff --git a/src/GitVersionCore.Tests/Mocks/MockBranchCollection.cs b/src/GitVersionCore.Tests/Mocks/MockBranchCollection.cs
index 0d68cbef..c4f67906 100644
--- a/src/GitVersionCore.Tests/Mocks/MockBranchCollection.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockBranchCollection.cs
@@ -50,4 +50,4 @@ namespace GitVersionCore.Tests.Mocks
         public int Count => Branches.Count;
         public bool IsReadOnly => false;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockCommitLog.cs b/src/GitVersionCore.Tests/Mocks/MockCommitLog.cs
index b06d006f..9cb5dea9 100644
--- a/src/GitVersionCore.Tests/Mocks/MockCommitLog.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockCommitLog.cs
@@ -53,4 +53,4 @@ namespace GitVersionCore.Tests.Mocks

         public bool IsReadOnly => false;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockMergeCommit.cs b/src/GitVersionCore.Tests/Mocks/MockMergeCommit.cs
index f105bf1e..759f4f79 100644
--- a/src/GitVersionCore.Tests/Mocks/MockMergeCommit.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockMergeCommit.cs
@@ -9,4 +9,4 @@ namespace GitVersionCore.Tests.Mocks
             ParentsEx.Add(null);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs b/src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs
index f2014fca..0529d132 100644
--- a/src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockQueryableCommitLog.cs
@@ -35,7 +35,7 @@ namespace GitVersionCore.Tests.Mocks
         {
             throw new NotImplementedException();
         }
-    
+
         public Commit FindMergeBase(Commit first, Commit second)
         {
             return null;
@@ -51,4 +51,4 @@ namespace GitVersionCore.Tests.Mocks
             throw new NotImplementedException();
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockReferenceCollection.cs b/src/GitVersionCore.Tests/Mocks/MockReferenceCollection.cs
index 83447263..aac90a39 100644
--- a/src/GitVersionCore.Tests/Mocks/MockReferenceCollection.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockReferenceCollection.cs
@@ -56,4 +56,4 @@ namespace GitVersionCore.Tests.Mocks

         public bool IsReadOnly => false;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockReflogCollection.cs b/src/GitVersionCore.Tests/Mocks/MockReflogCollection.cs
index 84d867dd..91baf80d 100644
--- a/src/GitVersionCore.Tests/Mocks/MockReflogCollection.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockReflogCollection.cs
@@ -47,4 +47,4 @@ namespace GitVersionCore.Tests.Mocks

         public bool IsReadOnly => false;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockTag.cs b/src/GitVersionCore.Tests/Mocks/MockTag.cs
index 188c4d86..905c5005 100644
--- a/src/GitVersionCore.Tests/Mocks/MockTag.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockTag.cs
@@ -22,4 +22,4 @@ namespace GitVersionCore.Tests.Mocks

         public override TagAnnotation Annotation => AnnotationEx;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockTagAnnotation.cs b/src/GitVersionCore.Tests/Mocks/MockTagAnnotation.cs
index 381ac61e..3817ca0f 100644
--- a/src/GitVersionCore.Tests/Mocks/MockTagAnnotation.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockTagAnnotation.cs
@@ -11,4 +11,4 @@ namespace GitVersionCore.Tests.Mocks
         public GitObject TargetEx;
         public override GitObject Target => TargetEx;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/Mocks/MockTagCollection.cs b/src/GitVersionCore.Tests/Mocks/MockTagCollection.cs
index 1ab48d94..5d5ef0b2 100644
--- a/src/GitVersionCore.Tests/Mocks/MockTagCollection.cs
+++ b/src/GitVersionCore.Tests/Mocks/MockTagCollection.cs
@@ -56,4 +56,4 @@ namespace GitVersionCore.Tests.Mocks
         public int Count => Tags.Count;
         public bool IsReadOnly => false;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore.Tests/VersionCalculation/Strategies/MergeMessageBaseVersionStrategyTests.cs b/src/GitVersionCore.Tests/VersionCalculation/Strategies/MergeMessageBaseVersionStrategyTests.cs
index 1ae8d013..20954884 100644
--- a/src/GitVersionCore.Tests/VersionCalculation/Strategies/MergeMessageBaseVersionStrategyTests.cs
+++ b/src/GitVersionCore.Tests/VersionCalculation/Strategies/MergeMessageBaseVersionStrategyTests.cs
@@ -140,7 +140,7 @@ namespace GitVersionCore.Tests.VersionCalculation.Strategies
             var parents = GetParents(true);

             AssertMergeMessage(commitMessage, null, parents);
-        } 
+        }

         [TestCase("Merge branch 'support/0.2.0'", "support", "0.2.0")]
         [TestCase("Merge branch 'support/0.2.0'", null, null)]
diff --git a/src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs b/src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs
index c08f62aa..610f144f 100644
--- a/src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs
+++ b/src/GitVersionCore.Tests/VersionCalculation/TestMetaDataCalculator.cs
@@ -1,4 +1,4 @@
-using GitVersion;
+using GitVersion;
 using GitVersion.VersionCalculation;
 using LibGit2Sharp;

@@ -18,4 +18,4 @@ namespace GitVersionCore.Tests.VersionCalculation
             return metaData;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/AuthenticationInfo.cs b/src/GitVersionCore/AuthenticationInfo.cs
index 6218a6b7..83d6fd75 100644
--- a/src/GitVersionCore/AuthenticationInfo.cs
+++ b/src/GitVersionCore/AuthenticationInfo.cs
@@ -24,4 +24,4 @@ namespace GitVersion
             return fetchOptions;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/BuildServers/GitHubActions.cs b/src/GitVersionCore/BuildServers/GitHubActions.cs
index dc10ec52..1de83aa4 100644
--- a/src/GitVersionCore/BuildServers/GitHubActions.cs
+++ b/src/GitVersionCore/BuildServers/GitHubActions.cs
@@ -3,7 +3,7 @@ using GitVersion.OutputVariables;

 namespace GitVersion.BuildServers
 {
-    public class GitHubActions: BuildServerBase
+    public class GitHubActions : BuildServerBase
     {
         // https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables#default-environment-variables

diff --git a/src/GitVersionCore/BuildServers/TravisCI.cs b/src/GitVersionCore/BuildServers/TravisCI.cs
index cb86ad42..297592fe 100644
--- a/src/GitVersionCore/BuildServers/TravisCI.cs
+++ b/src/GitVersionCore/BuildServers/TravisCI.cs
@@ -12,7 +12,7 @@ namespace GitVersion.BuildServers
         public const string EnvironmentVariableName = "TRAVIS";
         protected override string EnvironmentVariable { get; } = EnvironmentVariableName;

-        public override bool CanApplyToCurrentContext ()
+        public override bool CanApplyToCurrentContext()
         {
             return "true".Equals(Environment.GetEnvironmentVariable(EnvironmentVariable)) && "true".Equals(Environment.GetEnvironmentVariable("CI"));
         }
@@ -30,7 +30,7 @@ namespace GitVersion.BuildServers
             };
         }

-        public override bool PreventFetch () => true;
+        public override bool PreventFetch() => true;
     }
 }

diff --git a/src/GitVersionCore/Configuration/BranchConfig.cs b/src/GitVersionCore/Configuration/BranchConfig.cs
index 29979d21..3790eb7e 100644
--- a/src/GitVersionCore/Configuration/BranchConfig.cs
+++ b/src/GitVersionCore/Configuration/BranchConfig.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using GitVersion.VersioningModes;
 using YamlDotNet.Serialization;

diff --git a/src/GitVersionCore/Configuration/Config.cs b/src/GitVersionCore/Configuration/Config.cs
index 1dc32306..4fd1481b 100644
--- a/src/GitVersionCore/Configuration/Config.cs
+++ b/src/GitVersionCore/Configuration/Config.cs
@@ -87,7 +87,7 @@ namespace GitVersion.Configuration
                 value.ToList().ForEach(_ =>
                 {
                     if (!branches.ContainsKey(_.Key))
-                        branches.Add(_.Key, new BranchConfig {Name = _.Key});
+                        branches.Add(_.Key, new BranchConfig { Name = _.Key });

                     branches[_.Key] = MergeObjects(branches[_.Key], _.Value);
                 });
diff --git a/src/GitVersionCore/Configuration/DefaultConfigFileLocator.cs b/src/GitVersionCore/Configuration/DefaultConfigFileLocator.cs
index 221eae84..1ed2b93c 100644
--- a/src/GitVersionCore/Configuration/DefaultConfigFileLocator.cs
+++ b/src/GitVersionCore/Configuration/DefaultConfigFileLocator.cs
@@ -8,7 +8,7 @@ namespace GitVersion.Configuration
     {
         public DefaultConfigFileLocator(IFileSystem fileSystem, ILog log) : base(fileSystem, log)
         {
-            
+
         }

         public const string DefaultFileName = "GitVersion.yml";
diff --git a/src/GitVersionCore/Configuration/EffectiveConfiguration.cs b/src/GitVersionCore/Configuration/EffectiveConfiguration.cs
index 17d3ddc4..53b7f4dc 100644
--- a/src/GitVersionCore/Configuration/EffectiveConfiguration.cs
+++ b/src/GitVersionCore/Configuration/EffectiveConfiguration.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using GitVersion.Extensions;
 using GitVersion.VersionFilters;
 using GitVersion.VersioningModes;
@@ -122,4 +122,4 @@ namespace GitVersion.Configuration

         public int PreReleaseWeight { get; private set; }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/GitVersionConfigurationException.cs b/src/GitVersionCore/Configuration/GitVersionConfigurationException.cs
index 59f5a01d..a29d3743 100644
--- a/src/GitVersionCore/Configuration/GitVersionConfigurationException.cs
+++ b/src/GitVersionCore/Configuration/GitVersionConfigurationException.cs
@@ -11,4 +11,4 @@ namespace GitVersion.Configuration
         {
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/IConfigFileLocatorFactory.cs b/src/GitVersionCore/Configuration/IConfigFileLocatorFactory.cs
index 09a3bd4c..c88f4365 100644
--- a/src/GitVersionCore/Configuration/IConfigFileLocatorFactory.cs
+++ b/src/GitVersionCore/Configuration/IConfigFileLocatorFactory.cs
@@ -4,4 +4,4 @@ namespace GitVersion.Configuration
     {
         IConfigFileLocator Create();
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/IConsole.cs b/src/GitVersionCore/Configuration/IConsole.cs
index 830ee6ec..6df98f57 100644
--- a/src/GitVersionCore/Configuration/IConsole.cs
+++ b/src/GitVersionCore/Configuration/IConsole.cs
@@ -10,4 +10,4 @@ namespace GitVersion.Configuration
         string ReadLine();
         IDisposable UseColor(ConsoleColor consoleColor);
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/IgnoreConfig.cs b/src/GitVersionCore/Configuration/IgnoreConfig.cs
index c3103d98..4836131b 100644
--- a/src/GitVersionCore/Configuration/IgnoreConfig.cs
+++ b/src/GitVersionCore/Configuration/IgnoreConfig.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using GitVersion.VersionFilters;
@@ -25,4 +25,4 @@ namespace GitVersion.Configuration
             if (Before.HasValue) yield return new MinDateVersionFilter(Before.Value);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/Init/GitVersionInitModule.cs b/src/GitVersionCore/Configuration/Init/GitVersionInitModule.cs
index 8e0206f4..593740e2 100644
--- a/src/GitVersionCore/Configuration/Init/GitVersionInitModule.cs
+++ b/src/GitVersionCore/Configuration/Init/GitVersionInitModule.cs
@@ -26,6 +26,6 @@ namespace GitVersion.Configuration.Init
         {
             var derivedType = typeof(T);
             return assembly.GetTypes().Where(t => t != derivedType && derivedType.IsAssignableFrom(t));
-        } 
+        }
     }
 }
diff --git a/src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs b/src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs
index 65c59627..0dbc18c6 100644
--- a/src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs
+++ b/src/GitVersionCore/Configuration/Init/SetConfig/ConfigureBranches.cs
@@ -28,7 +28,7 @@ namespace GitVersion.Configuration.Init.SetConfig
                     var branchConfig = foundBranch.Value;
                     if (branchConfig == null)
                     {
-                        branchConfig = new BranchConfig {Name = foundBranch.Key};
+                        branchConfig = new BranchConfig { Name = foundBranch.Key };
                         config.Branches.Add(foundBranch.Key, branchConfig);
                     }
                     steps.Enqueue(StepFactory.CreateStep<ConfigureBranch>().WithData(foundBranch.Key, branchConfig));
diff --git a/src/GitVersionCore/Configuration/Init/StepResult.cs b/src/GitVersionCore/Configuration/Init/StepResult.cs
index c320b308..da3c19b3 100644
--- a/src/GitVersionCore/Configuration/Init/StepResult.cs
+++ b/src/GitVersionCore/Configuration/Init/StepResult.cs
@@ -41,4 +41,4 @@ namespace GitVersion.Configuration.Init

         public bool InvalidResponse { get; private set; }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Configuration/Init/Wizard/GitFlowSetupStep.cs b/src/GitVersionCore/Configuration/Init/Wizard/GitFlowSetupStep.cs
index 87b32d23..0e00c2df 100644
--- a/src/GitVersionCore/Configuration/Init/Wizard/GitFlowSetupStep.cs
+++ b/src/GitVersionCore/Configuration/Init/Wizard/GitFlowSetupStep.cs
@@ -11,7 +11,7 @@ namespace GitVersion.Configuration.Init.Wizard

         protected override string GetPrompt(Config config, string workingDirectory)
         {
-            return "By default GitVersion will only increment the version of the 'develop' branch every commit, all other branches will increment when tagged\r\n\r\n" + 
+            return "By default GitVersion will only increment the version of the 'develop' branch every commit, all other branches will increment when tagged\r\n\r\n" +
                 base.GetPrompt(config, workingDirectory);
         }
     }
diff --git a/src/GitVersionCore/Configuration/LegacyConfig.cs b/src/GitVersionCore/Configuration/LegacyConfig.cs
index dd48af37..452293fd 100644
--- a/src/GitVersionCore/Configuration/LegacyConfig.cs
+++ b/src/GitVersionCore/Configuration/LegacyConfig.cs
@@ -38,7 +38,7 @@ namespace GitVersion.Configuration

         private T MergeObjects<T>(T target, T source)
         {
-            
+
             var typeInfo = typeof(T);
             typeInfo.GetProperties()
                 .Where(prop => prop.CanRead && prop.CanWrite)
diff --git a/src/GitVersionCore/Configuration/OldConfigurationException.cs b/src/GitVersionCore/Configuration/OldConfigurationException.cs
index b17be9f8..a0f8139d 100644
--- a/src/GitVersionCore/Configuration/OldConfigurationException.cs
+++ b/src/GitVersionCore/Configuration/OldConfigurationException.cs
@@ -11,4 +11,4 @@ namespace GitVersion.Configuration
         {
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Exceptions/BugException.cs b/src/GitVersionCore/Exceptions/BugException.cs
index 914a5040..81116864 100644
--- a/src/GitVersionCore/Exceptions/BugException.cs
+++ b/src/GitVersionCore/Exceptions/BugException.cs
@@ -8,4 +8,4 @@ namespace GitVersion.Exceptions
         {
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Exceptions/GitToolsException.cs b/src/GitVersionCore/Exceptions/GitToolsException.cs
index 2518bb47..792f87f2 100644
--- a/src/GitVersionCore/Exceptions/GitToolsException.cs
+++ b/src/GitVersionCore/Exceptions/GitToolsException.cs
@@ -15,4 +15,4 @@ namespace GitVersion.Exceptions
         {
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Exceptions/WarningException.cs b/src/GitVersionCore/Exceptions/WarningException.cs
index caabf7c2..eeda73b5 100644
--- a/src/GitVersionCore/Exceptions/WarningException.cs
+++ b/src/GitVersionCore/Exceptions/WarningException.cs
@@ -10,4 +10,4 @@ namespace GitVersion.Exceptions
         {
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Extensions/AssemblyInfo.cs b/src/GitVersionCore/Extensions/AssemblyInfo.cs
index 9067589f..967d567a 100644
--- a/src/GitVersionCore/Extensions/AssemblyInfo.cs
+++ b/src/GitVersionCore/Extensions/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
 using System.Runtime.CompilerServices;

 [assembly: AssemblyTitle("GitVersionCore")]
diff --git a/src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs b/src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs
index 85ad0a85..30428372 100644
--- a/src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs
+++ b/src/GitVersionCore/Extensions/AssemblyVersioningScheme.cs
@@ -1,4 +1,4 @@
-namespace GitVersion.Extensions
+namespace GitVersion.Extensions
 {
     public enum AssemblyVersioningScheme
     {
@@ -8,4 +8,4 @@
         Major,
         None
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs b/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs
index f63603f8..be7fc098 100644
--- a/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs
+++ b/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.cs
@@ -1 +1 @@
-public static string {0} = "{1}";
\ No newline at end of file
+public static string {0} = "{1}";
diff --git a/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb b/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb
index 91f92471..1cafb99a 100644
--- a/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb
+++ b/src/GitVersionCore/Extensions/GitVersionInformationResources/AddFormats/GitVersionInformation.vb
@@ -1 +1 @@
-Public Shared {0} As String = "{1}"
\ No newline at end of file
+Public Shared {0} As String = "{1}"
diff --git a/src/GitVersionCore/Extensions/LibGitExtensions.cs b/src/GitVersionCore/Extensions/LibGitExtensions.cs
index 5fced055..f5c8d936 100644
--- a/src/GitVersionCore/Extensions/LibGitExtensions.cs
+++ b/src/GitVersionCore/Extensions/LibGitExtensions.cs
@@ -59,7 +59,7 @@ namespace GitVersion.Extensions
         /// <summary>
         /// Exclude the given branches (by value equality according to friendly name).
         /// </summary>
-        public static IEnumerable<Branch> ExcludingBranches( this IEnumerable<Branch> branches, IEnumerable<Branch> branchesToExclude)
+        public static IEnumerable<Branch> ExcludingBranches(this IEnumerable<Branch> branches, IEnumerable<Branch> branchesToExclude)
         {
             return branches.Where(b => branchesToExclude.All(bte => !IsSameBranch(b, bte)));
         }
diff --git a/src/GitVersionCore/Extensions/ObjectExtensions.cs b/src/GitVersionCore/Extensions/ObjectExtensions.cs
index 8751d48e..a0957dd7 100644
--- a/src/GitVersionCore/Extensions/ObjectExtensions.cs
+++ b/src/GitVersionCore/Extensions/ObjectExtensions.cs
@@ -24,7 +24,7 @@ namespace GitVersion.Extensions
             var type = typeof(string);
             return obj.GetType().GetProperties()
                 .Where(p => p.PropertyType == type && !p.GetIndexParameters().Any() && !p.GetCustomAttributes(typeof(ReflectionIgnoreAttribute), false).Any())
-                .Select(p => new KeyValuePair<string, string>(p.Name, (string) p.GetValue(obj, null)));
+                .Select(p => new KeyValuePair<string, string>(p.Name, (string)p.GetValue(obj, null)));
         }
     }
 }
diff --git a/src/GitVersionCore/Extensions/StringExtensions.cs b/src/GitVersionCore/Extensions/StringExtensions.cs
index aa20ba6f..a1b8dcb9 100644
--- a/src/GitVersionCore/Extensions/StringExtensions.cs
+++ b/src/GitVersionCore/Extensions/StringExtensions.cs
@@ -31,12 +31,12 @@ namespace GitVersion.Extensions
         {
             return Trues.Contains(value, StringComparer.OrdinalIgnoreCase);
         }
-        
+
         public static bool IsFalse(this string value)
         {
             return Falses.Contains(value, StringComparer.OrdinalIgnoreCase);
         }
-        
+
         public static bool IsValidPath(this string path)
         {
             if (path == null)
@@ -113,7 +113,7 @@ namespace GitVersion.Extensions
             // If this is the first argument that might be a target path, the argument starts with slash and we're on an OS that supports paths with slashes, the argument does not require a value.
             if (argumentMightRequireValue && argumentIndex == 0 && argument.StartsWith("/") && Path.DirectorySeparatorChar == '/' && argument.IsValidPath())
                 return false;
-            
+
             return argumentMightRequireValue;
         }

diff --git a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs
index 4857d5c2..1adff029 100644
--- a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs
+++ b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.cs
@@ -1 +1 @@
-[assembly: {0}]
\ No newline at end of file
+[assembly: {0}]
diff --git a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb
index d013c4c1..ecffbee4 100644
--- a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb
+++ b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AddFormats/VersionAssemblyInfo.vb
@@ -1 +1 @@
-<Assembly: {0}>
\ No newline at end of file
+<Assembly: {0}>
diff --git a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AssemblyInfoFileUpdater.cs b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AssemblyInfoFileUpdater.cs
index e54922f3..b4922894 100644
--- a/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AssemblyInfoFileUpdater.cs
+++ b/src/GitVersionCore/Extensions/VersionAssemblyInfoResources/AssemblyInfoFileUpdater.cs
@@ -134,7 +134,7 @@ namespace GitVersion.Extensions.VersionAssemblyInfoResources
                     return inputString.Replace(lastMatch.Value, replacementString);
                 }
             }
-           
+
             inputString += NewLine + string.Format(assemblyAddFormat, replaceString);
             appendedAttributes = true;
             return inputString;
diff --git a/src/GitVersionCore/GitVersionFinder.cs b/src/GitVersionCore/GitVersionFinder.cs
index 44e44cd7..6fedda95 100644
--- a/src/GitVersionCore/GitVersionFinder.cs
+++ b/src/GitVersionCore/GitVersionFinder.cs
@@ -30,7 +30,7 @@ namespace GitVersion

             var filePath = Path.Combine(context.Repository.GetRepositoryDirectory(), "NextVersion.txt");
             if (File.Exists(filePath))
-            {            
+            {
                 throw new WarningException("NextVersion.txt has been deprecated. See http://gitversion.readthedocs.org/en/latest/configuration/ for replacement");
             }

diff --git a/src/GitVersionCore/Helpers/ServiceMessageEscapeHelper.cs b/src/GitVersionCore/Helpers/ServiceMessageEscapeHelper.cs
index 0382ce3e..3c1ba06d 100644
--- a/src/GitVersionCore/Helpers/ServiceMessageEscapeHelper.cs
+++ b/src/GitVersionCore/Helpers/ServiceMessageEscapeHelper.cs
@@ -20,4 +20,4 @@ namespace GitVersion.Helpers
             return value;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Logging/Disposable.cs b/src/GitVersionCore/Logging/Disposable.cs
index cae65a6d..410c6ce5 100644
--- a/src/GitVersionCore/Logging/Disposable.cs
+++ b/src/GitVersionCore/Logging/Disposable.cs
@@ -29,4 +29,4 @@ namespace GitVersion.Logging
             private Action disposer;
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/Logging/Log.cs b/src/GitVersionCore/Logging/Log.cs
index fbc737a7..489bd4da 100644
--- a/src/GitVersionCore/Logging/Log.cs
+++ b/src/GitVersionCore/Logging/Log.cs
@@ -14,7 +14,7 @@ namespace GitVersion.Logging
         private readonly StringBuilder sb;
         private string indent = string.Empty;

-        public Log(): this(Array.Empty<ILogAppender>())
+        public Log() : this(Array.Empty<ILogAppender>())
         {
         }

diff --git a/src/GitVersionCore/OutputFormatters/BuildOutputFormatter.cs b/src/GitVersionCore/OutputFormatters/BuildOutputFormatter.cs
index 484c6d59..56c09dac 100644
--- a/src/GitVersionCore/OutputFormatters/BuildOutputFormatter.cs
+++ b/src/GitVersionCore/OutputFormatters/BuildOutputFormatter.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using GitVersion.OutputVariables;

 namespace GitVersion.OutputFormatters
diff --git a/src/GitVersionCore/OutputFormatters/OutputType.cs b/src/GitVersionCore/OutputFormatters/OutputType.cs
index 90662e56..cc9842ca 100644
--- a/src/GitVersionCore/OutputFormatters/OutputType.cs
+++ b/src/GitVersionCore/OutputFormatters/OutputType.cs
@@ -6,4 +6,4 @@ namespace GitVersion.OutputFormatters

         Json
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/SemanticVersioning/SemanticVersion.cs b/src/GitVersionCore/SemanticVersioning/SemanticVersion.cs
index 6597fff4..39172e33 100644
--- a/src/GitVersionCore/SemanticVersioning/SemanticVersion.cs
+++ b/src/GitVersionCore/SemanticVersioning/SemanticVersion.cs
@@ -154,7 +154,7 @@ namespace GitVersion
                 semanticVersion = null;
                 return false;
             }
-            
+
             version = match.Groups["version"].Value;
             var parsed = ParseSemVer.Match(version);

diff --git a/src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs b/src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs
index cff5dd1b..07644ea2 100644
--- a/src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs
+++ b/src/GitVersionCore/SemanticVersioning/SemanticVersionBuildMetaData.cs
@@ -102,7 +102,7 @@ namespace GitVersion
                     }
                 }

-                return CommitsSinceTag != null ? CommitsSinceTag.Value.ToString("D" + padding) : string.Empty; 
+                return CommitsSinceTag != null ? CommitsSinceTag.Value.ToString("D" + padding) : string.Empty;
             }

             return format.ToLower() switch
@@ -162,7 +162,7 @@ namespace GitVersion

         private string FormatMetaDataPart(string value)
         {
-            if(!string.IsNullOrEmpty(value))
+            if (!string.IsNullOrEmpty(value))
                 value = Regex.Replace(value, "[^0-9A-Za-z-.]", "-");
             return value;
         }
diff --git a/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs b/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs
index ba01948c..f4a91599 100644
--- a/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs
+++ b/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs
@@ -29,7 +29,7 @@ namespace GitVersion.VersionCalculation.BaseVersionCalculators
                 throw new GitVersionException($"Can't find commit {currentBranchTip.Sha}. Please ensure that the repository is an unshallow clone with `git fetch --unshallow`.", exception);
             }

-            yield return new BaseVersion(context, "Fallback base version", false, new SemanticVersion(minor : 1), baseVersionSource, null);
+            yield return new BaseVersion(context, "Fallback base version", false, new SemanticVersion(minor: 1), baseVersionSource, null);
         }
     }
 }
diff --git a/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/TaggedCommitVersionStrategy.cs b/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/TaggedCommitVersionStrategy.cs
index 46c1042c..f0f16ce9 100644
--- a/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/TaggedCommitVersionStrategy.cs
+++ b/src/GitVersionCore/VersionCalculation/BaseVersionCalculators/TaggedCommitVersionStrategy.cs
@@ -29,8 +29,8 @@ namespace GitVersion.VersionCalculation.BaseVersionCalculators
         public IEnumerable<BaseVersion> GetTaggedVersions(GitVersionContext context, Branch currentBranch, DateTimeOffset? olderThan)
         {
             var gitRepoMetadataProvider = new GitRepoMetadataProvider(context.Repository, log, context.FullConfiguration);
-            var allTags = gitRepoMetadataProvider.GetValidVersionTags(context.Repository, context.Configuration.GitTagPrefix, olderThan); 
-                
+            var allTags = gitRepoMetadataProvider.GetValidVersionTags(context.Repository, context.Configuration.GitTagPrefix, olderThan);
+
             var tagsOnBranch = currentBranch
                 .Commits
                 .SelectMany(commit => { return allTags.Where(t => IsValidTag(t.Item1, commit)); })
diff --git a/src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs b/src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs
index dd9a24c2..30e894b8 100644
--- a/src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs
+++ b/src/GitVersionCore/VersionCalculation/IBaseVersionCalculator.cs
@@ -1,4 +1,4 @@
-using GitVersion.VersionCalculation.BaseVersionCalculators;
+using GitVersion.VersionCalculation.BaseVersionCalculators;

 namespace GitVersion.VersionCalculation
 {
@@ -6,4 +6,4 @@ namespace GitVersion.VersionCalculation
     {
         BaseVersion GetBaseVersion(GitVersionContext context);
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs b/src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs
index 231e8c36..cba86ba8 100644
--- a/src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs
+++ b/src/GitVersionCore/VersionCalculation/IncrementStrategyFinder.cs
@@ -131,10 +131,10 @@ namespace GitVersion

         private static VersionField? FindIncrementFromMessage(string message, string majorRegex, string minorRegex, string patchRegex, string noneRegex)
         {
-            if(IsMatch(message, majorRegex)) return VersionField.Major;
-            if(IsMatch(message, minorRegex)) return VersionField.Minor;
-            if(IsMatch(message, patchRegex)) return VersionField.Patch;
-            if(IsMatch(message, noneRegex)) return VersionField.None;
+            if (IsMatch(message, majorRegex)) return VersionField.Major;
+            if (IsMatch(message, minorRegex)) return VersionField.Minor;
+            if (IsMatch(message, patchRegex)) return VersionField.Patch;
+            if (IsMatch(message, noneRegex)) return VersionField.None;
             return null;
         }

@@ -153,10 +153,10 @@ namespace GitVersion
         private static readonly IDictionary<int, bool> MatchCache = new Dictionary<int, bool>();
         private static readonly IDictionary<int, VersionField?> VersionFieldCache = new Dictionary<int, VersionField?>();

-        public static VersionField FindDefaultIncrementForBranch( GitVersionContext context, string branch = null )
+        public static VersionField FindDefaultIncrementForBranch(GitVersionContext context, string branch = null)
         {
             var config = context.FullConfiguration.GetConfigForBranch(branch ?? context.CurrentBranch.NameWithoutRemote());
-            if ( config?.Increment != null && config.Increment != IncrementStrategy.Inherit )
+            if (config?.Increment != null && config.Increment != IncrementStrategy.Inherit)
             {
                 return config.Increment.Value.ToVersionField();
             }
diff --git a/src/GitVersionCore/VersionFilters/IVersionFilter.cs b/src/GitVersionCore/VersionFilters/IVersionFilter.cs
index 3e9b5407..be9acfd1 100644
--- a/src/GitVersionCore/VersionFilters/IVersionFilter.cs
+++ b/src/GitVersionCore/VersionFilters/IVersionFilter.cs
@@ -1,4 +1,4 @@
-using GitVersion.VersionCalculation.BaseVersionCalculators;
+using GitVersion.VersionCalculation.BaseVersionCalculators;

 namespace GitVersion.VersionFilters
 {
diff --git a/src/GitVersionCore/VersioningModes/VersioningMode.cs b/src/GitVersionCore/VersioningModes/VersioningMode.cs
index a1932080..87e0ea7f 100644
--- a/src/GitVersionCore/VersioningModes/VersioningMode.cs
+++ b/src/GitVersionCore/VersioningModes/VersioningMode.cs
@@ -1,4 +1,4 @@
-namespace GitVersion.VersioningModes
+namespace GitVersion.VersioningModes
 {
     public enum VersioningMode
     {
diff --git a/src/GitVersionCore/VersioningModes/VersioningModeExtension.cs b/src/GitVersionCore/VersioningModes/VersioningModeExtension.cs
index fe2594d5..c25d482b 100644
--- a/src/GitVersionCore/VersioningModes/VersioningModeExtension.cs
+++ b/src/GitVersionCore/VersioningModes/VersioningModeExtension.cs
@@ -8,7 +8,7 @@ namespace GitVersion.VersioningModes
         {
             return _this switch
             {
-                VersioningMode.ContinuousDelivery => (VersioningModeBase) new ContinuousDeliveryMode(),
+                VersioningMode.ContinuousDelivery => (VersioningModeBase)new ContinuousDeliveryMode(),
                 VersioningMode.ContinuousDeployment => new ContinuousDeploymentMode(),
                 _ => throw new ArgumentException("No instance exists for this versioning mode.")
             };
diff --git a/src/GitVersionExe.Tests/ArgumentParserTests.cs b/src/GitVersionExe.Tests/ArgumentParserTests.cs
index 072074e8..761f6b78 100644
--- a/src/GitVersionExe.Tests/ArgumentParserTests.cs
+++ b/src/GitVersionExe.Tests/ArgumentParserTests.cs
@@ -65,7 +65,7 @@ namespace GitVersionExe.Tests
         [Test]
         public void ExecWithArgs()
         {
-            var arguments = argumentParser.ParseArguments(new []
+            var arguments = argumentParser.ParseArguments(new[]
             {
                 "-exec",
                 "rake",
@@ -86,7 +86,7 @@ namespace GitVersionExe.Tests
         [Test]
         public void MsbuildWithArgs()
         {
-            var arguments = argumentParser.ParseArguments(new []
+            var arguments = argumentParser.ParseArguments(new[]
             {
                 "-proj",
                 "msbuild.proj",
diff --git a/src/GitVersionExe.Tests/AssemblyParallelizable.cs b/src/GitVersionExe.Tests/AssemblyParallelizable.cs
index 9f6f4f45..9ae285d9 100644
--- a/src/GitVersionExe.Tests/AssemblyParallelizable.cs
+++ b/src/GitVersionExe.Tests/AssemblyParallelizable.cs
@@ -1,3 +1,3 @@
-using NUnit.Framework;
+using NUnit.Framework;

-[assembly: Parallelizable(ParallelScope.Fixtures)]
\ No newline at end of file
+[assembly: Parallelizable(ParallelScope.Fixtures)]
diff --git a/src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs b/src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs
index 03ef676d..fe88eae7 100644
--- a/src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs
+++ b/src/GitVersionExe.Tests/JsonOutputOnBuildServer.cs
@@ -1,4 +1,4 @@
-using GitTools.Testing;
+using GitTools.Testing;
 using NUnit.Framework;
 using Shouldly;

@@ -12,7 +12,7 @@ namespace GitVersionExe.Tests
             using var fixture = new RemoteRepositoryFixture();
             fixture.Repository.MakeATaggedCommit("1.2.3");
             fixture.Repository.MakeACommit();
-                
+
             var result = GitVersionHelper.ExecuteIn(fixture.LocalRepositoryFixture.RepositoryPath, arguments: " /output json", isTeamCity: true);

             result.ExitCode.ShouldBe(0);
@@ -20,4 +20,4 @@ namespace GitVersionExe.Tests
             result.Output.TrimEnd().ShouldEndWith("}");
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionExe.Tests/PullRequestInJenkinsPipelineTest.cs b/src/GitVersionExe.Tests/PullRequestInJenkinsPipelineTest.cs
index a730cfbf..98473735 100644
--- a/src/GitVersionExe.Tests/PullRequestInJenkinsPipelineTest.cs
+++ b/src/GitVersionExe.Tests/PullRequestInJenkinsPipelineTest.cs
@@ -48,7 +48,7 @@ namespace GitVersionExe.Tests
             Environment.SetEnvironmentVariable("JENKINS_URL", "url");

             var result = GitVersionHelper.ExecuteIn(fixture.RepositoryPath);
-            
+
             result.ExitCode.ShouldBe(0);
             result.OutputVariables.FullSemVer.ShouldBe("1.0.4-PullRequest0005.3");

diff --git a/src/GitVersionExe/AssemblyInfo.cs b/src/GitVersionExe/AssemblyInfo.cs
index e75c30ff..c441c441 100644
--- a/src/GitVersionExe/AssemblyInfo.cs
+++ b/src/GitVersionExe/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
 using System.Runtime.CompilerServices;

 [assembly: AssemblyTitle("GitVersion")]
diff --git a/src/GitVersionExe/ExecCommand.cs b/src/GitVersionExe/ExecCommand.cs
index 8ffc4717..6d1db34f 100644
--- a/src/GitVersionExe/ExecCommand.cs
+++ b/src/GitVersionExe/ExecCommand.cs
@@ -44,12 +44,12 @@ namespace GitVersion
             switch (arguments.Output)
             {
                 case OutputType.BuildServer:
-                {
-                    var buildServer = buildServerResolver.Resolve();
-                    buildServer?.WriteIntegration(Console.WriteLine, variables);
+                    {
+                        var buildServer = buildServerResolver.Resolve();
+                        buildServer?.WriteIntegration(Console.WriteLine, variables);

-                    break;
-                }
+                        break;
+                    }
                 case OutputType.Json:
                     switch (arguments.ShowVariable)
                     {
diff --git a/src/GitVersionExe/IGitVersionExecutor.cs b/src/GitVersionExe/IGitVersionExecutor.cs
index a008735e..c1460711 100644
--- a/src/GitVersionExe/IGitVersionExecutor.cs
+++ b/src/GitVersionExe/IGitVersionExecutor.cs
@@ -4,4 +4,4 @@ namespace GitVersion
     {
         int Execute(Arguments arguments);
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionTask.MsBuild/TaskProxy.cs b/src/GitVersionTask.MsBuild/TaskProxy.cs
index e5e67ad0..d8d1b929 100644
--- a/src/GitVersionTask.MsBuild/TaskProxy.cs
+++ b/src/GitVersionTask.MsBuild/TaskProxy.cs
@@ -21,10 +21,10 @@ namespace GitVersion.MSBuildTask

             var type = LibGit2SharpLoader.Instance.Assembly.GetType("GitVersion.MSBuildTask.GitVersionTasks", throwOnError: true).GetTypeInfo();

-            GetVersion                    = GetMethod<GetVersion>(type, nameof(GetVersion));
+            GetVersion = GetMethod<GetVersion>(type, nameof(GetVersion));
             GenerateGitVersionInformation = GetMethod<GenerateGitVersionInformation>(type, nameof(GenerateGitVersionInformation));
-            UpdateAssemblyInfo            = GetMethod<UpdateAssemblyInfo>(type, nameof(UpdateAssemblyInfo));
-            WriteVersionInfoToBuildLog    = GetMethod<WriteVersionInfoToBuildLog>(type, nameof(WriteVersionInfoToBuildLog));
+            UpdateAssemblyInfo = GetMethod<UpdateAssemblyInfo>(type, nameof(UpdateAssemblyInfo));
+            WriteVersionInfoToBuildLog = GetMethod<WriteVersionInfoToBuildLog>(type, nameof(WriteVersionInfoToBuildLog));
         }

         private static Func<T, bool> GetMethod<T>(TypeInfo type, string name) => (Func<T, bool>)type.GetDeclaredMethod(name).CreateDelegate(typeof(Func<T, bool>));
diff --git a/src/GitVersionTask.Tests/AssemblyParallelizable.cs b/src/GitVersionTask.Tests/AssemblyParallelizable.cs
index 9f6f4f45..9ae285d9 100644
--- a/src/GitVersionTask.Tests/AssemblyParallelizable.cs
+++ b/src/GitVersionTask.Tests/AssemblyParallelizable.cs
@@ -1,3 +1,3 @@
-using NUnit.Framework;
+using NUnit.Framework;

-[assembly: Parallelizable(ParallelScope.Fixtures)]
\ No newline at end of file
+[assembly: Parallelizable(ParallelScope.Fixtures)]
diff --git a/src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs b/src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs
index 4ec0eeab..f6d5c78f 100644
--- a/src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs
+++ b/src/GitVersionTask.Tests/Helpers/IPostTestDirectoryRemover.cs
@@ -1,7 +1,7 @@
-namespace GitVersion.MSBuildTask.Tests.Helpers
+namespace GitVersion.MSBuildTask.Tests.Helpers
 {
     public interface IPostTestDirectoryRemover
     {
         void Register(string directoryPath);
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionTask.Tests/Helpers/Scrubbers.cs b/src/GitVersionTask.Tests/Helpers/Scrubbers.cs
index 796ef7e7..8cf55f6f 100644
--- a/src/GitVersionTask.Tests/Helpers/Scrubbers.cs
+++ b/src/GitVersionTask.Tests/Helpers/Scrubbers.cs
@@ -13,4 +13,4 @@ namespace GitVersion.MSBuildTask.Tests.Helpers
             return Regex.Replace(GuidScrubber(value), @"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d*?)?Z", "<date replaced>");
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs b/src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs
index bdd84edb..579875d6 100644
--- a/src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs
+++ b/src/GitVersionTask.Tests/Helpers/SelfCleaningDirectory.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.IO;

 namespace GitVersion.MSBuildTask.Tests.Helpers
@@ -18,4 +18,4 @@ namespace GitVersion.MSBuildTask.Tests.Helpers

         public string DirectoryPath;
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionTask.Tests/Mocks/MockTaskItem.cs b/src/GitVersionTask.Tests/Mocks/MockTaskItem.cs
index feb3fb59..848df569 100644
--- a/src/GitVersionTask.Tests/Mocks/MockTaskItem.cs
+++ b/src/GitVersionTask.Tests/Mocks/MockTaskItem.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections;
 using Microsoft.Build.Framework;

@@ -37,4 +37,4 @@ namespace GitVersion.MSBuildTask.Tests.Mocks
             throw new NotImplementedException();
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/GitVersionTask/GitVersionTasks.cs b/src/GitVersionTask/GitVersionTasks.cs
index bad81b4d..35a6f701 100644
--- a/src/GitVersionTask/GitVersionTasks.cs
+++ b/src/GitVersionTask/GitVersionTasks.cs
@@ -43,7 +43,7 @@ namespace GitVersion.MSBuildTask

             return !taskLog.HasLoggedErrors;
         }
-        
+
         private static void Configure(IServiceProvider sp, Task task)
         {
             var log = sp.GetService<ILog>();
jetersen commented 4 years ago

okay if I clone out master branch I see the same.

However if I do a git clone -b fix/format https://github.com/casz/GitVersion.git gv because I have fixed the .gitattributes to do lf it works as I would expect it locally.

So for some reason appveyor is reading the .gitattributes from master during the merge on appveyor.

jetersen commented 4 years ago

Thanks I think I got it.

Let me get a crlf to lf on GitVersion so that editorconfig and gitattributes does not conflict anymore into master first 😅

jetersen commented 4 years ago

Actually seems like this was a change made to the appveyor virtual images since another project suddenly started failing.

https://ci.appveyor.com/project/nmklotas/gitlabapiclient/builds/30490706