diff --git a/CHANGELOG.md b/CHANGELOG.md index e87b177f8..4e344483c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,36 @@ -# 0.26.6 +# 0.26.7 +## What's Changed +### Keep Field.Method() on the same line when breaking long method chain [#1010](https://github.com/belav/csharpier/issues/1010) +0.26.0 introduced changes that broke long invocation chains on fields/properties as well as methods. That change has been reverted after community feedback. + +```c# +// 0.26.0 +var loggerConfiguration = new LoggerConfiguration() + .Enrich + .FromLogContext() + .Enrich + .WithProperty("key", "value") + .Enrich + .WithProperty("key", "value") + .Enrich + .WithProperty("key", "value") + .Enrich + .WithProperty("key", "value") + .WriteTo + .Console(outputTemplate: "template"); + +// 0.26.7 +var loggerConfiguration = new LoggerConfiguration() + .Enrich.FromLogContext() + .Enrich.WithProperty("key", "value") + .Enrich.WithProperty("key", "value") + .Enrich.WithProperty("key", "value") + .Enrich.WithProperty("key", "value") + .WriteTo.Console(outputTemplate: "template"); +``` + +**Full Changelog**: https://github.com/belav/csharpier/compare/0.26.6...0.26.7 +# 0.26.6 ## What's Changed ### CSharpier incorrectly reports problems with differing line endings as "The file did not end with a single newline"[#1067](https://github.com/belav/csharpier/issues/1067) If CSharpier was validating that a file was formatted, and that file contained only `\n` but CSharpier was configured to use `\r\n`, then it would report the problem as `The file did not end with a single newline` @@ -1723,3 +1755,4 @@ Thanks go to @pingzing + diff --git a/Nuget/Build.props b/Nuget/Build.props index 7b5c9a1af..ac27254bc 100644 --- a/Nuget/Build.props +++ b/Nuget/Build.props @@ -1,6 +1,6 @@ - 0.26.6 + 0.26.7 MIT https://github.com/belav/csharpier git diff --git a/Src/Website/docs/IntegratingWithLinters.md b/Src/Website/docs/IntegratingWithLinters.md index 655bb436c..aaf569a10 100644 --- a/Src/Website/docs/IntegratingWithLinters.md +++ b/Src/Website/docs/IntegratingWithLinters.md @@ -40,63 +40,63 @@ dotnet_diagnostic.SA1137.severity = none dotnet_diagnostic.SA1413.severity = none dotnet_diagnostic.SA1500.severity = none dotnet_diagnostic.SA1501.severity = none - dotnet_diagnostic.SA1502.severity = none - dotnet_diagnostic.SA1504.severity = none - dotnet_diagnostic.SA1516.severity = none +dotnet_diagnostic.SA1502.severity = none +dotnet_diagnostic.SA1504.severity = none +dotnet_diagnostic.SA1516.severity = none - # for csharpier <= 0.21.0 - dotnet_diagnostic.SA1127.severity = none +# for csharpier <= 0.21.0 +dotnet_diagnostic.SA1127.severity = none dotnet_diagnostic.SA1128.severity = none ``` There are additional rules that can be disabled because they are not needed when using CSharpier ```editorconfig dotnet_diagnostic.SA1001.severity = none - dotnet_diagnostic.SA1002.severity = none - dotnet_diagnostic.SA1003.severity = none - dotnet_diagnostic.SA1007.severity = none - dotnet_diagnostic.SA1008.severity = none - dotnet_diagnostic.SA1010.severity = none - dotnet_diagnostic.SA1011.severity = none - dotnet_diagnostic.SA1012.severity = none - dotnet_diagnostic.SA1013.severity = none - dotnet_diagnostic.SA1014.severity = none - dotnet_diagnostic.SA1015.severity = none - dotnet_diagnostic.SA1016.severity = none - dotnet_diagnostic.SA1017.severity = none - dotnet_diagnostic.SA1018.severity = none - dotnet_diagnostic.SA1019.severity = none - dotnet_diagnostic.SA1020.severity = none - dotnet_diagnostic.SA1021.severity = none - dotnet_diagnostic.SA1022.severity = none - dotnet_diagnostic.SA1023.severity = none - dotnet_diagnostic.SA1024.severity = none - dotnet_diagnostic.SA1025.severity = none - dotnet_diagnostic.SA1026.severity = none - dotnet_diagnostic.SA1027.severity = none - dotnet_diagnostic.SA1028.severity = none - dotnet_diagnostic.SA1102.severity = none - dotnet_diagnostic.SA1103.severity = none - dotnet_diagnostic.SA1104.severity = none - dotnet_diagnostic.SA1105.severity = none - dotnet_diagnostic.SA1107.severity = none - dotnet_diagnostic.SA1110.severity = none - dotnet_diagnostic.SA1112.severity = none - dotnet_diagnostic.SA1113.severity = none - dotnet_diagnostic.SA1114.severity = none - dotnet_diagnostic.SA1115.severity = none - dotnet_diagnostic.SA1116.severity = none - dotnet_diagnostic.SA1117.severity = none - dotnet_diagnostic.SA1127.severity = none - dotnet_diagnostic.SA1128.severity = none - dotnet_diagnostic.SA1136.severity = none - dotnet_diagnostic.SA1505.severity = none - dotnet_diagnostic.SA1506.severity = none - dotnet_diagnostic.SA1507.severity = none - dotnet_diagnostic.SA1508.severity = none - dotnet_diagnostic.SA1509.severity = none - dotnet_diagnostic.SA1510.severity = none - dotnet_diagnostic.SA1511.severity = none +dotnet_diagnostic.SA1002.severity = none +dotnet_diagnostic.SA1003.severity = none +dotnet_diagnostic.SA1007.severity = none +dotnet_diagnostic.SA1008.severity = none +dotnet_diagnostic.SA1010.severity = none +dotnet_diagnostic.SA1011.severity = none +dotnet_diagnostic.SA1012.severity = none +dotnet_diagnostic.SA1013.severity = none +dotnet_diagnostic.SA1014.severity = none +dotnet_diagnostic.SA1015.severity = none +dotnet_diagnostic.SA1016.severity = none +dotnet_diagnostic.SA1017.severity = none +dotnet_diagnostic.SA1018.severity = none +dotnet_diagnostic.SA1019.severity = none +dotnet_diagnostic.SA1020.severity = none +dotnet_diagnostic.SA1021.severity = none +dotnet_diagnostic.SA1022.severity = none +dotnet_diagnostic.SA1023.severity = none +dotnet_diagnostic.SA1024.severity = none +dotnet_diagnostic.SA1025.severity = none +dotnet_diagnostic.SA1026.severity = none +dotnet_diagnostic.SA1027.severity = none +dotnet_diagnostic.SA1028.severity = none +dotnet_diagnostic.SA1102.severity = none +dotnet_diagnostic.SA1103.severity = none +dotnet_diagnostic.SA1104.severity = none +dotnet_diagnostic.SA1105.severity = none +dotnet_diagnostic.SA1107.severity = none +dotnet_diagnostic.SA1110.severity = none +dotnet_diagnostic.SA1112.severity = none +dotnet_diagnostic.SA1113.severity = none +dotnet_diagnostic.SA1114.severity = none +dotnet_diagnostic.SA1115.severity = none +dotnet_diagnostic.SA1116.severity = none +dotnet_diagnostic.SA1117.severity = none +dotnet_diagnostic.SA1127.severity = none +dotnet_diagnostic.SA1128.severity = none +dotnet_diagnostic.SA1136.severity = none +dotnet_diagnostic.SA1505.severity = none +dotnet_diagnostic.SA1506.severity = none +dotnet_diagnostic.SA1507.severity = none +dotnet_diagnostic.SA1508.severity = none +dotnet_diagnostic.SA1509.severity = none +dotnet_diagnostic.SA1510.severity = none +dotnet_diagnostic.SA1511.severity = none dotnet_diagnostic.SA1517.severity = none dotnet_diagnostic.SA1518.severity = none ```