Skip to content

Commit

Permalink
Releasing 0.10.0 (#457)
Browse files Browse the repository at this point in the history
* Releasing 0.10.0

* little tweak
  • Loading branch information
belav authored Oct 18, 2021
1 parent c1a0e40 commit 1b635c7
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 12 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 0.10.0

[diff](https://github.com/belav/csharpier/compare/0.9.9...0.10.0)

- try-finally without catch clause is formatted strangely. [#454](https://github.com/belav/csharpier/issues/454)
- Nested FixedStatements should break [#438](https://github.com/belav/csharpier/issues/438)
- Disabled text validation fails with trailing whitespace [#428](https://github.com/belav/csharpier/issues/428)
- Vertically Align Curly Braces [#423](https://github.com/belav/csharpier/issues/423)
- Crash On Empty Config File [#421](https://github.com/belav/csharpier/issues/421)
- Conditional in Arguments should indent. [#419](https://github.com/belav/csharpier/issues/419)
- Chained assignments formatting can be improved [#417](https://github.com/belav/csharpier/issues/417)
- Improve ConditionalExpression in ReturnStatement formatting [#416](https://github.com/belav/csharpier/issues/416)
- Pattern Matching edge cases [#413](https://github.com/belav/csharpier/issues/413)
- Implement proper logging. [#406](https://github.com/belav/csharpier/issues/406)
- (finally) Improve formatting of InvocationExpressions [#7](https://github.com/belav/csharpier/issues/7)


# 0.9.9

[diff](https://github.com/belav/csharpier/compare/0.9.8...0.9.9)
Expand Down
2 changes: 1 addition & 1 deletion CSharpier.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.9.9</Version>
<Version>0.10.0</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
1 change: 0 additions & 1 deletion CSharpier.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ProjectSection(SolutionItems) = preProject
.config\dotnet-tools.json = .config\dotnet-tools.json
CSharpier.Build.props = CSharpier.Build.props
Dockerfile = Dockerfile
Start.ps1 = Start.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{176BB0EA-B72B-4ACA-82AE-C16A732BE023}"
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ The printing process was ported from [prettier](https://github.com/prettier/pret
CSharpier provides a few basic options that affect formatting and has no plans to add more. It follows the [Option Philosophy](https://prettier.io/docs/en/option-philosophy.html) of prettier.

### Work In Progress
CSharpier is still in active development.
- The rules it uses to format code are not yet finalized and some of the results are a little ugly.
- The rules it uses to format your code will change over time.
- It has been tested against a large number of public repositories to validate that the changes it makes do not lose any syntax but there is a possibility it will break your code.
- This process has been automated and runs each time code is pushed.
CSharpier is still in active development and the rules it uses to format code are not yet finalized and will change over time.


I encourage you to try it out on your own code and report any bugs, code that doesn't format well, or opinions on how you think the formatting should change. If you can live with the fact that the formatting will be changing over time, it is reasonably safe to use. In addition to a steadily growing set of unit tests; csharpier is tested against ~60k c# files from a range of public repositories to validate it does not result in the lose of any source code.
If you can live with the fact that the formatting will be changing over time, it is safe to use. In addition to a steadily growing set of unit tests; csharpier is tested against ~60k c# files from a range of public repositories to validate it does not result in the lose of any source code.

### Features
- It is fast. It can format a solution of ~11,000 files in ~30 seconds.
- It supports validating the syntax of the code it produces to ensure the only changes made were whitespace and line breaks.
- It formats c# <= 9.0
- It formats c# <= 9.0 - [c# 10 coming soon](https://github.com/belav/csharpier/issues/448)

Try it out at [Playground](https://csharpier.com)

Expand Down Expand Up @@ -44,7 +39,8 @@ public class ClassName
string longParameter1,
string longParameter2,
string longParameter3
) {
)
{
this.LongUglyMethod(
"1234567890",
"abcdefghijklmnopqrstuvwxyz",
Expand Down
6 changes: 5 additions & 1 deletion Scripts/ChangeLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ param (
)

if ($versionNumber -eq "" -or $previousVersionNumber -eq "") {
Write-Output "Supply version numbers"
Write-Output "Supply version numbers [previous] [current]"
exit 1;
}

$ErrorActionPreference = "Stop"

$repository = "https://github.com/belav/csharpier"

# if this fails
# Install-Module -Name PowerShellForGitHub
$milestones = Get-GitHubMilestone -Uri $repository -State "Open"
$milestoneNumber = -1
foreach($milestone in $milestones) {
Expand Down
2 changes: 2 additions & 0 deletions Scripts/CreateReviewCodePRs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ param (
# roslyn
# runtime

$ErrorActionPreference = "Stop"

if ($version -eq "") {
Write-Output "need version"
exit 1
Expand Down

0 comments on commit 1b635c7

Please sign in to comment.