Skip to content

Commit

Permalink
styling: only apply .editorconfig settings to implementation file
Browse files Browse the repository at this point in the history
This is to prevent suggestions/warnings for the test file
  • Loading branch information
ErikSchierboom committed Mar 28, 2019
1 parent ddfe600 commit 492bf7f
Show file tree
Hide file tree
Showing 126 changed files with 259 additions and 250 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
11 changes: 10 additions & 1 deletion copy-track-files-to-exercise.ps1
@@ -1 +1,10 @@
Get-Childitem –Path exercises -Directory | ForEach-Object { Copy-Item .editorconfig -Destination $_.FullName }
$EditorConfigSettings = Get-Content -Path ".editorconfig"

Get-Childitem –Path "exercises" -Directory | ForEach-Object {

$Exercise = (Get-Culture).TextInfo.ToTitleCase($_.Name).Replace("-", "")
$ExerciseEditorConfigSettings = $EditorConfigSettings.Replace( "[*.cs]", "[$Exercise.cs]")
$ExerciseEditorConfigPath = Join-Path $_.FullName ".editorconfig"

Set-Content -Path $ExerciseEditorConfigPath $ExerciseEditorConfigSettings
}
4 changes: 2 additions & 2 deletions exercises/accumulate/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Accumulate.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/acronym/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Acronym.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/affine-cipher/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[AffineCipher.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/all-your-base/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[AllYourBase.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/allergies/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Allergies.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/alphametics/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Alphametics.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/anagram/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Anagram.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/armstrong-numbers/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[ArmstrongNumbers.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/atbash-cipher/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[AtbashCipher.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/bank-account/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BankAccount.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/beer-song/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BeerSong.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/binary-search-tree/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BinarySearchTree.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/binary-search/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BinarySearch.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/binary/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Binary.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/bob/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Bob.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/book-store/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BookStore.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/bowling/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Bowling.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/bracket-push/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[BracketPush.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/change/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Change.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/circular-buffer/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[CircularBuffer.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/clock/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[Clock.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/collatz-conjecture/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[CollatzConjecture.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true
4 changes: 2 additions & 2 deletions exercises/complex-numbers/.editorconfig
Expand Up @@ -12,7 +12,7 @@ root = true
[*]
indent_style = space

[*.cs]
[ComplexNumbers.cs]
indent_size = 4

###############################
Expand Down Expand Up @@ -138,4 +138,4 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = true

0 comments on commit 492bf7f

Please sign in to comment.