From 4b12903253ed55be7d5652bbbfc306d931e07ab6 Mon Sep 17 00:00:00 2001 From: dawe Date: Sun, 14 Jan 2024 21:51:04 +0100 Subject: [PATCH 1/3] call fantomas directly instead of using msbuild target --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e8394401..af4299d5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,7 +87,7 @@ jobs: run: dotnet tool restore - name: Check format - run: dotnet build -t:CheckFormat + run: dotnet fantomas src env: DOTNET_ROLL_FORWARD: LatestMajor DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 From 702f3cb6fef3265c86adfb74990e91c41b63bbd8 Mon Sep 17 00:00:00 2001 From: dawe Date: Sun, 14 Jan 2024 22:12:33 +0100 Subject: [PATCH 2/3] just check the format --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af4299d5e..622b70934 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,7 +87,7 @@ jobs: run: dotnet tool restore - name: Check format - run: dotnet fantomas src + run: dotnet fantomas --check src env: DOTNET_ROLL_FORWARD: LatestMajor DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 From 581eaa9e12422d9859b00a2fb13bc4b74ef25f08 Mon Sep 17 00:00:00 2001 From: dawe Date: Sun, 14 Jan 2024 22:39:27 +0100 Subject: [PATCH 3/3] no need to exclude obj directories if we pass in just a directory --- Directory.Solution.targets | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Directory.Solution.targets b/Directory.Solution.targets index 88f38a382..ece14a3d3 100644 --- a/Directory.Solution.targets +++ b/Directory.Solution.targets @@ -1,14 +1,10 @@ - - - - - + - +