Skip to content

Commit ce060a1

Browse files
authored
Apply style suggestion (#892)
1 parent 7776a15 commit ce060a1

File tree

332 files changed

+178
-882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+178
-882
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# reference:https://raw.githubusercontent.com/meziantou/Meziantou.DotNet.CodingStandard/refs/heads/main/.editorconfig
1+
# reference:https://raw.githubusercontent.com/meziantou/Meziantou.DotNet.CodingStandard/refs/heads/main/.editorconfig
22
# Schema: http://EditorConfig.org
33
# Docs: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
44

@@ -41,7 +41,6 @@ insert_final_newline = true
4141
# endreference
4242

4343
[*.cs]
44-
dotnet_diagnostic.IDE0058.severity = none
4544
dotnet_diagnostic.IDE0303.severity = none
4645
dotnet_diagnostic.CA1508.severity = none
4746
dotnet_diagnostic.CA2000.severity = none

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>
14-
<PackageReference Include="Meziantou.Polyfill" Version="1.0.49">
14+
<PackageReference Include="Meziantou.Polyfill" Version="1.0.61">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1717
</PackageReference>

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"sdk": {
3-
"version": "9.0.304",
3+
"version": "10.0.100-rc.2.25502.107",
44
"rollForward": "latestPatch"
55
},
66
"msbuild-sdks": {
7-
"Meziantou.NET.Sdk": "1.0.9",
8-
"Meziantou.NET.Sdk.Test": "1.0.9",
9-
"Meziantou.NET.Sdk.Web": "1.0.9"
7+
"Meziantou.NET.Sdk": "1.0.38",
8+
"Meziantou.NET.Sdk.Test": "1.0.38",
9+
"Meziantou.NET.Sdk.Web": "1.0.38"
1010
}
1111
}

src/DocumentationGenerator/DocumentationGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.0.17" />
9+
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.1.4" />
1010
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
1111
</ItemGroup>
1212

src/DocumentationGenerator/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#pragma warning disable CA1849
33
#pragma warning disable MA0004
44
#pragma warning disable MA0009
5-
using System.Globalization;
6-
using System.Text;
75
using System.Text.Encodings.Web;
86
using System.Text.RegularExpressions;
97
using Meziantou.Framework;

src/ListDotNetTypes/ListDotNetTypes.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="NuGet.Protocol" Version="6.13.2" />
9+
<PackageReference Include="NuGet.Protocol" Version="6.14.0" />
1010
</ItemGroup>
1111

1212
</Project>

src/Meziantou.Analyzer.CodeFixers/Internals/FixAllContextHelper.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
// File initially copied from
1+
// File initially copied from
22
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/4d9b3e3bb785a55f73b3029a843f0c0b73cc9ea7/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/Helpers/FixAllContextHelper.cs
33
// Original copyright statement:
44
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
55
// Licensed under the MIT License. See LICENSE in the project root for license information.
66
using System.Collections.Concurrent;
77
using System.Collections.Immutable;
8-
using System.Linq;
9-
using System.Threading;
10-
using System.Threading.Tasks;
118
using Microsoft.CodeAnalysis;
129
using Microsoft.CodeAnalysis.CodeFixes;
1310

@@ -40,9 +37,7 @@ public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic
4037
break;
4138

4239
case FixAllScope.Solution:
43-
projectsToFix = project.Solution.Projects
44-
.Where(p => p.Language == project.Language)
45-
.ToImmutableArray();
40+
projectsToFix = ImmutableArray<Project>.Empty.AddRange(project.Solution.Projects.Where(p => p.Language == project.Language));
4641

4742
var diagnostics = new ConcurrentDictionary<ProjectId, ImmutableArray<Diagnostic>>();
4843
var tasks = new Task[projectsToFix.Length];

src/Meziantou.Analyzer.CodeFixers/Meziantou.Analyzer.CodeFixers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Meziantou.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net9.0;netstandard2.0</TargetFrameworks>
3+
<TargetFrameworks>net10.0;netstandard2.0</TargetFrameworks>
44
<IncludeBuildOutput>false</IncludeBuildOutput>
55
<Version>1.0.1</Version>
66
<BaseOutputPath>bin\$(RoslynVersion)\</BaseOutputPath>

src/Meziantou.Analyzer.CodeFixers/Rules/AbstractTypesShouldNotHaveConstructorsFixer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
using System.Collections.Immutable;
1+
using System.Collections.Immutable;
22
using System.Composition;
3-
using System.Linq;
4-
using System.Threading;
5-
using System.Threading.Tasks;
63
using Microsoft.CodeAnalysis;
74
using Microsoft.CodeAnalysis.CodeActions;
85
using Microsoft.CodeAnalysis.CodeFixes;

src/Meziantou.Analyzer.CodeFixers/Rules/ArgumentExceptionShouldSpecifyArgumentNameFixer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
using System.Collections.Immutable;
1+
using System.Collections.Immutable;
22
using System.Composition;
3-
using System.Linq;
4-
using System.Threading;
5-
using System.Threading.Tasks;
63
using Microsoft.CodeAnalysis;
74
using Microsoft.CodeAnalysis.CodeActions;
85
using Microsoft.CodeAnalysis.CodeFixes;

0 commit comments

Comments
 (0)