Skip to content

Releases: Lombiq/.NET-Analyzers

v5.1.0

11 Jun 21:26
98e9267
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.0.0...v5.1.0

v5.0.0

21 Feb 18:22
e8c6ae1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v5.0.0

v4.0.0

16 Oct 16:50
239fae8
Compare
Choose a tag to compare

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.

  1. Open the RuleSet file in a text editor, NOT in the Visual Studio GUI editor.
  2. Remove the <Include> element that loads the default RuleSet file from Lombiq.Analyzers so only the overriding rules will be converted.
  3. Follow the official documentation to convert the file into an .editorconfig file. Save the file with the .globalconfig name, NOT .editorconfig.
  4. 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

04 Oct 20:40
5bcb1a3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.3.0...v3.4.0

v3.3.0

11 Aug 21:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.0...v3.3.0

v3.2.0

06 Jun 21:37
2055c13
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.1...v3.2.0

v3.1.1

16 Mar 12:23
bafe4fa
Compare
Choose a tag to compare

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

15 Jan 15:24
b15c515
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.1.0

v3.0.1

10 Sep 17:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

05 Aug 11:39
f8e56af
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @MZole made their first contribution in #66

Full Changelog: v2.0.2...v3.0.0