diff --git a/.globalconfig b/.globalconfig new file mode 100644 index 0000000000..4158952430 --- /dev/null +++ b/.globalconfig @@ -0,0 +1,13 @@ +# .NET code analysis rule set +is_global = true + +# Current +dotnet_diagnostic.CDX1000.severity = suggestion # DontConvertExceptionToObject +dotnet_diagnostic.CDX1001.severity = suggestion # DontUseExceptionInInterpolation +dotnet_diagnostic.CDX1002.severity = suggestion # DontUseExceptionStackTrace +dotnet_diagnostic.CDX1003.severity = suggestion # DontUseExceptionToString + +# 📊 Experimental Analyzer Features +dotnet_diagnostic.CDX1004.severity = suggestion # Experimental - DontCreateNestedExceptions +dotnet_diagnostic.CDX1005.severity = suggestion # Experimental - DontThrowExceptions +dotnet_diagnostic.CDX1006.severity = suggestion # Experimental - DontCatchGenericExceptions \ No newline at end of file diff --git a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj index a9d6be5f76..ffc350141f 100644 --- a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj +++ b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj @@ -59,9 +59,11 @@ + - + + diff --git a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj index be4c854f0b..65bc009f36 100644 --- a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj +++ b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj @@ -54,9 +54,11 @@ + - + + diff --git a/Microsoft.Azure.Cosmos.sln b/Microsoft.Azure.Cosmos.sln index caafa0b41a..cec2d9a5f4 100644 --- a/Microsoft.Azure.Cosmos.sln +++ b/Microsoft.Azure.Cosmos.sln @@ -22,6 +22,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{804C595B-D0DA-48F1-A40D-97BB014736CB}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + .globalconfig = .globalconfig EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Encryption.Custom", "Encryption.Custom", "{51F858D8-707E-4F21-BCC6-4D6123832E4F}" diff --git a/Microsoft.Azure.Cosmos/FaultInjection/src/FaultInjection.csproj b/Microsoft.Azure.Cosmos/FaultInjection/src/FaultInjection.csproj index 4480bcc08f..f917de0a76 100644 --- a/Microsoft.Azure.Cosmos/FaultInjection/src/FaultInjection.csproj +++ b/Microsoft.Azure.Cosmos/FaultInjection/src/FaultInjection.csproj @@ -66,8 +66,13 @@ - - + + + + + + + true true ..\..\..\35MSSharedLib1024.snk diff --git a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj index 30b9bf5ac5..f5491489fb 100644 --- a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj +++ b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj @@ -133,11 +133,9 @@ - - @@ -150,7 +148,13 @@ - + + + + + + +