diff --git a/CHANGELOG.md b/CHANGELOG.md
index be86840f..9a6b5b0a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release
- Dependencies - Updated Meziantou.Analyzer to 2.0.110
- Dependencies - Updated Microsoft.VisualStudio.Threading.Analyzers to 17.8.14
- Dependencies - Updated FunFair.Test.Common to 6.1.18.233
+- Dependencies - Updated Philips.CodeAnalysis.MaintainabilityAnalyzers to 1.4.0
### Removed
### Deployment Changes
diff --git a/src/Credfeto.ChangeLog.Cmd/Credfeto.ChangeLog.Cmd.csproj b/src/Credfeto.ChangeLog.Cmd/Credfeto.ChangeLog.Cmd.csproj
index 11228753..3942ed2d 100644
--- a/src/Credfeto.ChangeLog.Cmd/Credfeto.ChangeLog.Cmd.csproj
+++ b/src/Credfeto.ChangeLog.Cmd/Credfeto.ChangeLog.Cmd.csproj
@@ -73,7 +73,7 @@
-
+
diff --git a/src/Credfeto.ChangeLog.Tests/AssemblySettings.cs b/src/Credfeto.ChangeLog.Tests/AssemblySettings.cs
index 94c43b99..f9b1e40d 100644
--- a/src/Credfeto.ChangeLog.Tests/AssemblySettings.cs
+++ b/src/Credfeto.ChangeLog.Tests/AssemblySettings.cs
@@ -1,3 +1,7 @@
using System.Diagnostics.CodeAnalysis;
+[assembly:
+ SuppressMessage(category: "Philips.CodeAnalysis.MaintainabilityAnalyzers",
+ checkId: "PH2140: Avoid ExcludeFromCodeCoverage",
+ Justification = "This is a unit test assembly - no need for coverage of the test code itself")]
[assembly: ExcludeFromCodeCoverage]
\ No newline at end of file
diff --git a/src/Credfeto.ChangeLog.Tests/Credfeto.ChangeLog.Tests.csproj b/src/Credfeto.ChangeLog.Tests/Credfeto.ChangeLog.Tests.csproj
index a65bf868..3ff86f38 100644
--- a/src/Credfeto.ChangeLog.Tests/Credfeto.ChangeLog.Tests.csproj
+++ b/src/Credfeto.ChangeLog.Tests/Credfeto.ChangeLog.Tests.csproj
@@ -62,7 +62,7 @@
-
+
diff --git a/src/Credfeto.ChangeLog/ChangeLogReader.cs b/src/Credfeto.ChangeLog/ChangeLogReader.cs
index e725e83b..92a9d077 100644
--- a/src/Credfeto.ChangeLog/ChangeLogReader.cs
+++ b/src/Credfeto.ChangeLog/ChangeLogReader.cs
@@ -128,6 +128,9 @@ private static bool IsMatchingVersion(Version? version, string line)
return StringComparer.InvariantCultureIgnoreCase.Equals(x: line, y: Constants.UnreleasedHeader);
}
+ return Candidates(version)
+ .Any(candidate => line.StartsWith(value: candidate, comparisonType: StringComparison.OrdinalIgnoreCase));
+
static IEnumerable Candidates(Version expected)
{
int build = expected.Build is 0 or -1
@@ -141,8 +144,5 @@ static IEnumerable Candidates(Version expected)
yield return $"## [{expected.Major}.{expected.Minor}]";
}
}
-
- return Candidates(version)
- .Any(candidate => line.StartsWith(value: candidate, comparisonType: StringComparison.OrdinalIgnoreCase));
}
}
\ No newline at end of file
diff --git a/src/Credfeto.ChangeLog/Credfeto.ChangeLog.csproj b/src/Credfeto.ChangeLog/Credfeto.ChangeLog.csproj
index 2c540109..b2ec1697 100644
--- a/src/Credfeto.ChangeLog/Credfeto.ChangeLog.csproj
+++ b/src/Credfeto.ChangeLog/Credfeto.ChangeLog.csproj
@@ -65,7 +65,7 @@
-
+