Skip to content

Commit 062cf25

Browse files
Sync with atata-repository-template
1 parent aeb50a6 commit 062cf25

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ dotnet_diagnostic.CA1056.severity = none
227227
# CA1062: Validate arguments of public methods
228228
dotnet_diagnostic.CA1062.severity = none
229229

230+
# CA1303: Do not pass literals as localized parameters
231+
dotnet_diagnostic.CA1303.severity = none
232+
230233
# CA1305: Specify IFormatProvider
231234
dotnet_diagnostic.CA1305.severity = none
232235

@@ -388,6 +391,10 @@ dotnet_diagnostic.S6562.severity = none
388391

389392
dotnet_diagnostic.SA0001.severity = none
390393

394+
# SA1010: OpeningSquareBracketsMustBeSpacedCorrectly
395+
# Temporarily disabled until StyleCop is able to handle collection initializers correctly.
396+
dotnet_diagnostic.SA1010.severity = none
397+
391398
dotnet_diagnostic.SA1101.severity = none
392399

393400
dotnet_diagnostic.SA1200.severity = none
@@ -426,6 +433,9 @@ dotnet_diagnostic.SX1101.severity = warning
426433
# C# Coding Conventions #
427434
###############################
428435

436+
# IDE0028: Use collection initializers
437+
dotnet_diagnostic.IDE0028.severity = warning
438+
429439
# IDE0054: Use compound assignment
430440
dotnet_diagnostic.IDE0054.severity = none
431441

@@ -450,6 +460,15 @@ dotnet_diagnostic.IDE0200.severity = warning
450460
# IDE0270: Use coalesce expression
451461
dotnet_diagnostic.IDE0270.severity = warning
452462

463+
# IDE0290: Use primary constructor
464+
dotnet_diagnostic.IDE0290.severity = none
465+
466+
# IDE0300: Use collection initializers
467+
dotnet_diagnostic.IDE0300.severity = warning
468+
469+
# IDE0305: Use collection initializers
470+
dotnet_diagnostic.IDE0305.severity = warning
471+
453472
[*.cs]
454473
# var preferences
455474
csharp_style_var_for_built_in_types = true:silent

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup Label="Code analysis packages">
14-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982" PrivateAssets="All" />
14+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.14.0.81108" PrivateAssets="All" />
1515
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="All" />
1616
</ItemGroup>
1717

azure-pipelines.release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
variables:
2-
buildConfiguration: 'Release'
3-
netSdkVersion: '7.x'
2+
netSdkVersion: '8.x'
43

54
trigger: none
65

@@ -13,15 +12,15 @@ jobs:
1312
- task: NuGetToolInstaller@1
1413
displayName: Install NuGet tool
1514
- task: UseDotNet@2
16-
displayName: Install .NET SDK
15+
displayName: Set up .NET SDK
1716
inputs:
1817
version: $(netSdkVersion)
1918
- task: DotNetCoreCLI@2
2019
displayName: Pack
2120
inputs:
2221
command: pack
23-
projects: 'src/*/*.csproj'
24-
arguments: -c $(buildConfiguration)
22+
packagesToPack: 'src/*/*.csproj'
23+
configuration: 'Release'
2524
- task: NuGetCommand@2
2625
displayName: NuGet push
2726
inputs:

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
23+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

0 commit comments

Comments
 (0)