Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .config/dotnet-tools.json

This file was deleted.

115 changes: 78 additions & 37 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true

[*]
#### Core EditorConfig Options ####
#### Global Settings ####

[*]
# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4

# New line preferences
end_of_line = lf
insert_final_newline = true

# Razor files
[*.{cs,razor}]
dotnet_diagnostic.CA2007.severity = none
#### JSON Files ####

[*.json]
indent_size = 2
tab_width = 2

#### MSBuild Files ####

[*.{csproj,props,targets}]
indent_size = 2
tab_width = 2

#### C# Files ####

# C# files
[*.cs]
#### .NET Coding Conventions ####

# .NET Coding Conventions

# this. and Me. preferences
dotnet_style_qualification_for_event = false
Expand All @@ -40,10 +49,13 @@ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members

# Field preferences
dotnet_style_readonly_field = true:suggestion

# Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion

# Expression-level preferences
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
Expand All @@ -57,13 +69,7 @@ dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion

# Field preferences
dotnet_style_readonly_field = true:suggestion

# Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion

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

# var preferences
csharp_style_var_elsewhere = false:warning
Expand Down Expand Up @@ -94,6 +100,9 @@ csharp_preferred_modifier_order = public, private, protected, internal, static,
csharp_prefer_braces = true

# Expression-level preferences
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
Expand All @@ -104,15 +113,13 @@ csharp_style_unused_value_expression_statement_preference = discard_variable
# 'using' directive preferences
csharp_using_directive_placement = inside_namespace

# Constructor Preferences
# Constructor preferences
csharp_style_prefer_primary_constructors = false
dotnet_diagnostic.IDE0290.severity = none
resharper_convert_to_primary_constructor_highlighting = none

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

# New line preferences
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
csharp_new_line_before_open_brace = all
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
Expand All @@ -129,7 +136,7 @@ csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true

# Space preferences
csharp_space_after_cast = true
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
Expand All @@ -156,13 +163,12 @@ csharp_space_between_square_brackets = false
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

#### Resharper Formatting Rules ####
# ReSharper Formatting Rules

resharper_csharp_accessor_declaration_braces = next_line
resharper_csharp_accessor_owner_declaration_braces = next_line
resharper_csharp_align_first_arg_by_paren = true
# Alignment
resharper_csharp_align_first_arg_by_paren = false
resharper_csharp_align_linq_query = true
resharper_csharp_align_multiline_argument = true
resharper_csharp_align_multiline_argument = false
resharper_csharp_align_multiline_array_and_object_initializer = false
resharper_csharp_align_multiline_binary_expressions_chain = true
resharper_csharp_align_multiline_binary_patterns = true
Expand All @@ -179,10 +185,20 @@ resharper_csharp_align_multline_type_parameter_list = true
resharper_csharp_align_tuple_components = true
resharper_csharp_alignment_tab_fill_style = optimal_fill
resharper_csharp_allow_far_alignment = true

# Braces
resharper_csharp_accessor_declaration_braces = next_line
resharper_csharp_accessor_owner_declaration_braces = next_line
resharper_csharp_brace_style = next_line
resharper_csharp_case_block_braces = next_line
resharper_csharp_initializer_braces = next_line
resharper_csharp_invocable_declaration_braces = next_line
resharper_csharp_other_braces = next_line
resharper_csharp_type_declaration_braces = next_line

# Indentation
resharper_csharp_continuous_indent_multiplier = 1
resharper_csharp_indent_anonymous_method_block = true
resharper_csharp_indent_anonymous_method_block = false
resharper_csharp_indent_braces_inside_statement_conditions = true
resharper_csharp_indent_inside_namespace = true
resharper_csharp_indent_nested_fixed_stmt = false
Expand All @@ -195,24 +211,49 @@ resharper_csharp_indent_preprocessor_if = no_indent
resharper_csharp_indent_preprocessor_other = usual_indent
resharper_csharp_indent_preprocessor_region = no_indent
resharper_csharp_indent_type_constraints = true
resharper_csharp_initializer_braces = next_line
resharper_csharp_invocable_declaration_braces = next_line

