Releases: Lombiq/.NET-Analyzers
v5.1.0
What's Changed
- OSOE-852: Change NuGet metadata to use license expression by @AydinE in #102
- OSOE-852: Change NuGet metadata to use license expression by @AydinE in #103
- OSOE-867: Update analyzer packages to latest in Lombiq.Analyzers by @Psichorex in #101
New Contributors
Full Changelog: v5.0.0...v5.1.0
v5.0.0
What's Changed
- HAST-327: New instructions about nested Directory.Build.props usage by @sarahelsaig in #94
- OSOE-760: Disable SA1518 since it's already covered by S113 by @0liver in #96
- Disable 2 duplicate warnings across analyzer packages: S113, S2344 by @0liver in #97
- OSOE-751: Upgrade to Orchard Core 1.8 by @Psichorex in #98
Full Changelog: v4.0.0...v5.0.0
v4.0.0
TL;DR upgrade instructions
If you used Lombiq .NET Analyzers in an Orchard Core app without overriding any of its configuration, then you have to change its package reference like this:
-<PackageReference Include="Lombiq.Analyzers" Version="x.y.z">
+<PackageReference Include="Lombiq.Analyzers.OrchardCore" Version="4.0.0">
Or if you used it as a Git submodule:
-<Import Project="tools/Lombiq.Analyzers/Lombiq.Analyzers/Build.props" />
+<Import Project="tools/Lombiq.Analyzers/Lombiq.Analyzers.OrchardCore/Build.props" />
If you have any other use case, then read on.
Breaking changes
This release upgrades how analyzer configuration is stored. If you've overridden some analyzer configuration, then you'll need to migrate those.
Previously, editor configuration like charset and tab width was in an .editorconfig file, together with some compatible analyzer rule configuration, and the rest of the analyzer rules were configured in RuleSet files. This release moves analyzer configuration to the currently recommended .globalconfig files, while keeping only editor configuration in the .editorconfig file.
Furthermore, to better aid using Lombiq.Analyzers
in any .NET project, regardless if it's an Orchard Core app or else, we've split the project into multiple, use case-specific projects/packages.
Upgrading from v3.x.x
Select the Lombiq.Analyzers
package suitable for you in any case
Previously, there was only a single Lombiq.Analyzers
project/package that contained configuration for general .NET, Orchard Core, Orchard 1 (.NET Framework), and Visual Studio Extension projects. By default, this provided configuration for Orchard Core projects. If you wanted to use it in any other kind of project, you needed to jump through hoops.
Now, there are multiple projects/packages, all specific to a given use case. To get the most suitable configuration for your project, you just need to select the most applicable one. Please check out the updated docs to see how to add the one suitable for you.
If you haven't overridden any analyzer configuration and just used the project as is
Nothing else to do.
If you have overridden analyzer configuration
If you have overridden configuration coming from a RuleSet file:
RuleSets are now deprecated and you need to use .globalconfig files for analyzer configuration instead.
- Open the RuleSet file in a text editor, NOT in the Visual Studio GUI editor.
- Remove the
<Include>
element that loads the default RuleSet file fromLombiq.Analyzers
so only the overriding rules will be converted. - Follow the official documentation to convert the file into an .editorconfig file. Save the file with the .globalconfig name, NOT .editorconfig.
- Put the file into the root of your solution if you want it to be applied to the whole solution. For more involved configuration options, see the updated docs.
If you have overridden configuration coming from the .editorconfig file:
The .editorconfig file now only stores editor-related configuration, like charset and tab settings. All analyzer configuration, also what was formerly in the .editorconfig file, is now in .globalconfig files. Follow the updated docs to override analyzer configuration from .globalconfig files. Overriding editor-related configuration with .editorconfig files works the same as before.
What's Changed
Full Changelog: v3.4.0...v4.0.0
v3.4.0
What's Changed
- SNOW-203: WTW case study by @barthamark in #89
- OSOE-683: Update all NuGet dependencies by @Psichorex in #90
- OSOE-636: Using _SkipUpgradeNetAnalyzersNuGetWarning in .NET Framework projects too by @Piedone in #91
New Contributors
- @barthamark made their first contribution in #89
- @Psichorex made their first contribution in #90
Full Changelog: v3.3.0...v3.4.0
v3.3.0
v3.2.0
What's Changed
- COLI-717: Update Analyzers to latest dev by @BenedekFarkas in #85
- OSOE-606: Upgrade to C# 11 by @Piedone in #86
Full Changelog: v3.1.1...v3.2.0
v3.1.1
What's Changed
- OSOE-84: Update documentation to Node.js Extensions by @0liver in #79
- OSOE-501: Enable further analyzer rules for better code styling control and more by @BenedekFarkas in #82
- OSOE-485: Update GitHub Actions workflows of all OSOCE projects from the OSS template by @DJdisco07 in #83
New Contributors
- @BenedekFarkas made their first contribution in #82
- @DJdisco07 made their first contribution in #83
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- OSOE-186: Fix NuGet publish by @Piedone in #73
- OSOE-173: Adding workflow to create Jira issues for GitHub community activities by @Piedone in #74
- OSOE-398: Update all NuGet packages to latest in .NET-Analyzers by @MZole in #75
- OSOE-418: Keep LF in pnpm-lock.yaml to prevent Git from reporting this file as changed by @0liver in #76
- OSOE-425: Changing workflow names by @Luko6 in #77
- CARE-310: Update Microsoft.Net.Compilers.Toolset to fix .NET Fx build by @0liver in #80
- OSOE-532: Update all NuGet dependencies by @Piedone in #81
Full Changelog: v3.0.1...v3.1.0
v3.0.1
v3.0.0
What's Changed
- CARE-228: Updating analyzers to latest; once again by @0liver in #61
- OSOE-124: Fixing VSTHRD111 and .NET SDK code analysis rules by @Piedone in #63
- OSOE-118: Update rulesets by @DAud-IcI in #62
- OSOE-131: Detect in submodules if there's no PR here by @DAud-IcI in #64
- OSOE-141: Renaming workflows and references in submodules by @MZole in #66
- OSOE-128: Fix markdown files. by @DAud-IcI in #67
- OSOE-160: Standardizing license files by @MZole in #68
- OSOE-110: Fix that the NuGet version of Lombiq Analyzer doesn't detect any analyzer violations by @DAud-IcI in #57
- OSOE-165: Updating packages to latest by @Piedone in #69
New Contributors
Full Changelog: v2.0.2...v3.0.0