Skip to content

Commit

Permalink
Merge pull request #5 from shuebner/tech/update_and_clean
Browse files Browse the repository at this point in the history
Tech/update and clean
  • Loading branch information
shuebner authored Jan 31, 2023
2 parents a55bf2e + 070b0ea commit b325a68
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
3 changes: 2 additions & 1 deletion ClosedTypeHierarchyDiagnosticSuppressor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{60F51DB5-2BCC-4800-93D2-6B8604FD2DDF}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
global.json = global.json
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClosedTypeHierarchyDiagnosticSuppressor.Tests", "ClosedTypeHierarchyDiagnosticSuppressor.Tests\ClosedTypeHierarchyDiagnosticSuppressor.Tests.csproj", "{86A9C76C-96A2-4085-BCDF-C92E2CE4019B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClosedTypeHierarchyDiagnosticSuppressor.Tests", "ClosedTypeHierarchyDiagnosticSuppressor.Tests\ClosedTypeHierarchyDiagnosticSuppressor.Tests.csproj", "{86A9C76C-96A2-4085-BCDF-C92E2CE4019B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsRoslynComponent>true</IsRoslynComponent>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>SvSoft.Analyzers.ClosedTypeHierarchyDiagnosticSuppression</RootNamespace>
<__CurrentYear>$([System.DateTime]::Now.Year)</__CurrentYear>
<Copyright>Copyright (C) Sven Hübner 2022 - $(__CurrentYear)</Copyright>
<Authors>Sven Hübner</Authors>
<PackageId>SvSoft.Analyzers.ClosedTypeHierarchyDiagnosticSuppression</PackageId>
<IsRoslynComponent>true</IsRoslynComponent>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>

<RootNamespace>SvSoft.Analyzers.ClosedTypeHierarchyDiagnosticSuppression</RootNamespace>
<__CurrentYear>$([System.DateTime]::Now.Year)</__CurrentYear>
<Copyright>Copyright (C) Sven Hübner 2022 - $(__CurrentYear)</Copyright>
<Authors>Sven Hübner</Authors>
<PackageId>SvSoft.Analyzers.ClosedTypeHierarchyDiagnosticSuppression</PackageId>
<PackageTags>discriminated unions, match, switch</PackageTags>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageProjectUrl>https://github.com/shuebner/ClosedTypeHierarchyDiagnosticSuppressor</PackageProjectUrl>
Expand All @@ -19,21 +19,21 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ static bool HasOnlyPrivateConstructorsAndProtectedCopyCtors(INamedTypeSymbol roo
(IsRecord(rootCandidate) &&
rootCandidate.Constructors.All(c => c.DeclaredAccessibility == Accessibility.Private || MatchesImplicitlyCreatedRecordCopyCtor(rootCandidate, c)));

#pragma warning disable CS0162 // Unreachable code detected, FP, see https://github.com/dotnet/roslyn/issues/41429
const string CompilerCreatedCloneMethodNameOnRecordTypes = "<Clone>$";
#pragma warning restore CS0162 // Unreachable code detected

static bool IsRecord(INamedTypeSymbol recordCandidate) =>
recordCandidate.MemberNames.Contains(CompilerCreatedCloneMethodNameOnRecordTypes);
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "6.0.300"
"version": "6.0.405"
}
}

0 comments on commit b325a68

Please sign in to comment.