Skip to content

chore(deps): update dependency csharpier to v1.4.2 - #223

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/csharpier-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/csharpier-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
csharpier 1.4.1 → 1.4.2 age confidence

Release Notes

belav/csharpier (csharpier)

v1.4.2

Compare Source

What's Changed

Feature: Show how many files format changed and list them with --list-formatted #​1931

The summary printed by format counted every file it read, so a second run printed the same count even when it changed nothing. The summary now also shows how many files were changed.

$ dotnet csharpier format .

# 1.4.1
Formatted 2 files in 120ms.

# 1.4.2
Formatted 2 files in 120ms (1 changed).

The new --list-formatted option prints the paths of the changed files, one per line, instead of the summary. Only errors are logged, and they go to stderr, so stdout contains nothing but the paths. It cannot be used with --write-stdout or when piping input to CSharpier.

$ dotnet csharpier format . --list-formatted
./src/Bar.cs
./src/Foo.cs
Fix: Extra blank lines around assembly attributes inside #if or #region #​1949

CSharpier added a blank line after an assembly attribute when a directive came next. In a file that also had a using directive and a type, the next run added a second blank line before #else, so check failed on the output of format.

// input & expected output
using System;

#if A
[assembly: SomeAttribute]

#else
[assembly: OtherAttribute]

#endif

class ClassName { }

// 1.4.1
using System;

#if A
[assembly: SomeAttribute]

#else
[assembly: OtherAttribute]

#endif

class ClassName { }
Fix: #else branch in a member chain loses its indentation #​1853
// input & expected output
var longVariableName = await response
    .Content

#if NET
    .ReadAsStringAsync(cancellationToken)

#else
    .ReadAsStringAsync()

#endif
    .ConfigureAwait(false);

// 1.4.1
var longVariableName = await response
    .Content

#if NET
    .ReadAsStringAsync(cancellationToken)

#else
.ReadAsStringAsync()

#endif
    .ConfigureAwait(false);
Fix: List with a directive between its items is not broken onto separate lines #​1951

Parameter lists, argument lists, collection initializers, collection expressions and tuples with a directive between their items now break the same way they do when a comment is between their items.

// input & expected output
void MethodName(
    int someParameter,

#if DEBUG
    int otherParameter,

#endif
    int lastParameter
)
{
    CallMethod(
        someArgument,

#if DEBUG
        otherArgument,

#endif
        lastArgument
    );

    var someList = new List<int>
    {
        1,

#if DEBUG
        2,

#endif
        3,
    };
}

// 1.4.1
void MethodName(int someParameter,

#if DEBUG
    int otherParameter,

#endif
    int lastParameter)
{
    CallMethod(someArgument,

#if DEBUG
        otherArgument,

#endif
        lastArgument);

    var someList = new List<int> { 1,

#if DEBUG
        2,

#endif
        3 };
}
Fix: Comment in a short member chain removes the indentation of the members after it #​1951
// input & expected output
someObject
    // comment
    .CallMethod();

someObject
    .Property // trailing comment
    .CallMethod();

this.Property
    // comment
    .CallMethod();

// 1.4.1
someObject
// comment
.CallMethod();

someObject.Property // trailing comment
.CallMethod();

this.Property
// comment
.CallMethod();

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


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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

@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.59%. Comparing base (afbe256) to head (799d1a7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #223      +/-   ##
==========================================
+ Coverage   79.49%   79.59%   +0.09%     
==========================================
  Files          76       76              
  Lines        7219     7219              
  Branches      928      928              
==========================================
+ Hits         5739     5746       +7     
+ Misses       1170     1163       -7     
  Partials      310      310              

☔ 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.

This branch has not been deployed

No deployments
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