Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1010 Opening square brackets should not be preceded by a space #7205

Merged
merged 4 commits into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Common.globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ dotnet_diagnostic.SA1008.severity = suggestion
dotnet_diagnostic.SA1009.severity = suggestion

# Opening square brackets should not be preceded by a space
dotnet_diagnostic.SA1010.severity = suggestion
dotnet_diagnostic.SA1010.severity = warning

# Closing square bracket should be followed by a space
dotnet_diagnostic.SA1011.severity = suggestion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ private bool ProcessBodyBytesRead(int bytesRead, int packetLength, NodePacketTyp
return true;
}

private bool ReadAndRoutePacket(NodePacketType packetType, byte [] packetData, int packetLength)
private bool ReadAndRoutePacket(NodePacketType packetType, byte[] packetData, int packetLength)
{
try
{
Expand Down
6 changes: 3 additions & 3 deletions src/MSBuild/XMake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private static void HandleConfigurationException(Exception ex)
[MTAThread]
public static int Main(
#if !FEATURE_GET_COMMANDLINE
string [] args
string[] args
#endif
)
{
Expand Down Expand Up @@ -482,7 +482,7 @@ private static string GetFriendlyCounterType(PerformanceCounterType type, string
#if FEATURE_GET_COMMANDLINE
string commandLine
#else
string [] commandLine
string[] commandLine
#endif
)
{
Expand Down Expand Up @@ -1615,7 +1615,7 @@ internal static void SetConsoleUI()
#if FEATURE_GET_COMMANDLINE
string commandLine,
#else
string [] commandLine,
string[] commandLine,
#endif
out CommandLineSwitches switchesFromAutoResponseFile, out CommandLineSwitches switchesNotFromAutoResponseFile)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks/CombineXmlElements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class CombineXmlElements : TaskExtension
/// <summary>
/// The XML elements to include as children of the root element
/// </summary>
public ITaskItem [] XmlElements { get; set; }
public ITaskItem[] XmlElements { get; set; }

/// <summary>
/// The generated XML
Expand Down