Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Oct 22, 2021
0 parents commit e5d4edd
Show file tree
Hide file tree
Showing 225 changed files with 11,297 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"havit.data.entityframeworkcore.codegenerator.tool": {
"version": "2.2.2",
"commands": [
"efcodegenerator"
]
}
}
}
101 changes: 101 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# C# files
[*.cs]

####################################
# Core EditorConfig Options #
####################################

# Indentation and spacing
indent_style = tab

####################################
# .NET Coding Conventions #
####################################

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true

# Modifier preferences
dotnet_style_readonly_field = true:suggestion

dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity

dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning

####################################
# C# Coding Conventions #
####################################

# var preferences
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent

# Pattern matching preferences ???
csharp_style_prefer_switch_expression = true:suggestion

# Code-block preferences
csharp_prefer_braces = true:warning

# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:warning

####################################
# C# Formatting Rules #
####################################

## Indentation preferences
csharp_indent_block_contents = true:warning
#csharp_indent_braces = false
#csharp_indent_case_contents_when_block = true
#csharp_indent_labels = one_less_than_current

####################################
# Naming Conventions #
####################################

#Default rules apply! (IDE1006 severity makes them mandatory) https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/naming-rules#default-naming-styles

###############################
#### IDE analyzers options ####
###############################

dotnet_diagnostic.IDE0009.severity = warning # Member access should be qualified
dotnet_diagnostic.IDE0011.severity = warning # Add braces
dotnet_diagnostic.IDE0035.severity = warning # Unreachable code detected
dotnet_diagnostic.IDE0040.severity = warning # Use accessibility modifiers
dotnet_diagnostic.IDE0048.severity = warning # Add parenthesis for clarity
dotnet_diagnostic.IDE0055.severity = warning # Fix formating
dotnet_diagnostic.IDE0065.severity = warning # Misplaced using directive
dotnet_diagnostic.IDE1006.severity = warning # Naming Styles


#### FxCop analyzers options ####
# Adopted from:
# \\topol.havit.local\Library\VS2019\CodeAnalysis\HavitMain.ruleset

dotnet_diagnostic.CA1010.severity=warning
dotnet_diagnostic.CA1012.severity=warning
dotnet_diagnostic.CA1013.severity=warning
dotnet_diagnostic.CA1016.severity=warning
dotnet_diagnostic.CA1041.severity=warning
dotnet_diagnostic.CA1044.severity=warning
dotnet_diagnostic.CA1047.severity=warning
dotnet_diagnostic.CA1048.severity=warning
dotnet_diagnostic.CA1049.severity=warning
dotnet_diagnostic.CA1050.severity=warning
dotnet_diagnostic.CA1064.severity=warning
dotnet_diagnostic.CA1065.severity=warning

# CA1303: Method '{1}' passes a literal string as parameter '{1}' of a call to '{2}'. Retrieve the following string(s) from a resource table instead: "{3}"
#dotnet_diagnostic.CA1303.severity=silent

dotnet_diagnostic.CA1500.severity=warning
dotnet_diagnostic.CA1504.severity=warning

# CA1822: Member '{0}' does not access instance data and can be marked as static
dotnet_diagnostic.CA1822.severity=none

[*/Migrations/*.cs]
generated_code=true
53 changes: 53 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
* text=auto

#
*.ascx text
*.aspx text
*.cd text
*.cmd text
*.coffee text
*.config text
*.cs text diff=csharp
*.csproj text
*.cshtml text
*.css text
*.dtd text
*.edmx text
*.htm text diff=html
*.html text diff=html
*.js text
*.json text
*.msbuild text
*.nuspec text
*.resx text
*.ruleset text
*.StyleCop text
*.targets text
*.tt text
*.txt text
*.vb text
*.vbhtml text
*.vbproj text
*.vbs text
*.wsf text
*.xml text
*.xunit text

# Project files
*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wmaproj text eol=crlf

*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf
Loading

0 comments on commit e5d4edd

Please sign in to comment.