# Wrapping and layout
resharper_csharp_keep_existing_attribute_arrangement = false
resharper_csharp_keep_existing_initializer_arrangement = false
resharper_csharp_max_attribute_length_for_same_line = 120
resharper_csharp_max_initializer_elements_on_line = 1
resharper_csharp_naming_rule.enum_member = AaBb
resharper_csharp_other_braces = next_line
resharper_csharp_outdent_binary_ops = true
resharper_csharp_outdent_binary_pattern_ops = true
resharper_csharp_outdent_dots = true
resharper_csharp_place_attribute_on_same_line = false
resharper_csharp_place_record_field_attribute_on_same_line = true
resharper_csharp_place_simple_initializer_on_single_line = true
resharper_csharp_type_declaration_braces = next_line
resharper_csharp_wrap_object_and_collection_initializer_style = chop_always
resharper_csharp_wrap_array_initializer_style = chop_always

# Naming conventions
resharper_csharp_naming_rule.enum_member = PascalCase

# Diagnostic Severity Overrides
dotnet_diagnostic.CA2007.severity = error
dotnet_diagnostic.IDE0290.severity = none
resharper_convert_to_primary_constructor_highlighting = none

# Meziantou Rules
dotnet_diagnostic.MA0003.severity = none

#### Razor Files ####

[*.{razor,razor.cs}]
# Diagnostic severity overrides
dotnet_diagnostic.CA2007.severity = none
dotnet_diagnostic.CA1515.severity = none
dotnet_diagnostic.CA1822.severity = suggestion
dotnet_diagnostic.CA1823.severity = suggestion
dotnet_diagnostic.IDE0044.severity = suggestion
dotnet_diagnostic.IDE0051.severity = none
dotnet_diagnostic.IDE0052.severity = none
dotnet_diagnostic.IDE0060.severity = none
dotnet_diagnostic.S1144.severity = suggestion

# warning suppressions
dotnet_diagnostic.CA2255.severity = none
# Disable CA1707 for test sources only
[tests/**.cs]
dotnet_diagnostic.CA1031.severity = none
dotnet_diagnostic.CA1308.severity = none
dotnet_diagnostic.CA1707.severity = none
dotnet_diagnostic.MA0038.severity = none
98 changes: 88 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
## Get latest from `dotnet new gitignore`

# dotenv files
.env

# User-specific files
*.rsuser
Expand Down Expand Up @@ -35,7 +38,7 @@ bld/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
wwwroot/

# Visual Studio 2017 auto generated files
Generated\ Files/
Expand All @@ -57,11 +60,14 @@ dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/

# .NET Core
# .NET
project.lock.json
project.fragment.lock.json
artifacts/

# Tye
.tye/

# ASP.NET Scaffolding
ScaffoldingReadMe.txt

Expand Down Expand Up @@ -328,8 +334,8 @@ __pycache__/
*.pyc

# Cake - Uncomment if you are using it
tools/**
!tools/packages.config
#tools/**
#!tools/packages.config

# Tabs Studio
*.tss
Expand Down Expand Up @@ -384,9 +390,6 @@ FodyWeavers.xsd
!.vscode/extensions.json
*.code-workspace

# Rider
.idea/*

# Local History for Visual Studio Code
.history/

Expand All @@ -399,8 +402,83 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml
.idea/

##
## Visual studio for Mac
##


# globs
Makefile.in
*.userprefs
*.usertasks
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.tar.gz
tarballs/
test-results/

# Mac bundle stuff
*.dmg
*.app

# content below from: https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# content below from: https://github.com/github/gitignore/blob/main/Global/Windows.gitignore
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# SonarQube
.sonarqube
# Vim temporary swap files
*.swp
1 change: 0 additions & 1 deletion .nuke/.gitignore

This file was deleted.

Loading
Loading