diff --git a/.editorconfig b/.editorconfig index 806489ec..258b747e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -168,3 +168,11 @@ dotnet_diagnostic.RCS1170.severity = warning # RCS1213: Remove unused member declaration. dotnet_diagnostic.RCS1213.severity = warning + +############################### +# Analyzer Package Suppressions +############################### +# RS1038: Compiler extensions should not be implemented in assemblies with compiler-provided references +# This rule is suppressed because our analyzer and code fix providers are in the same assembly, +# which is a common pattern. The code fix providers require Microsoft.CodeAnalysis.Workspaces. +dotnet_diagnostic.RS1038.severity = none diff --git a/Directory.Build.props b/Directory.Build.props index 46c99a85..f8045abc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@  true - 12.0 + 14.0 \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props index fead9a94..7e6dc6cf 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,18 +4,18 @@ false - + - - - - - - - - - + + + + + + + + + diff --git a/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/AssemblyInfo.cs b/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/AssemblyInfo.cs new file mode 100644 index 00000000..549e80e3 --- /dev/null +++ b/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/AssemblyInfo.cs @@ -0,0 +1,4 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +// Integration tests should not run in parallel to avoid conflicts +[assembly: DoNotParallelize] diff --git a/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/IntelliTect.Analyzer.Integration.Tests.csproj b/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/IntelliTect.Analyzer.Integration.Tests.csproj index 3b5bd16a..17daed5f 100644 --- a/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/IntelliTect.Analyzer.Integration.Tests.csproj +++ b/IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/IntelliTect.Analyzer.Integration.Tests.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0;net8.0 + net8.0;net9.0;net10.0 false diff --git a/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/AssemblyInfo.cs b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/AssemblyInfo.cs new file mode 100644 index 00000000..ae411c7a --- /dev/null +++ b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] diff --git a/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/IntelliTect.Analyzer.Tests.csproj b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/IntelliTect.Analyzer.Tests.csproj index 0a3961f6..b7183ae6 100644 --- a/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/IntelliTect.Analyzer.Tests.csproj +++ b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/IntelliTect.Analyzer.Tests.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0;net8.0 + net8.0;net9.0;net10.0 CA2007,CA1815,CA1303,CA1707,CA1305 diff --git a/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/UnusedLocalVariableTests.cs b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/UnusedLocalVariableTests.cs index 88e58962..70f6e81f 100644 --- a/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/UnusedLocalVariableTests.cs +++ b/IntelliTect.Analyzer/IntelliTect.Analyzer.Test/UnusedLocalVariableTests.cs @@ -139,7 +139,7 @@ public void Descriptor_ContainsExpectedValues() Assert.AreEqual("Local variable '{0}' should be used", diagnostic.MessageFormat); Assert.AreEqual("Flow", diagnostic.Category); Assert.AreEqual(DiagnosticSeverity.Info, diagnostic.DefaultSeverity); - Assert.AreEqual(true, diagnostic.IsEnabledByDefault); + Assert.IsTrue(diagnostic.IsEnabledByDefault); Assert.AreEqual("All local variables should be accessed, or named with underscores to indicate they are unused.", diagnostic.Description); Assert.AreEqual("https://github.com/IntelliTect/CodingGuidelines", diagnostic.HelpLinkUri); } diff --git a/Tools/XMLtoMD/GuidelineXmlToMD.Test/GuidelineXmlToMD.Test.csproj b/Tools/XMLtoMD/GuidelineXmlToMD.Test/GuidelineXmlToMD.Test.csproj index 6c4a1812..9b7abb8d 100644 --- a/Tools/XMLtoMD/GuidelineXmlToMD.Test/GuidelineXmlToMD.Test.csproj +++ b/Tools/XMLtoMD/GuidelineXmlToMD.Test/GuidelineXmlToMD.Test.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0;net9.0;net10.0 CA2007,CA1815,CA1303,CA1707,CA1305,IDE0008,INTL0003 false diff --git a/Tools/XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj b/Tools/XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj index ca778e24..7fc52e1f 100644 --- a/Tools/XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj +++ b/Tools/XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj @@ -2,8 +2,7 @@ Exe - net6.0 - 9.0 + net10.0 true IntelliTect.EssentialCSharp.Publishing ./nupkg diff --git a/global.json b/global.json index 7950fd15..d75a511b 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.100", + "version": "10.0.100", "rollForward": "minor", "allowPrerelease": true }