Skip to content

Commit

Permalink
chore: Minor tweaks to warning settings (specklesystems#3064)
Browse files Browse the repository at this point in the history
* chore: Minor editorconfig changes.

* chore: Lower most Rider warnings to suggestions
  • Loading branch information
AlanRynne authored Nov 23, 2023
1 parent 57b7a48 commit 0c0360d
Show file tree
Hide file tree
Showing 2 changed files with 549 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = p
dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case

# Constants are ALL_UPPER
dotnet_naming_rule.constants_should_be_pascal_case.severity = warning
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style
dotnet_naming_rule.constants_should_be_all_upper.severity = warning
dotnet_naming_rule.constants_should_be_all_upper.symbols = constants
dotnet_naming_rule.constants_should_be_all_upper.style = constant_style

dotnet_naming_symbols.constants.applicable_kinds = field, local
dotnet_naming_symbols.constants.required_modifiers = const
Expand Down Expand Up @@ -207,6 +207,7 @@ dotnet_analyzer_diagnostic.category-Style.severity = warning # All rules will us
dotnet_diagnostic.ide0055.severity = none # Formatting rule: Incompatible with CSharpier
dotnet_diagnostic.ide0007.severity = none # Use var instead of explicit type: Preference
dotnet_diagnostic.ide0009.severity = none # Add this or Me qualification: Preference
dotnet_diagnostic.ide0001.severity = suggestion # Name can be simplified: Non enforceable in build
dotnet_diagnostic.ide0046.severity = suggestion # Use conditional expression for return: Preference
dotnet_diagnostic.ide0078.severity = suggestion # Use pattern matching: Subjective
dotnet_diagnostic.ide0260.severity = suggestion # Use pattern matching: Subjective
Expand All @@ -231,6 +232,8 @@ dotnet_diagnostic.ca1707.severity = none # Remove underscores in names
dotnet_diagnostic.ca1822.severity = suggestion # Mark member as static
dotnet_diagnostic.ca2227.severity = suggestion # Collection props should be read-only

dotnet_code_quality.ca1051.exclude_structs = true # CA1051 is excluded in structs

[*.{appxmanifest,asax,ascx,aspx,axaml,build,c,c++,cc,cginc,compute,cp,cpp,cs,cshtml,cu,cuh,cxx,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,nuspec,paml,razor,resw,resx,shader,skin,tpp,usf,ush,vb,xaml,xamlx,xoml,xsd}]
indent_style = space
indent_size = 2
Expand Down
Loading

0 comments on commit 0c0360d

Please sign in to comment.