dotnet / format

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

format keeps changing the same files even after just formatting #1567

Open Cheesebaron opened 2 years ago

Cheesebaron commented 2 years ago

I am having some issues with the new dotnet format tool detecting the same files being changed, even after just running dotnet format in the same folder.

Git does not pick up any change no matter which CRLF settings I use in git, after running dotnet format.

I am running

dotnet format --exclude ./TrackMan.DrivingRangeApp.Tests ./TrackMan.DrivingRangeApp.UITest ./TrackMan.DrivingRangeApp.TestRunner -v diag

Log output

  The dotnet runtime version is '6.0.3'.
  The dotnet CLI version is '6.0.201'.
  Using MSBuild.exe located in '/usr/local/share/dotnet/sdk/6.0.201/'.
  Formatting code files in workspace '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln'.
  Loading workspace.
  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS/TrackMan.DrivingRangeApp.iOS.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS/TrackMan.DrivingRangeApp.iOS.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid/TrackMan.DrivingRangeApp.Droid.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid/TrackMan.DrivingRangeApp.Droid.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Kiosk/TrackMan.DrivingRangeApp.Droid.Kiosk.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Kiosk/TrackMan.DrivingRangeApp.Droid.Kiosk.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Shared/TrackMan.DrivingRangeApp.Droid.Shared.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Shared/TrackMan.DrivingRangeApp.Droid.Shared.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Kiosk/TrackMan.DrivingRangeApp.iOS.Kiosk.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Kiosk/TrackMan.DrivingRangeApp.iOS.Kiosk.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Shared/TrackMan.DrivingRangeApp.iOS.Shared.csproj : warning NU1503: Skipping restore for project '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Shared/TrackMan.DrivingRangeApp.iOS.Shared.csproj'. The project file may be invalid or missing targets required for restore. [/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.sln]
  Determining projects to restore...
  All projects are up-to-date for restore.
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS/TrackMan.DrivingRangeApp.iOS.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/iOS/Xamarin.iOS.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS/TrackMan.DrivingRangeApp.iOS.csproj
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid/TrackMan.DrivingRangeApp.Droid.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/Android/Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid/TrackMan.DrivingRangeApp.Droid.csproj
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Kiosk/TrackMan.DrivingRangeApp.Droid.Kiosk.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/Android/Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Kiosk/TrackMan.DrivingRangeApp.Droid.Kiosk.csproj
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Shared/TrackMan.DrivingRangeApp.Droid.Shared.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/Android/Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Droid.Shared/TrackMan.DrivingRangeApp.Droid.Shared.csproj
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Kiosk/TrackMan.DrivingRangeApp.iOS.Kiosk.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/iOS/Xamarin.iOS.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Kiosk/TrackMan.DrivingRangeApp.iOS.Kiosk.csproj
Msbuild failed when processing the file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Shared/TrackMan.DrivingRangeApp.iOS.Shared.csproj' with message: The imported project "/usr/local/share/dotnet/sdk/6.0.201/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/6.0.201//Xamarin/iOS/Xamarin.iOS.CSharp.targets" is correct, and that the file exists on disk.  /Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.iOS.Shared/TrackMan.DrivingRangeApp.iOS.Shared.csproj
  Project TrackMan.DrivingRangeApp is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/obj/Debug/netstandard2.1/TrackMan.DrivingRangeApp.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.Tests is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp.Tests is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Tests/obj/Debug/net5.0/TrackMan.DrivingRangeApp.Tests.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.Tests is using configuration from '/usr/local/share/dotnet/sdk/6.0.201/Sdks/Microsoft.NET.Sdk/analyzers/build/config/analysislevel_5_default.editorconfig'.
  Project TrackMan.DrivingRangeApp.UITest is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp.UITest is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.UITest/obj/Debug/net48/TrackMan.DrivingRangeApp.UITest.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.Shared is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp.Shared is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/obj/Debug/netstandard2.1/TrackMan.DrivingRangeApp.Shared.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.Kiosk is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp.Kiosk is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Kiosk/obj/Debug/netstandard2.1/TrackMan.DrivingRangeApp.Kiosk.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.TestRunner is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/.editorconfig'.
  Project TrackMan.DrivingRangeApp.TestRunner is using configuration from '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.TestRunner/obj/Debug/net5.0/TrackMan.DrivingRangeApp.TestRunner.GeneratedMSBuildEditorConfig.editorconfig'.
  Project TrackMan.DrivingRangeApp.TestRunner is using configuration from '/usr/local/share/dotnet/sdk/6.0.201/Sdks/Microsoft.NET.Sdk/analyzers/build/config/analysislevel_5_default.editorconfig'.
  Complete in 4049ms.
  Determining formattable files.
  Complete in 1158ms.
  Running formatters.
  Running Code Style analysis.
  Determining diagnostics...
  Running 7 analyzers on TrackMan.DrivingRangeApp.
