Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 @@ -993,7 +993,7 @@ dotnet_diagnostic.SA1506.severity = suggestion
dotnet_diagnostic.SA1507.severity = suggestion

# A closing brace should not be preceded by a blank line
dotnet_diagnostic.SA1508.severity = suggestion
dotnet_diagnostic.SA1508.severity = warning

# Opening braces should not be preceded by blank line
dotnet_diagnostic.SA1509.severity = suggestion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ public void SdkResultItem_GetHashCode_Compare_MetadataIgnoreKeyOrder()

hashSdkItem1.ShouldBe(hashSdkItem2);
}

}
}
1 change: 0 additions & 1 deletion src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ public void TestTranslationWithWarningsAsErrors()
#endif
Assert.NotNull(deserializedConfig.WarningsAsErrors);
config.WarningsAsErrors.SequenceEqual(deserializedConfig.WarningsAsErrors, StringComparer.Ordinal).ShouldBeTrue();

}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Build.UnitTests/EventArgsFormatting_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public void NullMessage()
EventArgsFormatting.FormatEventMessage("error", "CS",
null, "312", "source.cs", 233, 236, 4, 8, 0);
// No exception was thrown

}
}
}
1 change: 0 additions & 1 deletion src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,6 @@ public void RunningProxyBuildsOnOutOfProcNodesShouldIssueWarning(bool disableInp
buildSession.Logger.FullLog.ShouldContain("Static graph based");

buildSession.Logger.AssertMessageCount("MSB4274", 1);

}

private void AssertCacheBuild(
Expand Down
1 change: 0 additions & 1 deletion src/Build/BackEnd/BuildManager/BuildManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,6 @@ void IssueBuildSubmissionToSchedulerImpl(BuildSubmission submission, bool allowM
ReportResultsToSubmission(new BuildResult(submission.BuildRequest, ex));
_overallBuildSuccess = false;
}

}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ public override bool LogsMessagesOfImportance(MessageImportance importance)
#endif
MessageImportance minimumImportance = _taskHost._taskLoggingContext?.LoggingService.MinimumRequiredMessageImportance ?? MessageImportance.Low;
return importance <= minimumImportance;

}

/// <inheritdoc/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ private void Initialize(LoggingContext loggingContext, ElementLocation location)
_resolvers = _sdkResolverLoader.LoadResolvers(loggingContext, location);
MSBuildEventSource.Log.SdkResolverServiceInitializeStop(_resolvers.Count);
}

}

private void SetResolverState(int submissionId, SdkResolver resolver, object state)
Expand Down
1 change: 0 additions & 1 deletion src/Build/BackEnd/Shared/BuildRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ internal class BuildRequest : INodePacket
/// </summary>
public BuildRequest()
{

}

private BuildRequest(
Expand Down
1 change: 0 additions & 1 deletion src/Build/Evaluation/Evaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,6 @@ private void AddToolsetProperties()
}
}
}

}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,5 +313,4 @@ public P SetProperty(string name, string evaluatedValueEscaped, bool isGlobalPro
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public ItemData this[int index]
ItemDataCollectionValue<I> newDictionaryEntry = _dictionaryBuilder[newNormalizedValue];
newDictionaryEntry.Add(value.Item);
_dictionaryBuilder[newNormalizedValue] = newDictionaryEntry;

}
else
{
Expand Down
1 change: 0 additions & 1 deletion src/Build/Instance/ProjectItemGroupTaskItemInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ List<ProjectItemGroupTaskMetadataInstance> metadata

private ProjectItemGroupTaskItemInstance()
{

}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/Build/ObjectModelRemoting/LinkedObjectFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,4 @@ public override string UnevaluatedValue
}
#endregion
}

}
1 change: 0 additions & 1 deletion src/MSBuild.UnitTests/XMake_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ public void ConfigurationInvalid()
// If there's a space in the %TEMP% path, the config file is read in the static constructor by the URI class and we catch there;
// if there's not, we will catch when we try to read the toolsets. Either is fine; we just want to not crash.
(output.Contains("MSB1043") || output.Contains("MSB4136")).ShouldBeTrue("Output should contain 'MSB1043' or 'MSB4136'");

}
#endif

Expand Down
1 change: 0 additions & 1 deletion src/Shared/BufferedReadStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,5 @@ protected override void Dispose(bool disposing)

base.Dispose(disposing);
}

}
}
1 change: 0 additions & 1 deletion src/Shared/UnitTests/FileUtilities_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public void MakeRelativeTests()
Assert.Equal(@"../", FileUtilities.MakeRelative(@"/abc/def/xyz", @"/abc/def/"));
Assert.Equal(@"../ghi/", FileUtilities.MakeRelative(@"/abc/def/xyz", @"/abc/def/ghi/"));
Assert.Equal(@".", FileUtilities.MakeRelative(@"/abc/def", @"/abc/def/"));

}
}

Expand Down
1 change: 0 additions & 1 deletion src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,5 @@ public void ReadNoAccess()
}
#endif


}
}
1 change: 0 additions & 1 deletion src/Tasks.UnitTests/WriteCodeFragment_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,6 @@ private void ExecuteAndVerifyFailure(WriteCodeFragment task, string errorCode)
Assert.False(result, engine.Log);

engine.AssertLogContains(errorCode);

}
finally
{
Expand Down
1 change: 0 additions & 1 deletion src/Tasks/WriteCodeFragment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ bool isPositional
}

break;

}

attribute.Arguments.Add(new CodeAttributeArgument(parameter.Name, value));
Expand Down
1 change: 0 additions & 1 deletion src/Utilities.UnitTests/CommandLineBuilder_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ public void TestVerifyThrowElse()
}
);
}

}

internal static class CommandLineBuilderExtensionMethods
Expand Down
1 change: 0 additions & 1 deletion src/Utilities.UnitTests/EventArgsFormatting_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public void NullMessage()
EventArgsFormatting.FormatEventMessage("error", "CS",
null, "312", "source.cs", 233, 236, 4, 8, 0);
// No exception was thrown

}

/// <summary>
Expand Down