Skip to content

Commit e823a10

Browse files
committed
Split from gitextensions/gitextensions
Add basic infra
1 parent e8699c6 commit e823a10

Some content is hidden

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

67 files changed

+1777
-12
lines changed

.editorconfig

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
; Visual Studio Extension : http://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328
2+
; See http://editorconfig.org/ for more informations
3+
; Top-most EditorConfig file
4+
root = true
5+
6+
; 4-column space indentation
7+
[*]
8+
indent_style = space
9+
indent_size = 4
10+
trim_trailing_whitespace = true
11+
12+
[*.{csproj,vcxproj}]
13+
indent_style = space
14+
indent_size = 2
15+
insert_final_newline = false
16+
17+
[*.{props,targets}]
18+
indent_size = 2
19+
20+
[*.Designer.cs]
21+
trim_trailing_whitespace = false
22+
23+
[*.{xml,config,nuspec,xslt,wxs}]
24+
indent_style = space
25+
indent_size = 2
26+
trim_trailing_whitespace = true
27+
28+
[*.{patch,diff}]
29+
trim_trailing_whitespace = false
30+
31+
[*.blame]
32+
trim_trailing_whitespace = false
33+
34+
[*.resx]
35+
indent_style = space
36+
indent_size = 2
37+
trim_trailing_whitespace = false
38+
39+
# C# files
40+
[*.cs]
41+
42+
#### Core EditorConfig Options ####
43+
44+
# New line preferences
45+
insert_final_newline = true
46+
47+
#### .NET Coding Conventions ####
48+
49+
# Organize usings
50+
dotnet_separate_import_directive_groups = false
51+
dotnet_sort_system_directives_first = true
52+
53+
# this. and Me. preferences
54+
dotnet_style_qualification_for_event = false:none
55+
dotnet_style_qualification_for_field = false:none
56+
dotnet_style_qualification_for_method = false:none
57+
dotnet_style_qualification_for_property = false:none
58+
59+
# Language keywords vs BCL types preferences
60+
dotnet_style_predefined_type_for_locals_parameters_members = true:none
61+
dotnet_style_predefined_type_for_member_access = true:none
62+
63+
# Parentheses preferences
64+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:none
65+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
66+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:none
67+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:none
68+
69+
# Modifier preferences
70+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:none
71+
72+
# Expression-level preferences
73+
dotnet_style_coalesce_expression = true:suggestion
74+
dotnet_style_collection_initializer = true:suggestion
75+
dotnet_style_explicit_tuple_names = true:suggestion
76+
dotnet_style_null_propagation = true:suggestion
77+
dotnet_style_object_initializer = true:suggestion
78+
dotnet_style_prefer_auto_properties = true:silent
79+
dotnet_style_prefer_compound_assignment = true:suggestion
80+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
81+
dotnet_style_prefer_conditional_expression_over_return = true:silent
82+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
83+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
84+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
85+
86+
# Field preferences
87+
dotnet_style_readonly_field = true:suggestion
88+
89+
# Parameter preferences
90+
dotnet_code_quality_unused_parameters = all:suggestion
91+
92+
#### C# Coding Conventions ####
93+
94+
# var preferences
95+
csharp_style_var_elsewhere = false:silent
96+
csharp_style_var_for_built_in_types = false:silent
97+
csharp_style_var_when_type_is_apparent = true:silent
98+
99+
# Expression-bodied members
100+
csharp_style_expression_bodied_accessors = true:silent
101+
csharp_style_expression_bodied_constructors = false:silent
102+
csharp_style_expression_bodied_indexers = true:silent
103+
csharp_style_expression_bodied_lambdas = true:silent
104+
csharp_style_expression_bodied_local_functions = false:silent
105+
csharp_style_expression_bodied_methods = false:silent
106+
csharp_style_expression_bodied_operators = false:silent
107+
csharp_style_expression_bodied_properties = false:silent
108+
109+
# Pattern matching preferences
110+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
111+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
112+
csharp_style_prefer_switch_expression = true:silent
113+
114+
# Null-checking preferences
115+
csharp_style_conditional_delegate_call = true:suggestion
116+
117+
# Modifier preferences
118+
csharp_prefer_static_local_function = true:suggestion
119+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
120+
121+
# Code-block preferences
122+
csharp_prefer_braces = true:none
123+
csharp_prefer_simple_using_statement = true:suggestion
124+
125+
# Expression-level preferences
126+
csharp_prefer_simple_default_expression = true:suggestion
127+
csharp_style_deconstructed_variable_declaration = true:suggestion
128+
csharp_style_inlined_variable_declaration = true:suggestion
129+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
130+
csharp_style_prefer_index_operator = true:suggestion
131+
csharp_style_prefer_range_operator = true:suggestion
132+
csharp_style_throw_expression = true:suggestion
133+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
134+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
135+
136+
# 'using' directive preferences
137+
csharp_using_directive_placement = outside_namespace:none
138+
139+
#### C# Formatting Rules ####
140+
141+
# New line preferences
142+
csharp_new_line_before_catch = true
143+
csharp_new_line_before_else = true
144+
csharp_new_line_before_finally = true
145+
csharp_new_line_before_members_in_anonymous_types = true
146+
csharp_new_line_before_members_in_object_initializers = true
147+
csharp_new_line_before_open_brace = all
148+
csharp_new_line_between_query_expression_clauses = true
149+
150+
# Indentation preferences
151+
csharp_indent_block_contents = true
152+
csharp_indent_braces = false
153+
csharp_indent_case_contents = true
154+
csharp_indent_case_contents_when_block = true
155+
csharp_indent_labels = no_change
156+
csharp_indent_switch_labels = true
157+
158+
# Space preferences
159+
csharp_space_after_cast = false
160+
csharp_space_after_colon_in_inheritance_clause = true
161+
csharp_space_after_comma = true
162+
csharp_space_after_dot = false
163+
csharp_space_after_keywords_in_control_flow_statements = true
164+
csharp_space_after_semicolon_in_for_statement = true
165+
csharp_space_around_binary_operators = before_and_after
166+
csharp_space_around_declaration_statements = false
167+
csharp_space_before_colon_in_inheritance_clause = true
168+
csharp_space_before_comma = false
169+
csharp_space_before_dot = false
170+
csharp_space_before_open_square_brackets = false
171+
csharp_space_before_semicolon_in_for_statement = false
172+
csharp_space_between_empty_square_brackets = false
173+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
174+
csharp_space_between_method_call_name_and_opening_parenthesis = false
175+
csharp_space_between_method_call_parameter_list_parentheses = false
176+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
177+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
178+
csharp_space_between_method_declaration_parameter_list_parentheses = false
179+
csharp_space_between_parentheses = false
180+
csharp_space_between_square_brackets = false
181+
182+
# Wrapping preferences
183+
csharp_preserve_single_line_blocks = true
184+
csharp_preserve_single_line_statements = true
185+
186+
#### Naming styles ####
187+
188+
# Naming rules
189+
190+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
191+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
192+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
193+
194+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
195+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
196+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
197+
198+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
199+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
200+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
201+
202+
# Symbol specifications
203+
204+
dotnet_naming_symbols.interface.applicable_kinds = interface
205+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
206+
dotnet_naming_symbols.interface.required_modifiers =
207+
208+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
209+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
210+
dotnet_naming_symbols.types.required_modifiers =
211+
212+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
213+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
214+
dotnet_naming_symbols.non_field_members.required_modifiers =
215+
216+
# Naming styles
217+
218+
dotnet_naming_style.pascal_case.required_prefix =
219+
dotnet_naming_style.pascal_case.required_suffix =
220+
dotnet_naming_style.pascal_case.word_separator =
221+
dotnet_naming_style.pascal_case.capitalization = pascal_case
222+
223+
dotnet_naming_style.begins_with_i.required_prefix = I
224+
dotnet_naming_style.begins_with_i.required_suffix =
225+
dotnet_naming_style.begins_with_i.word_separator =
226+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
227+
228+
# SA1135: Using directives should be qualified
229+
dotnet_diagnostic.SA1135.severity = none
230+
231+
# SA1629: Documentation text should end with a period
232+
dotnet_diagnostic.SA1629.severity = none

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* text=auto
2+
*.xml diff -text
3+
*.patch diff -text
4+
*.blame diff -text
5+
*.cs text diff=csharp
6+
*.sln text eol=crlf
7+
*.bat text eol=crlf
8+
*.cmd text eol=crlf
9+
*.sh text eol=lf
10+
*.py text eol=lf
11+
*.bin binary
12+
13+
*DoAutoCRLF*.approved.* binary diff=text