Required references did not load for TrackMan.DrivingRangeApp.iOS or referenced project. Run `dotnet restore` prior to formatting.
Required references did not load for TrackMan.DrivingRangeApp.Droid or referenced project. Run `dotnet restore` prior to formatting.
Required references did not load for TrackMan.DrivingRangeApp.Droid.Kiosk or referenced project. Run `dotnet restore` prior to formatting.
Required references did not load for TrackMan.DrivingRangeApp.Droid.Shared or referenced project. Run `dotnet restore` prior to formatting.
  Running 1 analyzers on TrackMan.DrivingRangeApp.Tests.
  Running 7 analyzers on TrackMan.DrivingRangeApp.UITest.
Required references did not load for TrackMan.DrivingRangeApp.iOS.Kiosk or referenced project. Run `dotnet restore` prior to formatting.
Required references did not load for TrackMan.DrivingRangeApp.iOS.Shared or referenced project. Run `dotnet restore` prior to formatting.
  Running 7 analyzers on TrackMan.DrivingRangeApp.Shared.
  Running 7 analyzers on TrackMan.DrivingRangeApp.Kiosk.
  Running 1 analyzers on TrackMan.DrivingRangeApp.TestRunner.
  Complete in 6437ms.
  Fixing diagnostics...
  Running 1 analyzers on TrackMan.DrivingRangeApp.Shared.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE1006. Code fix NamingStyleCodeFixProvider doesn't support Fix All in Solution.
Unable to fix IDE0060. No associated code fix found.
  Complete in 764ms.
  Analysis complete in 7201ms.
  Running Analyzer Reference analysis.
  Determining diagnostics...
  Running 366 analyzers on TrackMan.DrivingRangeApp.
  Running 366 analyzers on TrackMan.DrivingRangeApp.UITest.
  Running 366 analyzers on TrackMan.DrivingRangeApp.Shared.
  Running 366 analyzers on TrackMan.DrivingRangeApp.Kiosk.
  Complete in 17358ms.
  Fixing diagnostics...
Unable to fix S1118. No associated code fix found.
Unable to fix S1135. No associated code fix found.
Unable to fix S2259. No associated code fix found.
Unable to fix S1450. No associated code fix found.
Unable to fix S2223. No associated code fix found.
Unable to fix S3925. No associated code fix found.
Unable to fix S3358. No associated code fix found.
  Running 1 analyzers on TrackMan.DrivingRangeApp.
  Running 1 analyzers on TrackMan.DrivingRangeApp.Shared.
Unable to fix S1854. No associated code fix found.
Unable to fix S1643. No associated code fix found.
Unable to fix S2344. No associated code fix found.
Unable to fix S2589. No associated code fix found.
  Running 1 analyzers on TrackMan.DrivingRangeApp.Shared.
Unable to fix S1199. No associated code fix found.
Unable to fix S3442. No associated code fix found.
Unable to fix S125. No associated code fix found.
Unable to fix S3966. No associated code fix found.
Unable to fix S2971. No associated code fix found.
Unable to fix S1104. No associated code fix found.
Unable to fix S1168. No associated code fix found.
Unable to fix S3881. No associated code fix found.
Unable to fix S927. No associated code fix found.
Unable to fix S1121. No associated code fix found.
Unable to fix S1871. No associated code fix found.
Unable to fix S4144. No associated code fix found.
Unable to fix S1075. No associated code fix found.
Unable to fix S3400. No associated code fix found.
Unable to fix S4136. No associated code fix found.
  Running 1 analyzers on TrackMan.DrivingRangeApp.Shared.
