Skip to content

chore(deps): update dependency csharpier to v1.4.1 - #471

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier-1.x
Nov 21, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
csharpier 1.4.0 → 1.4.1 age confidence

Release Notes

belav/csharpier (csharpier)

v1.4.1

Compare Source

What's Changed

Fix: Trailing lambda with an expression body that breaks is formatted badly #​1941

1.4.0 started keeping the arguments before a trailing lambda on the same line as the method name. When the lambda had an expression body that did not fit on one line, the body started on the same line as the => and the closing parenthesis was not moved to its own line.

// input & expected output
CallMethod(one, x =>
    x == 1 ? "one"
    : x == 2 ? "two"
    : "three"
);

CallMethod(one, x =>
    from y in x
    group y by y.Key into g
    select new
    {
        g.Key.Id,
        g.Key.Alias,
        Count = g.Count(),
    }
);

// 1.4.0
CallMethod(one, x => x == 1 ? "one"
    : x == 2 ? "two"
    : "three");

CallMethod(one, x => from y in x group y by y.Key into g select new
    {
        g.Key.Id,
        g.Key.Alias,
        Count = g.Count(),
    });
Fix: Raw string literals are formatted inconsistently #​1940

A raw string literal assigned to a variable kept its opening quotes on the same line as the =. In other places, such as a lambda body, an expression bodied member, a property initializer or a cast, the opening quotes moved to the next line and the contents were indented one level further than the quotes. These cases are now formatted the same way as a variable.

// input & expected output
Func<int, string> lambda = _ => """
    SomeRawString
    """;

CallMethod(_ => """
    SomeRawString
    """
);

var cast = (object)"""
    SomeRawString
    """;

class ClassName
{
    string Property { get; } = """
        SomeRawString
        """;

    string Method() => """
        SomeRawString
        """;
}

// 1.4.0
Func<int, string> lambda = _ =>
    """
        SomeRawString
        """;

CallMethod(_ =>
    """
        SomeRawString
        """
);

var cast = (object)
    """
        SomeRawString
        """;

class ClassName
{
    string Property { get; } =
        """
            SomeRawString
            """;

    string Method() =>
        """
            SomeRawString
            """;
}
Fix: Warning about an unparseable csproj that is excluded by .csharpierignore #​1930

CSharpier reads every .csproj under the directory it is formatting to check for a version of CSharpier.MsBuild that does not match the version of the CLI. This includes files excluded by .csharpierignore. When one of those files could not be parsed, CSharpier logged a warning that did not explain why the file was being read.
The message is now logged at debug level and states that the file was read as part of the version check.

Fix: Member chain does not break when it follows a parenthesized expression that breaks #​1914
// input & expected output
var someVariable = (
    new SomeObject
    {
        Property1 = "",
        Property2 = "",
        Property3 = "",
    }
)
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod();

// 1.4.0
var someVariable = (
    new SomeObject
    {
        Property1 = "",
        Property2 = "",
        Property3 = "",
    }
).CallMethod().CallMethod().CallMethod().CallMethod().CallMethod().CallMethod().CallMethod();
Fix: #region inside a disabled #if loses its indentation when another #if is in the file #​1840
// input & expected output

#if D1
public class A
{
    #region R
    class B { }
    #endregion
}

#endif

public class C
{

#if D2
    public int V;

#endif
}

// 1.4.0

#if D1
public class A
{

#region R
    class B { }

#endregion
}

#endif

public class C
{

#if D2
    public int V;

#endif
}

Full Changelog: belav/csharpier@1.4.0...1.4.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

72 tests  ±0   71 ✅ ±0   2s ⏱️ -1s
 1 suites ±0    1 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 89b4d3d. ± Comparison against base commit bbbcb9e.

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.98%. Comparing base (bbbcb9e) to head (89b4d3d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #471   +/-   ##
=======================================
  Coverage   56.98%   56.98%           
=======================================
  Files          16       16           
  Lines         365      365           
  Branches       68       68           
=======================================
  Hits          208      208           
  Misses        119      119           
  Partials       38       38           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate
renovate Bot merged commit da39b6a into main Nov 21, 2026
10 checks passed
@renovate
renovate Bot deleted the renovate/csharpier-1.x branch November 21, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants