|
| 1 | +# top-most EditorConfig file |
| 2 | +root = true |
| 3 | + |
| 4 | +# Don't use tabs for indentation. |
| 5 | +[*] |
| 6 | +indent_style = space |
| 7 | +# (Please don't specify an indent_size here; that has too many unintended consequences.) |
| 8 | + |
| 9 | +# Code files |
| 10 | +[*.{cs,csx,vb,vbx}] |
| 11 | +indent_size = 4 |
| 12 | +insert_final_newline = true |
| 13 | +charset = utf-8-bom |
| 14 | + |
| 15 | +# XML project files |
| 16 | +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] |
| 17 | +indent_size = 2 |
| 18 | + |
| 19 | +# XML config files |
| 20 | +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] |
| 21 | +indent_size = 2 |
| 22 | + |
| 23 | +# JSON files |
| 24 | +[*.json] |
| 25 | +indent_size = 2 |
| 26 | + |
| 27 | +# Powershell files |
| 28 | +[*.ps1] |
| 29 | +indent_size = 2 |
| 30 | + |
| 31 | +# Shell script files |
| 32 | +[*.sh] |
| 33 | +end_of_line = lf |
| 34 | +indent_size = 2 |
| 35 | + |
| 36 | +# The following applies to unit tests directory only. |
| 37 | +[Valet.UnitTests/**.cs] |
| 38 | + |
| 39 | +# CA1707: Identifiers should not contain underscores |
| 40 | +dotnet_diagnostic.CA1707.severity = none |
| 41 | + |
| 42 | +# The following applies to all files. |
| 43 | +[*.cs] |
| 44 | + |
| 45 | +dotnet_analyzer_diagnostic.category-Style.severity = warning |
| 46 | + |
| 47 | +csharp_style_namespace_declarations = file_scoped |
| 48 | + |
| 49 | +# IDE0008: Use explicit type |
| 50 | +dotnet_diagnostic.IDE0008.severity = none |
| 51 | + |
| 52 | +# IDE0058: Expression value is never used |
| 53 | +dotnet_diagnostic.IDE0058.severity = none |
| 54 | + |
| 55 | +# IDE0022: Use block body for methods |
| 56 | +dotnet_diagnostic.IDE0022.severity = none |
| 57 | + |
| 58 | +# IDE0011: Add braces |
| 59 | +dotnet_diagnostic.IDE0011.severity = none |
| 60 | + |
| 61 | +# IDE0130: Namespace does not match folder structure |
| 62 | +dotnet_diagnostic.IDE0130.severity = none |
| 63 | + |
| 64 | +# JSON002: Probable JSON string detected |
| 65 | +dotnet_diagnostic.JSON002.severity = none |
| 66 | + |
| 67 | + |
| 68 | +# CA2007: Consider calling ConfigureAwait on the awaited task |
| 69 | +dotnet_diagnostic.CA2007.severity = none |
| 70 | + |
| 71 | +# CA1303: Do not pass literals as localized parameters |
| 72 | +dotnet_diagnostic.CA1303.severity = none |
| 73 | + |
| 74 | +# CA1002: Do not expose generic lists |
| 75 | +dotnet_diagnostic.CA1002.severity = none |
| 76 | + |
| 77 | +# CA1724: Type names should not match namespaces |
| 78 | +dotnet_diagnostic.CA1724.severity = none |
| 79 | + |
| 80 | +# CA2227: Collection properties should be read only |
| 81 | +dotnet_diagnostic.CA2227.severity = none |
| 82 | + |
| 83 | +# CA2201: Do not raise reserved exception types |
| 84 | +dotnet_diagnostic.CA2201.severity = none |
| 85 | + |
| 86 | +# CA1065: Do not raise exceptions in unexpected locations |
| 87 | +dotnet_diagnostic.CA1065.severity = none |
| 88 | + |
| 89 | +# CA1031: Do not catch general exception types |
| 90 | +dotnet_diagnostic.CA1031.severity = none |
| 91 | + |
| 92 | +# CA1812: Avoid uninstantiated internal classes |
| 93 | +dotnet_diagnostic.CA1812.severity = none |
| 94 | + |
| 95 | +# CA1815: Override equals and operator equals on value types |
| 96 | +dotnet_diagnostic.CA1815.severity = none |
| 97 | + |
| 98 | +# CA1014: Mark assemblies with CLSCompliant |
| 99 | +dotnet_diagnostic.CA1014.severity = none |
0 commit comments