Skip to content

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

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

renovate[bot] merged 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: 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   1s ⏱️ -1s
 1 suites ±0    1 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit f7a9b77. ± Comparison against base commit da39b6a.

@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 56.98%. Comparing base (da39b6a) to head (f7a9b77).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #473   +/-   ##
=======================================
  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 7873dc0 into main Nov 28, 2026
10 checks passed
@renovate
renovate Bot deleted the renovate/csharpier-1.x branch November 28, 2026 06:40
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