From 8dd7c128b97bd9f2e3ed613ac64c9f66264b6800 Mon Sep 17 00:00:00 2001 From: Thomas Bruderer Date: Mon, 26 Oct 2026 11:22:33 +0100 Subject: [PATCH] Fixed SA1649 firing on non-class types Updated changelog for minor releases --- CodeStyle/CodeStyle.csproj | 2 +- CodeStyle/build/stylecop.json | 13 ++++++++----- changelog.md | 13 +++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/CodeStyle/CodeStyle.csproj b/CodeStyle/CodeStyle.csproj index ab2680e..52880e1 100644 --- a/CodeStyle/CodeStyle.csproj +++ b/CodeStyle/CodeStyle.csproj @@ -1,7 +1,7 @@ - 1.2.2 + 1.2.3 Polyadic.CodeStyle analyzers Various analyzers bundled with opinionated configuration diff --git a/CodeStyle/build/stylecop.json b/CodeStyle/build/stylecop.json index 04cc7a0..67a6cd6 100644 --- a/CodeStyle/build/stylecop.json +++ b/CodeStyle/build/stylecop.json @@ -1,8 +1,11 @@ { - "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", - "settings": { - "orderingRules": { - "usingDirectivesPlacement": "outsideNamespace" + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "usingDirectivesPlacement": "outsideNamespace" + }, + "maintainabilityRules": { + "topLevelTypes": [ "class", "interface", "struct", "enum", "delegate" ] + } } - } } diff --git a/changelog.md b/changelog.md index 0187d77..2dd1051 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,17 @@ # Changelog + +## 1.2.3 + +* Fixed SA1649 firing on non-class types (see [StyleCopAnalyzers issue #4377](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/4377)) + +## 1.2.2 + +* Improve NuGet package by including the readme and other metadata. + +## 1.2.1 + +* Fixed SA1143 issues after our report (see [StyleCopAnalyzers issue #4377](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/4367)) + ## 1.2.0 * Update `StyleCop.Analyzers` from 1.2.0-beta.556 to 1.3.149-beta. \ See their [Release Notes](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases) for details. Highlights: