Skip to content

Commit 2a38b2c

Browse files
authored
Formatting all source code (#2911)
This applies dotnet-format (controlled by .editorconfig) and XamlStlyer (controlled by Settings.XamlStyler)
1 parent 7ec230d commit 2a38b2c

File tree

785 files changed

+56792
-59875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

785 files changed

+56792
-59875
lines changed

.editorconfig

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@ indent_style = space
1212
tab_width = 4
1313

1414
# New line preferences
15-
insert_final_newline = false
15+
insert_final_newline = true
1616
trim_trailing_whitespace = true
1717

18+
##### XAML/XML files #####
19+
[*.{xaml,xml,csproj,targets,props}]
20+
21+
# Indentation and spacing
22+
indent_size = 2
23+
indent_style = space
24+
tab_width = 2
25+
1826
# The following rules were initially inferred by Visual Studio IntelliCode from the C:\Users\bushc\Source\Repos\MaterialDesignInXamlToolkit codebase based on best match to current usage at 8/14/2018
1927
# You can modify the rules from these initially generated values to suit your own policies
2028
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
@@ -112,3 +120,71 @@ dotnet_style_qualification_for_field = false:suggestion
112120
dotnet_style_qualification_for_method = false:suggestion
113121
#prefer properties not to be prefaced with this. or Me. in Visual Basic
114122
dotnet_style_qualification_for_property = false:suggestion
123+
csharp_indent_labels = one_less_than_current
124+
csharp_using_directive_placement = outside_namespace:silent
125+
csharp_prefer_simple_using_statement = true:suggestion
126+
csharp_prefer_braces = true:silent
127+
csharp_style_namespace_declarations = block_scoped:silent
128+
csharp_style_prefer_method_group_conversion = true:silent
129+
csharp_style_prefer_top_level_statements = true:silent
130+
csharp_style_expression_bodied_operators = false:silent
131+
csharp_style_expression_bodied_indexers = true:silent
132+
csharp_style_expression_bodied_lambdas = true:silent
133+
csharp_style_expression_bodied_local_functions = false:silent
134+
135+
[*.{cs,vb}]
136+
#### Naming styles ####
137+
138+
# Naming rules
139+
140+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
141+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
142+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
143+
144+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
145+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
146+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
147+
148+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
149+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
150+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
151+
152+
# Symbol specifications
153+
154+
dotnet_naming_symbols.interface.applicable_kinds = interface
155+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
156+
dotnet_naming_symbols.interface.required_modifiers =
157+
158+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
159+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
160+
dotnet_naming_symbols.types.required_modifiers =
161+
162+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
163+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
164+
dotnet_naming_symbols.non_field_members.required_modifiers =
165+
166+
# Naming styles
167+
168+
dotnet_naming_style.begins_with_i.required_prefix = I
169+
dotnet_naming_style.begins_with_i.required_suffix =
170+
dotnet_naming_style.begins_with_i.word_separator =
171+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
172+
173+
dotnet_naming_style.pascal_case.required_prefix =
174+
dotnet_naming_style.pascal_case.required_suffix =
175+
dotnet_naming_style.pascal_case.word_separator =
176+
dotnet_naming_style.pascal_case.capitalization = pascal_case
177+
178+
dotnet_naming_style.pascal_case.required_prefix =
179+
dotnet_naming_style.pascal_case.required_suffix =
180+
dotnet_naming_style.pascal_case.word_separator =
181+
dotnet_naming_style.pascal_case.capitalization = pascal_case
182+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
183+
end_of_line = crlf
184+
dotnet_style_coalesce_expression = true:suggestion
185+
dotnet_style_null_propagation = true:suggestion
186+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
187+
dotnet_style_prefer_auto_properties = true:silent
188+
dotnet_style_object_initializer = true:suggestion
189+
dotnet_style_collection_initializer = true:suggestion
190+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
<Using Include="System.Windows.Input"/>
3131
<Using Include="System.Windows.Markup"/>
3232
</ItemGroup>
33-
</Project>
33+
</Project>

MahMaterialDragablzMashUp/AnotherCommandImplementation.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Windows.Input;
3-
4-
namespace MahMaterialDragablzMashUp
1+
namespace MahMaterialDragablzMashUp
52
{
63
/// <summary>
74
/// No WPF project is complete without it's own version of this.

0 commit comments

Comments
 (0)