chore(deps): update dependency csharpier to v1 #5247
+6
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.30.6
->1.0.1
Release Notes
belav/csharpier (csharpier)
v1.0.1
Compare Source
What's Changed
CSharpier's support for .gitignore is causing performance issues #1584
The support for
.gitignore
has some major performance problems when there are a large number of.gitignore
files and/or ignore rules. The feature has been disabled for now until it can be fixed.CSharpier.MsBuild issues #1586
CSharpier.MsBuild was not properly logging errors when performing a formatting check. This would result in the build passing when files were not formatted.
Setting
CSharpier_LogLevel
was passing an invalid parameter of--loglevel
to CSharpier, resulting in a build failureFull Changelog: belav/csharpier@1.0.0...1.0.1
v1.0.0
Compare Source
Major Changes
Support for formatting XML #819
CSharpier now formats xml files by default. It will try to format ".csproj", ".props", ".targets", ".xml", ".config" as if they were xml.
If a file is not valid xml it will be treated as a warning.
The default indent size is
2
instead of4
Performance Improvements
@TimothyMakkison put a lot of effort into improving the performance of CSharpier. These benchmark numbers show drastic improvement for both speed and memory usage.
Baseline
After Improvements
Breaking Changes
ConfigurationFile - rename TabWidth to IndentSize #1377
In order to get consistency between an
.editorconfig
and.csharpierconfig
the optionTabWidth
has been renamed toIndentSize
. This is also a more accurate name considering by default indentation is done with spaces and not tabs.Rework the CLI to use commands and arguments. #1321
The CLI has been reworked to use commands. This helps make it clear which arguments apply to which commands. The two common commands are below, see https://csharpier.com/docs/CLI for more details.
Changing the tool command to csharpier. Changing the assembly/exe to CSharpier #1418
Prior to
1.0.0
the tool command wasdotnet-csharpier
and assembly/exe were nameddotnet_csharpier
.The tool command name was changed to just
csharpier
dotnet csharpier --version
csharpier --version
The assembly/exe names have changed to just
CSharpier
Support for ignoring files via a .gitignore #631
Disabled for performance issues as of 1.0.1 see #1588
CSharpier now works as follows when determining if a file should be ignored.
What's Changed
Add logging format argument and support for msbuild logs #1517
CSharpier now supports a
--log-format
argument. By default it will log with a console format.With
--log-format MsBuild
CSharpier will produce logs in a format that allow jumping to files in the VisualStudio error list.Thanks go to @moormaster for the contribution
Allow passing an
.editorconfig
file path into--config-path
#1456CSharpier now supports passing a path to an
.editorconfig
file when using the--config-path
argument.Always ignore any files in .git folder #1438
CSharpier will now ignore any files that are in a
.git
folder. Previously if the.git
folder happened to contain an invalid c# file CSharpier would attempt to format it and report an error.Avoid excessive file system watches for --server #1465
When CSharpier server was started, it would create file watches for all of the files within the directory the tool existed in. This can lead to some systems running out of the ability to monitor more files.
CSharpier server now uses a temporary empty content root to avoid creating all file watches.
Thanks go to @chklauser for the contribution
Smarter EditorConfig parsing #1228
Previously CSharpier was eagerly loading all
.editorconfig
files within a directory that it was asked to format. It now lazy loads them in a way that is performant and avoids loading and parsing editorconfigs that aren't needed.Extra blank line before local scope block in global statement #1566
Inconsistent indentation for parenthesis expression #1562
A statement being surrounded by parentheses affected the indentation in an inconsistent way.
Attribute on property accessor causes unnecessary newlines in formatting #1558
The logic around when to break properties with attributes has been adjusted. See the example for more details
Fluent multiline with comment re-formats incorrectly. #1556
When a single method in a fluent chain was commented out, csharpier would try to collapse the chain to a single line.
Comments on an invocation chain that began with a generic where breaking when they should not #1555
In some cases CSharpier was breaking an invocation chain when it should not.
Comment in line before attribute causes unexpected line break after attribute #1553
CSharpier was breaking and indenting a parameter when it had a comment
Huge oneliner with switch expression followed my method invocations #1546
CSharpier was keeping a method chain on a single line if it was invoked on a switch expression within parentheses.
Inconsistent Formatting of Single Parameter Lambda Expressions #1522
CSharpier was not formatting all lambda expressions consistently when they were the single argument to a method call.
Empty lines after XmlComments should be removed #1521
When a member has documentation comments, any empty lines after those comments and before the member are now removed.
CSharpier always includes indentation whitespace on non-content lines #1455
CSharpier was indenting the final non-content line within a raw string. It now leaves them dedented to keep it consistent with other non-content lines.
Full Changelog: belav/csharpier@0.30.6...1.0.0
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.