forked from belav/csharpier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read values from editorconfig with spaces (#5)
- Loading branch information
Showing
33 changed files
with
390 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets/3.1.0"> | ||
</Project> | ||
<Project Sdk="Microsoft.Build.NoTargets/3.1.0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"profiles": { | ||
"CSharpier.Cli": { | ||
"commandName": "Project" | ||
}, | ||
"Profile 1": { | ||
"commandName": "Project", | ||
"commandLineArgs": "C:\\Users\\Fabio\\source\\repos\\ConsoleApp1\\ConsoleApp1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/NewLineBefore_Catch_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65527, | ||
"NewLineBeforeElse": true, | ||
"NewLineBeforeCatch": false, | ||
"NewLineBeforeFinally": true | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types", | ||
"NewLineBeforeElse": true, | ||
"NewLineBeforeCatch": false, | ||
"NewLineBeforeFinally": true | ||
} |
8 changes: 4 additions & 4 deletions
8
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/NewLineBefore_Else_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65527, | ||
"NewLineBeforeElse": false, | ||
"NewLineBeforeCatch": true, | ||
"NewLineBeforeFinally": true | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types", | ||
"NewLineBeforeElse": false, | ||
"NewLineBeforeCatch": true, | ||
"NewLineBeforeFinally": true | ||
} |
8 changes: 4 additions & 4 deletions
8
...Sharpier.Tests/FormattingTests/TestFiles/cs/NewLineBefore_Finally_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65527, | ||
"NewLineBeforeElse": true, | ||
"NewLineBeforeCatch": true, | ||
"NewLineBeforeFinally": false | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types", | ||
"NewLineBeforeElse": true, | ||
"NewLineBeforeCatch": true, | ||
"NewLineBeforeFinally": false | ||
} |
2 changes: 1 addition & 1 deletion
2
...sts/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Accessor_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65534 | ||
"NewLineBeforeOpenBrace": "AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...attingTests/TestFiles/cs/NewLineBefore_OpenBrace_AnonymousMethods_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65533 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...rmattingTests/TestFiles/cs/NewLineBefore_OpenBrace_AnonymousTypes_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65531 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...tFiles/cs/NewLineBefore_OpenBrace_AnonymousTypes_KeR_NoTrailingCommas.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65531, | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types", | ||
"UsePrettierStyleTrailingCommas": false | ||
} |
2 changes: 1 addition & 1 deletion
2
...ormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_ControlBlocks_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65527 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...Tests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Events_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65519 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...sts/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Indexers_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65503 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Lambdas_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65471 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...rmattingTests/TestFiles/cs/NewLineBefore_OpenBrace_LocalFunctions_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65407 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,Methods,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Methods_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65279 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,ObjectCollectionArrayInitializers,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...iles/cs/NewLineBefore_OpenBrace_ObjectCollectionArrayInitializers_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65023 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,Properties,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
...fore_OpenBrace_ObjectCollectionArrayInitializers_KeR_NoTrailingCommas.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 65023, | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,Properties,Types", | ||
"UsePrettierStyleTrailingCommas": false | ||
} |
13 changes: 13 additions & 0 deletions
13
...ests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Properties_Allman.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public class ClassName { | ||
public int Property | ||
{ | ||
get { | ||
int abc = 0; | ||
return 0; | ||
} | ||
set { | ||
int abc = value; | ||
int def = 0; | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Properties_Allman.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": "Properties" | ||
} |
16 changes: 16 additions & 0 deletions
16
...harpier.Tests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Properties_Allman.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
public class ClassName | ||
{ | ||
public int Property | ||
{ | ||
get | ||
{ | ||
int abc = 0; | ||
return 0; | ||
} | ||
|
||
set { | ||
int abc = value; | ||
int def = 0; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Properties_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 64511 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Types" | ||
} |
2 changes: 1 addition & 1 deletion
2
....Tests/FormattingTests/TestFiles/cs/NewLineBefore_OpenBrace_Types_KeR.printerOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"NewLineBeforeOpenBrace": 63487 | ||
"NewLineBeforeOpenBrace": "Accessors,AnonymousMethods,AnonymousTypes,ControlBlocks,Events,Indexers,Lambdas,LocalFunctions,Methods,ObjectCollectionArrayInitializers,Properties" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.