.gitignore

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#basic visual studio directories
2+
_UpgradeReport_Files/
3+
[Dd]ebug*/
4+
[Rr]elease*/
5+
!ReleaseNotesGenerator*
6+
ipch/
7+
.vs/
8+
_ReSharper*/
9+
TestResults/
10+
*.DS_Store*
11+
12+
obj/
13+
bin/
14+
15+
#ignore output mild compiler
16+
GitExtensionsShellEx/Generated/
17+
18+
#ignore some unwanted files
19+
*.ncb
20+
*.suo
21+
*.csproj.user
22+
*.orig
23+
*.msi
24+
*.user
25+
*.opendb
26+
*.sdf
27+
*.opensdf
28+
*.ipch
29+
*.iml
30+
*.VC.db
31+
*.sqlite
32+
*.aps
33+
*.bak
34+
*.[Cc]ache
35+
.idea/
36+
Thumbs.db
37+
GitPlugin/bin/*
38+
GitPlugin/Properties/Resources.resources
39+
*.pidb
40+
*.resources
41+
*.userprefs
42+
*.dotCover
43+
*.ncrunchproject
44+
*.ncrunchsolution
45+
test-results/*
46+
GitCommandsTests/test-results/*
47+
/!runTests.bat
48+
TestResult.xml
49+
libgit2sharp
50+
Setup/GitExtensions/
51+
Setup/GitExtensions-pdbs/
52+
Setup/GitExtensions-Portable-*.zip
53+
Setup/GitExtensions-pdbs-*.zip
54+
Setup/tools/tx.exe
55+
Plugins/GitExtensions.PluginManager/*
56+
57+
# Backup & report files from converting an old project file to a newer
58+
# Visual Studio version. Backup files are not needed, because we have git ;-)
59+
_UpgradeReport_Files/
60+
Backup*/
61+
UpgradeLog*.XML
62+
UpgradeLog*.htm*
63+
64+
#nuget
65+
packages/
66+
GitExtensions.*.sln.VisualState.xml
67+
GitExtensions.settings.backup
68+
/Setup/*.zip
69+
/Setup/Changelog.md
70+
*.received.*
71+
Directory.Build.rsp
72+
GitStatus.txt
73+
OpenCover.GitExtensions.xml
74+
tree.txt
75+
*.binlog
76+
artifacts/
77+
.tools/vswhere/

0 commit comments

Comments
 (0)