Skip to content

Commit a5c842f

Browse files
committed
(new-cli) - fix formatting
1 parent 12742c3 commit a5c842f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/format.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
run: dotnet format ./build/ --verify-no-changes
4949
-
5050
name: Run Format 'new-cli' solution
51-
run: dotnet format ./new-cli/ --verify-no-changes
51+
run: |
52+
dotnet build ./new-cli
53+
dotnet format ./new-cli/ --verify-no-changes
5254
-
5355
name: Run Format 'GitVersion' solution
5456
run: dotnet format ./src/ --exclude **/AddFormats/ --verify-no-changes

new-cli/GitVersion.Cli.Generator/GitVersion.Cli.Generator.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<IsRoslynComponent>true</IsRoslynComponent>
55
<PackageScribanIncludeSource>true</PackageScribanIncludeSource>
66
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
7+
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
8+
<NoWarn>$(NoWarn);RS1035</NoWarn>
79
</PropertyGroup>
810

911
<ItemGroup>

new-cli/GitVersion.Core.Tester/GitVersionApp.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public GitVersionApp(ILogger logger, IGitRepository repository)
1313
this.repository = repository;
1414
}
1515

16+
#pragma warning disable IDE0060
1617
public Task<int> RunAsync(string[] args)
18+
#pragma warning restore IDE0060
1719
{
1820
repository.Discover(Directory.GetCurrentDirectory());
1921
var branches = repository.Branches.ToList();

0 commit comments

Comments
 (0)