Skip to content
Prev Previous commit
Next Next commit
Enforce if statement syntax
  • Loading branch information
benbp committed Aug 7, 2025
commit 8b54beb99aa4ff65e1c0fab386d5ac214f30c747
3 changes: 2 additions & 1 deletion tools/azsdk-cli/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[*.cs]
# disallow single if statements with no curly braces
dotnet_diagnostic.SA1503.severity = error
dotnet_diagnostic.IDE0011.severity = error
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<ToolCommandName>azsdk</ToolCommandName>
<NoWarn>ASP0000;CS8603;CS8618;CS8625;CS8604</NoWarn>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AssemblyName>azsdk</AssemblyName>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public DefaultCommandResponse EchoFail(string message)
}
}


[McpServerTool(Name = "hello-world"), Description("Echoes the message back to the client")]
public DefaultCommandResponse EchoSuccess(string message)
{
Expand Down