Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
style: update editorconfig (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Jan 13, 2024
1 parent ce67409 commit 7490c8c
Showing 1 changed file with 113 additions and 17 deletions.
130 changes: 113 additions & 17 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,54 +1,150 @@
[*.cs]
csharp_style_var_for_built_in_types=true:silent
csharp_style_var_when_type_is_apparent=true:silent
csharp_style_var_elsewhere=true:silent
[*]
charset = utf-8-bom
end_of_line = crlf
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 = false
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]
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

# Remove this commented out code.
dotnet_diagnostic.S125.severity = None
dotnet_diagnostic.s125.severity = None

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

# 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 = None
dotnet_diagnostic.s2094.severity = None

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


## StyleCop.Analyzers

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

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

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

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

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

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

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

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

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

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

0 comments on commit 7490c8c

Please sign in to comment.