Unable to fix S1066. No associated code fix found.
Unable to fix S3168. No associated code fix found.
Unable to fix S1481. No associated code fix found.
Unable to fix S2696. No associated code fix found.
Unable to fix S3928. No associated code fix found.
Unable to fix S1699. No associated code fix found.
Unable to fix S3903. No associated code fix found.
Unable to fix S3459. No associated code fix found.
Unable to fix S112. No associated code fix found.
  Complete in 3115ms.
  Analysis complete in 20473ms.
  Complete in 29158ms.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/TournamentMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Repositories/MapLocationRepository.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Bases/TestCenterCombineReportViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/ScoreCardMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Services/OfflineActivityRepository.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Tournaments/TournamentMoreInfoViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Tournaments/TournamentLeaderboardViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Helpers/EnableCSharpRecords.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/CaptureTheFlagViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/BullsEyeViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/MessageHandlers/ActivityMessageHandler.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/GameFlowViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/FormatDistanceHelper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/GameResultsLeaderboardViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/Animation/AnimationDebugView.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Home/HomeViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/Animation/QueuedAnimationController.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/MessageHandlers/GuestActivityMessageHandler.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Overlays/OverlayViews/OverlayViewFrame.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Bases/BaseRangeRendererViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/MandatorySignInViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/DecoratedServices/DemoBagRepositoryDecorator.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/Api/DemoRangeClient.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Pin/PinModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Practice/FindMyDistance/FindMyDistanceViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/ProfileService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Skia/Charts/ShotDistributionChart.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Activities/ActivityPracticeResultViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Settings/SettingsViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/CtpLeaderboardMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/FriendsMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Repositories/FriendsRepository.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Services/PlayerActivityDataProvider.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Activities/ActivityTabViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Friends/FriendProfileViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Tournaments/TournamentDetailViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Skia/Charts/BaseChartData.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/LeaderboardMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Repositories/TournamentsRepository.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Tournaments/MyTournamentsViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Skia/Charts/BaseChart.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Mappers/TournamentSheetMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Activities/RendererViewModels/PracticeResultRenderViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/ViewModels/Locator/UpdateActions.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Models/Tournaments/MoreInfoSource.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp/Skia/Charts/ShotDistributionChartData.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Constants/Activities.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Constants/Ids.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/MessageHandlers/SessionMessageHandlerBase.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/CourseRendering.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/DispersionRendering.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/BaySelection/DynamicBayLocationViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/PartnerViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Constants/Activities.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/IoC/ServiceModules.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/Api/DemoSessionApi.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/DecoratedServices/DemoCloudClientDecorator.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/DecoratedServices/DemoCloudLoginDecorator.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Demo/DecoratedServices/DemoLoginServiceDecorator.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/BaseNavigationFlowService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/Bookings/BookingFlow.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/GameService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/Interfaces/IProfileService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/SessionService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/SiteService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/MainScreen/RootViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/TermsAndConditionsDetailsViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/WelcomeViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Practice/PracticeViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Helpers/LoggingHelper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Games/Templates/CaptureTheFlag.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Bases/BaseTrajectoryFlowViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Games/TimelineEvents/AnimatingBlockTimelineEvent.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/Animation/BaseTimerAnimation.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Helper/EaseHelper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Mappers/RangeLeaderboardToLeaderboardMapper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Constants/Ids.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Helpers/StringFormatHelper.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Helpers/UserMessages.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Games/GameSettings/DistanceType.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Games/GameSettings/GameSettingIds.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Services/FeatureToggleService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Extensions/ObjectExtensions.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Converters/GenderCodeToStringConverter.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Clubs/ClubItem.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Extensions/Translation/TranslatorExtensions.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Bases/TableLeafViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Facility/FacilityModeEnum.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Constants/Apis.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Overlays/SkiaOverlays/SkiaOverlayType.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Onboarding/DemoInfoViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/Menu/GamesColorMenuViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Debugging/ViewModels/SimulateShot/SimulateShotEditPresetViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Debugging/Models/DebugMenuItem.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Strokes/StrokeCollectionManager.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/MessageHandlers/SessionMessageHandler.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderers/BayRenderer.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Debugging/Services/DebugService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Exceptions/SignInErrorException.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Extensions/Collections/OrderedCollection.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/Animation/Trajectory/TrajectoryDrawing.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/GamesSettingsTabViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/ViewModels/Games/HitItGameViewModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Courses/CourseRenderingSetup.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Courses/CourseMetaData.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Helper/UpdateLoopDiagnostics.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Games/Templates/HitItGame.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Skia/Renderings/Animation/Trajectory/TrajectoryController.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Shared/Models/Player/ProfileConsentModel.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Kiosk/Services/VirtualGolfService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Kiosk/Services/PinServerService.cs'.
  Formatted code file '/Users/cheesebaron/git/DrivingRangeApp/TrackMan.DrivingRangeApp.Kiosk/ViewModels/KioskPlayerOverViewModel.cs'.
  Formatted 112 of 1054 files.
  Format complete in 34407ms.

Looking at git status there is nothing to commit nor any changes.

Running the same dotnet format command again, it believes it has formatted the same exact 112 files again.

brianebeling commented 2 years ago

Hey, I'm having the same issue. I'm running Windows, .NET 6.

For some reason, only with top level statements.

D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs(1,1): error WHITESPACE: Fix whitespace formatting. [D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Volvox.Apollo.Web.csproj]
D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs(34,11): error FINALNEWLINE: Fix final newline. Delete 2 characters. [D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Volvox.Apollo.Web.csproj]
...
Formatted code file 'D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs'.

for me it just keeps changing this file because of the above. I haven't got around to play with CRLF settings yet, but it keeps complaining about that file..

Edit: Changing line endings makes no difference, dotnet-format will just change them back and then the same output shows up.

ajeckmans commented 1 year ago

I just ran into this issue as well. However mine is reporting two actions on the last line/column of the file: 1) fix whitespace: insert '\r\n' 2) fix final newline: Delete 2 characters.

Changing the toplevel statement in Program.cs to a class fixes the issue of conflicting formatting reported.