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
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

# ignore hidden files
.*
!.editorconfig

# ignore directories
tests/
docs/
third-party/
dockle.toml
readthedocs*.sh

# ignore venv when building locally
venv/
Expand All @@ -21,3 +26,6 @@ node_modules/
web/assets/
.build-tools/
config/
connectors/**/bin/
connectors/**/obj/
connectors/**/TestResults/
195 changes: 195 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers = true
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
csharp_style_prefer_utf8_string_literals = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
dotnet_naming_rule.unity_serialized_field_rule.severity = warning
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion

# ReSharper properties
resharper_autodetect_indent_settings = true
resharper_formatter_off_tag = @formatter:off
resharper_formatter_on_tag = @formatter:on
resharper_formatter_tags_enabled = true
resharper_use_indent_from_vs = false

# ReSharper inspection severities
resharper_arrange_redundant_parentheses_highlighting = hint
resharper_arrange_this_qualifier_highlighting = hint
resharper_arrange_type_member_modifiers_highlighting = hint
resharper_arrange_type_modifiers_highlighting = hint
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
resharper_built_in_type_reference_style_highlighting = hint
resharper_redundant_base_qualifier_highlighting = warning
resharper_suggest_var_or_type_built_in_types_highlighting = hint
resharper_suggest_var_or_type_elsewhere_highlighting = hint
resharper_suggest_var_or_type_simple_types_highlighting = hint
resharper_web_config_module_not_resolved_highlighting = warning
resharper_web_config_type_not_resolved_highlighting = warning
resharper_web_config_wrong_module_highlighting = warning
resharper_xunit_xunit_test_with_console_output_highlighting = hint

[{*.har,*.jsb2,*.jsb3,*.json,*.jsonc,*.postman_collection,*.postman_collection.json,*.postman_environment,*.postman_environment.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}]
indent_style = space
indent_size = 2

[{*.yaml,*.yml}]
indent_style = space
indent_size = 2

[{*.bash,*.sh,*.zsh}]
indent_style = space
indent_size = 2

[*.sass]
indent_style = space
indent_size = 2

[*.scss]
indent_style = space
indent_size = 2

[*.js.map]
indent_style = space
indent_size = 2

[*.{appxmanifest,asax,ascx,aspx,axaml,build,c,c++,c++m,cc,ccm,cginc,compute,cp,cpp,cppm,cs,cshtml,cu,cuh,cxx,cxxm,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,hh,hlsl,hlsli,hlslinc,hpp,hxx,inc,inl,ino,ipp,ixx,master,ml,mli,mpp,mq4,mq5,mqh,mxx,nuspec,paml,razor,resw,resx,shader,skin,tpp,usf,ush,uxml,vb,xaml,xamlx,xoml,xsd}]
indent_style = space
indent_size = 4
tab_width = 4


[dockermod_root/*]

# dockermod requires no BOM
charset = utf-8


[*.cs]
charset = utf-8-bom
end_of_line = crlf
csharp_style_var_for_built_in_types = true:silent
csharp_style_var_when_type_is_apparent = true:silent
csharp_style_var_elsewhere = true:silent

## SonarAnalyzers.CSharp

# Unreachable code detected
dotnet_diagnostic.cs0162.severity = error

# Remove this commented out code.
dotnet_diagnostic.s125.severity = error

# Complete the task associated to this 'TODO' comment.
dotnet_diagnostic.s1135.severity = warning

# Change return type to 'void'; not a single caller uses the returned value.
dotnet_diagnostic.S3241.severity = error

# Await async alternatives instead of using blocking operations.
dotnet_diagnostic.S6966.severity = error

# Remove the unused local variable 'foo'.
dotnet_diagnostic.S1481.severity = error

# Remove this empty class, write its code or make it an "interface".
dotnet_diagnostic.s2094.severity = error

# Either log this exception and handle it, or rethrow it with some contextual information.
dotnet_diagnostic.s2139.severity = error

# Either implement 'IDisposable.Dispose', or totally rename this method to prevent confusion.
dotnet_diagnostic.s2953.severity = error

# Fix this implementation of 'IDisposable' to conform to the dispose pattern.
dotnet_diagnostic.s3881.severity = error

# Logging in a catch clause should pass the caught exception as a parameter.
dotnet_diagnostic.s6667.severity = error

# Logging arguments should be passed to the correct parameter.
dotnet_diagnostic.s6668.severity = error

# Update this logger to use its enclosing type.
dotnet_diagnostic.s6672.severity = error

# REST API controller actions should be annotated with the appropriate HTTP verb attribute.
dotnet_diagnostic.s6965.severity = error


## StyleCop.Analyzers

# XML comment analysis is disabled due to project configuration
dotnet_diagnostic.sa0001.severity = None

# Prefix local calls with this
dotnet_diagnostic.sa1101.severity = None

# Opening brace should be followed by a space
dotnet_diagnostic.sa1012.severity = error

# Closing brace should be preceded by a space
dotnet_diagnostic.sa1013.severity = error

# Code should not contain trailing whitespace
dotnet_diagnostic.SA1028.severity = error

# Using directive should appear within a namespace declaration
dotnet_diagnostic.sa1200.severity = None

# A member should not follow a nested type
dotnet_diagnostic.SA1201.severity = error

# Public members should come before private members
dotnet_diagnostic.SA1202.severity = error

# Field '_blah' should not begin with an underscore
dotnet_diagnostic.sa1309.severity = None

# Use trailing comma in multi-line initializers
dotnet_diagnostic.sa1413.severity = error

# Single-line comments should not be followed by blank line
dotnet_diagnostic.sa1512.severity = error

# A closing brace should not be preceded by a blank line
dotnet_diagnostic.SA1508.severity = error

# The file header is missing or not located at the top of the file
dotnet_diagnostic.sa1633.severity = None

## xUnit Analyzers

# Do not use Assert.Equal() to check for collection size.
dotnet_diagnostic.xUnit2013.severity = error
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Dockerfile text eol=lf

# Match the C# line endings required by .editorconfig on every platform.
*.cs text eol=crlf
Loading
Loading