Skip to content

Commit 2aa7e47

Browse files
nficanoclaude
andcommitted
chore: baseline formatting and project settings
Phase 2 of refactor-plan.md. - Apply solution-wide `dotnet format` (imports, whitespace). - Add PublicApiAnalyzers package to Directory.Packages.props. - Add src/Directory.Build.props that wires the analyzer + AdditionalFiles (PublicAPI.Shipped.txt / PublicAPI.Unshipped.txt) into the 8 public src/Arcp.* projects. - Seed empty Shipped/Unshipped txt files; suppress RS0016/17/26/27/36/37/41 in the root NoWarn list (will be lifted in Phase 5 when API surface is populated). Test/sample csproj fixes (GenerateDocumentationFile=false, explicit TargetFramework) were already inherited via tests/ and samples/ Directory.Build.props — nothing to add. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1688013 commit 2aa7e47

28 files changed

Lines changed: 30 additions & 11 deletions

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AnalysisMode>Default</AnalysisMode>
1111
<DeterministicSourcePaths>true</DeterministicSourcePaths>
1212
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
13-
<NoWarn>$(NoWarn);CA1014;CA1024;CA1031;CA1032;CA1034;CA1051;CA1062;CA1063;CA1064;CA1303;CA1305;CA1307;CA1308;CA1310;CA1311;CA1508;CA1707;CA1715;CA1716;CA1720;CA1721;CA1812;CA1815;CA1816;CA1822;CA1848;CA1849;CA1851;CA1852;CA1859;CA1860;CA1865;CA1866;CA1869;CA1872;CA1873;CA2007;CA2008;CA2227;CA2234;CA2237;CS1591;CS8618;CS8625;CS8629;CS8765;SYSLIB0050;NU1701;SA0001;SA1000;SA1101;SA1118;SA1124;SA1128;SA1129;SA1200;SA1201;SA1202;SA1203;SA1208;SA1210;SA1214;SA1300;SA1303;SA1309;SA1311;SA1313;SA1316;SA1401;SA1402;SA1413;SA1500;SA1501;SA1502;SA1503;SA1504;SA1505;SA1507;SA1508;SA1512;SA1513;SA1514;SA1515;SA1516;SA1517;SA1518;SA1600;SA1601;SA1602;SA1604;SA1611;SA1612;SA1614;SA1615;SA1616;SA1618;SA1619;SA1623;SA1625;SA1626;SA1629;SA1633;SA1642;SA1649;SA1652</NoWarn>
13+
<NoWarn>$(NoWarn);CA1014;CA1024;CA1031;CA1032;CA1034;CA1051;CA1062;CA1063;CA1064;CA1303;CA1305;CA1307;CA1308;CA1310;CA1311;CA1508;CA1707;CA1715;CA1716;CA1720;CA1721;CA1812;CA1815;CA1816;CA1822;CA1848;CA1849;CA1851;CA1852;CA1859;CA1860;CA1865;CA1866;CA1869;CA1872;CA1873;CA2007;CA2008;CA2227;CA2234;CA2237;CS1591;CS8618;CS8625;CS8629;CS8765;SYSLIB0050;NU1701;RS0016;RS0017;RS0026;RS0027;RS0036;RS0037;RS0041;SA0001;SA1000;SA1101;SA1118;SA1124;SA1128;SA1129;SA1200;SA1201;SA1202;SA1203;SA1208;SA1210;SA1214;SA1300;SA1303;SA1309;SA1311;SA1313;SA1316;SA1401;SA1402;SA1413;SA1500;SA1501;SA1502;SA1503;SA1504;SA1505;SA1507;SA1508;SA1512;SA1513;SA1514;SA1515;SA1516;SA1517;SA1518;SA1600;SA1601;SA1602;SA1604;SA1611;SA1612;SA1614;SA1615;SA1616;SA1618;SA1619;SA1623;SA1625;SA1626;SA1629;SA1633;SA1642;SA1649;SA1652</NoWarn>
1414
</PropertyGroup>
1515

1616
<PropertyGroup Label="Documentation defaults (overridden by tests)">

Directory.Packages.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
1919
</ItemGroup>
2020

21+
<ItemGroup Label="Analyzers">
22+
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.11.0-beta1.23420.2" />
23+
</ItemGroup>
24+
2125
<ItemGroup Label="Test">
2226
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
2327
<PackageVersion Include="xunit" Version="2.9.2" />

src/ARCP.Cli/PublicAPI.Shipped.txt

Whitespace-only changes.

src/ARCP.Cli/PublicAPI.Unshipped.txt

Whitespace-only changes.

src/ARCP/PublicAPI.Shipped.txt

Whitespace-only changes.

src/ARCP/PublicAPI.Unshipped.txt

Whitespace-only changes.

src/Arcp.AspNetCore/PublicAPI.Shipped.txt

Whitespace-only changes.

src/Arcp.AspNetCore/PublicAPI.Unshipped.txt

Whitespace-only changes.

src/Arcp.Client/ArcpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
using System.Threading.Tasks;
1111
using Arcp.Core.Auth;
1212
using Arcp.Core.Caps;
13-
using Arcp.Core.Wire;
1413
using Arcp.Core.Errors;
1514
using Arcp.Core.Ids;
1615
using Arcp.Core.Leases;
1716
using Arcp.Core.Messages;
1817
using Arcp.Core.Transport;
18+
using Arcp.Core.Wire;
1919

2020
namespace Arcp.Client;
2121

src/Arcp.Client/JobEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
using System;
33
using System.Text.Json;
4-
using Arcp.Core.Wire;
54
using Arcp.Core.Messages;
5+
using Arcp.Core.Wire;
66

77
namespace Arcp.Client;
88

0 commit comments

Comments
 (0)