Skip to content

Commit 1b635c7

Browse files
authored
Releasing 0.10.0 (#457)
* Releasing 0.10.0 * little tweak
1 parent c1a0e40 commit 1b635c7

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 0.10.0
2+
3+
[diff](https://github.com/belav/csharpier/compare/0.9.9...0.10.0)
4+
5+
- try-finally without catch clause is formatted strangely. [#454](https://github.com/belav/csharpier/issues/454)
6+
- Nested FixedStatements should break [#438](https://github.com/belav/csharpier/issues/438)
7+
- Disabled text validation fails with trailing whitespace [#428](https://github.com/belav/csharpier/issues/428)
8+
- Vertically Align Curly Braces [#423](https://github.com/belav/csharpier/issues/423)
9+
- Crash On Empty Config File [#421](https://github.com/belav/csharpier/issues/421)
10+
- Conditional in Arguments should indent. [#419](https://github.com/belav/csharpier/issues/419)
11+
- Chained assignments formatting can be improved [#417](https://github.com/belav/csharpier/issues/417)
12+
- Improve ConditionalExpression in ReturnStatement formatting [#416](https://github.com/belav/csharpier/issues/416)
13+
- Pattern Matching edge cases [#413](https://github.com/belav/csharpier/issues/413)
14+
- Implement proper logging. [#406](https://github.com/belav/csharpier/issues/406)
15+
- (finally) Improve formatting of InvocationExpressions [#7](https://github.com/belav/csharpier/issues/7)
16+
17+
118
# 0.9.9
219

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

CSharpier.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.9.9</Version>
3+
<Version>0.10.0</Version>
44
<PackageLicenseExpression>MIT</PackageLicenseExpression>
55
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
66
<RepositoryType>git</RepositoryType>

CSharpier.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ ProjectSection(SolutionItems) = preProject
1414
.config\dotnet-tools.json = .config\dotnet-tools.json
1515
CSharpier.Build.props = CSharpier.Build.props
1616
Dockerfile = Dockerfile
17-
Start.ps1 = Start.ps1
1817
EndProjectSection
1918
EndProject
2019
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{176BB0EA-B72B-4ACA-82AE-C16A732BE023}"

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ The printing process was ported from [prettier](https://github.com/prettier/pret
44
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.
55

66
### Work In Progress
7-
CSharpier is still in active development.
8-
- The rules it uses to format code are not yet finalized and some of the results are a little ugly.
9-
- The rules it uses to format your code will change over time.
10-
- 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.
11-
- This process has been automated and runs each time code is pushed.
7+
CSharpier is still in active development and the rules it uses to format code are not yet finalized and will change over time.
128

13-
14-
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.
9+
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.
1510

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

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

@@ -44,7 +39,8 @@ public class ClassName
4439
string longParameter1,
4540
string longParameter2,
4641
string longParameter3
47-
) {
42+
)
43+
{
4844
this.LongUglyMethod(
4945
"1234567890",
5046
"abcdefghijklmnopqrstuvwxyz",

Scripts/ChangeLog.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ param (
77
)
88

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

14+
$ErrorActionPreference = "Stop"
15+
1416
$repository = "https://github.com/belav/csharpier"
1517

18+
# if this fails
19+
# Install-Module -Name PowerShellForGitHub
1620
$milestones = Get-GitHubMilestone -Uri $repository -State "Open"
1721
$milestoneNumber = -1
1822
foreach($milestone in $milestones) {

Scripts/CreateReviewCodePRs.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ param (
2020
# roslyn
2121
# runtime
2222

23+
$ErrorActionPreference = "Stop"
24+
2325
if ($version -eq "") {
2426
Write-Output "need version"
2527
exit 1

0 commit comments

Comments
 (0)