Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b08937c

Browse files
authoredApr 6, 2018
GH-78 & GH-77 Completely reorganize and update repo! Added StyleCop (#82)
* Completely reorganize and update repo! * Add Style Cop and fix all formatting * Additional Cleanup for rename and organization * Update readme * small tweaks :)
1 parent 75170dd commit b08937c

File tree

277 files changed

+4745
-4890
lines changed

Some content is hidden

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

277 files changed

+4745
-4890
lines changed
 

‎.editorconfig

+100-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,105 @@
1-
; This file is for unifying the coding style for different editors and IDEs.
2-
; More information at http://editorconfig.org
3-
1+
# Suppress: EC112
2+
# top-most EditorConfig file
43
root = true
54

5+
# Don't use tabs for indentation.
66
[*]
7-
end_of_line = CRLF
8-
9-
[*.cs]
107
indent_style = space
8+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
9+
10+
# Code files
11+
[*.{cs,csx,vb,vbx}]
12+
indent_size = 4
13+
14+
# Code files
15+
[*.sln]
1116
indent_size = 4
17+
18+
# Xml project files
19+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
20+
indent_size = 2
21+
22+
# Xml config files
23+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
24+
indent_size = 2
25+
26+
# JSON files
27+
[*.json]
28+
indent_size = 2
29+
30+
# XML files
31+
[*.xml]
32+
indent_size = 2
33+
34+
# Dotnet code style settings:
35+
[*.{cs,vb}]
36+
# Sort using and Import directives with System.* appearing first
37+
dotnet_sort_system_directives_first = true
38+
# Avoid "this." and "Me." if not necessary
39+
dotnet_style_qualification_for_field = false:suggestion
40+
dotnet_style_qualification_for_property = false:suggestion
41+
dotnet_style_qualification_for_method = false:suggestion
42+
dotnet_style_qualification_for_event = false:suggestion
43+
44+
# Use language keywords instead of framework type names for type references
45+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
46+
dotnet_style_predefined_type_for_member_access = true:suggestion
47+
48+
# Suggest more modern language features when available
49+
dotnet_style_object_initializer = true:suggestion
50+
dotnet_style_collection_initializer = true:suggestion
51+
dotnet_style_coalesce_expression = true:suggestion
52+
dotnet_style_null_propagation = true:suggestion
53+
dotnet_style_explicit_tuple_names = true:suggestion
54+
55+
# Naming Conventions:
56+
# Pascal Casing
57+
dotnet_naming_symbols.method_and_property_symbols.applicable_kinds= method,property,enum
58+
dotnet_naming_symbols.method_and_property_symbols.applicable_accessibilities = *
59+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
60+
61+
dotnet_naming_rule.methods_and_properties_must_be_pascal_case.severity = warning
62+
dotnet_naming_rule.methods_and_properties_must_be_pascal_case.symbols = method_and_property_symbols
63+
dotnet_naming_rule.methods_and_properties_must_be_pascal_case.style = pascal_case_style
64+
65+
# Non-public members must be lower-case
66+
dotnet_naming_symbols.non_public_symbols.applicable_kinds = field
67+
dotnet_naming_symbols.non_public_symbols.applicable_accessibilities = private
68+
dotnet_naming_style.all_lower_case_style.capitalization = camel_case
69+
70+
dotnet_naming_rule.non_public_members_must_be_lower_case.severity = warning
71+
dotnet_naming_rule.non_public_members_must_be_lower_case.symbols = non_public_symbols
72+
dotnet_naming_rule.non_public_members_must_be_lower_case.style = all_lower_case_style
73+
74+
# CSharp code style settings:
75+
[*.cs]
76+
# Do not prefer "var" everywhere
77+
csharp_style_var_for_built_in_types = true:error
78+
csharp_style_var_when_type_is_apparent = true:error
79+
csharp_style_var_elsewhere = true:error
80+
81+
# Prefer method-like constructs to have a block body
82+
csharp_style_expression_bodied_methods = true:suggestion
83+
csharp_style_expression_bodied_constructors = true:suggestion
84+
csharp_style_expression_bodied_operators = true:suggestion
85+
86+
# Prefer property-like constructs to have an expression-body
87+
csharp_style_expression_bodied_properties = true:suggestion
88+
csharp_style_expression_bodied_indexers = true:suggestion
89+
csharp_style_expression_bodied_accessors = true:suggestion
90+
91+
# Suggest more modern language features when available
92+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
93+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
94+
csharp_style_inlined_variable_declaration = true:suggestion
95+
csharp_style_throw_expression = true:suggestion
96+
csharp_style_conditional_delegate_call = true:suggestion
97+
98+
# Newline settings
99+
csharp_new_line_before_open_brace = all
100+
csharp_new_line_before_else = true
101+
csharp_new_line_before_catch = true
102+
csharp_new_line_before_finally = true
103+
csharp_new_line_before_members_in_object_initializers = true
104+
csharp_new_line_before_members_in_anonymous_types = true
105+

‎.gitattributes

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain
64+
65+
# Force bash scripts to always use lf line endings so that if a repo is accessed
66+
# in Unix via a file share from Windows, the scripts will work.
67+
*.sh text eol=lf

0 commit comments

Comments
 (0)
This repository has been archived.