Skip to content
Closed
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 @@ -984,7 +984,7 @@ dotnet_diagnostic.SA1503.severity = suggestion
dotnet_diagnostic.SA1504.severity = suggestion

# An opening brace should not be followed by a blank line
dotnet_diagnostic.SA1505.severity = suggestion
dotnet_diagnostic.SA1505.severity = warning

# Element documentation headers should not be followed by blank line
dotnet_diagnostic.SA1506.severity = suggestion
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 @@ -1741,7 +1741,6 @@ void IssueBuildSubmissionToSchedulerImpl(BuildSubmission submission, bool allowM

lock (_syncLock)
{

if (resetMainThreadOnFailure)
{
_legacyThreadingData.MainThreadSubmissionId = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,6 @@ ElementLocation elementLocation

if (itemVectorContents.Count > 0)
{

// Expander set the item type it found
string itemVectorType = itemFactory.ItemType;

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/Context/EvaluationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ private EvaluationContext(SharingPolicy policy, IFileSystem fileSystem, ISdkReso
/// </summary>
public static EvaluationContext Create(SharingPolicy policy)
{

// ReSharper disable once IntroduceOptionalParameters.Global
// do not remove this method to avoid breaking binary compatibility
return Create(policy, fileSystem: null);
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 @@ -1860,7 +1860,6 @@ static string EvaluateProperty(string value, IElementLocation location,

if (sdkResult.AdditionalPaths != null)
{

foreach (var additionalPath in sdkResult.AdditionalPaths)
{
ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(additionalPath, project),
Expand Down
1 change: 0 additions & 1 deletion src/Build/Evaluation/Expander.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5056,7 +5056,6 @@ private static bool IsInstanceMethodAvailable(string methodName)
/// </summary>
private object LateBindExecute(Exception ex, BindingFlags bindingFlags, object objectInstance /* null unless instance method */, object[] args, bool isConstructor)
{

// First let's try for a method where all arguments are strings..
Type[] types = new Type[_arguments.Length];
for (int n = 0; n < _arguments.Length; n++)
Expand Down
1 change: 0 additions & 1 deletion src/Build/Instance/HostServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public ITaskHost GetHostObject(string projectFile, string targetName, string tas
/// </summary>
public void RegisterHostObject(string projectFile, string targetName, string taskName, ITaskHost hostObject)
{

/* Unmerged change from project 'Microsoft.Build (netcoreapp2.1)'
Before:
ErrorUtilities.VerifyThrowArgumentNull(projectFile, "projectFile");
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/Instance/ProjectItemInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,6 @@ private string GetBuiltInMetadataEscaped(string name)
/// </summary>
private ProjectMetadataInstance GetItemDefinitionMetadata(string metadataName)
{

// Check any inherited item definition metadata first. It's more like
// direct metadata, but we didn't want to copy the tables.
if (_itemDefinitions != null)
Expand Down
1 change: 0 additions & 1 deletion src/Framework/Sdk/SdkResultItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Microsoft.Build.Framework
{

#nullable enable

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/MSBuild/XMake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,6 @@ internal static string ExtractSwitchParameters
int switchIndicatorsLength
)
{

// find the parameter indicator again using the quoted arg
// NOTE: since the parameter indicator cannot be part of a switch name, quoting around it is not relevant, because a
// parameter indicator cannot be escaped or made into a literal
Expand Down
1 change: 0 additions & 1 deletion src/Shared/FileSystem/IFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Microsoft.Build.Shared.FileSystem
{

/*
* This is a clone of Microsoft.Build.FileSystem.MSBuildFileSystemBase.
* MSBuildFileSystemBase is the public, reference interface. Changes should be made to MSBuildFileSystemBase and cloned in IFileSystem.
Expand Down
1 change: 0 additions & 1 deletion src/Tasks.UnitTests/RemoveDir_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public void AttributeForwarding()
[Fact]
public void SimpleDelete()
{

using (TestEnvironment env = TestEnvironment.Create(_output))
{
List<TaskItem> list = new List<TaskItem>();
Expand Down
1 change: 0 additions & 1 deletion src/Tasks/AxReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected override string GetWrapperFileNameInternal(string typeLibName)
/// </summary>
internal bool GenerateWrapper(out ComReferenceWrapperInfo wrapperInfo)
{

// The tool gets the public key for itself, but we get it here anyway to
// give nice messages in errors cases.
GetAndValidateStrongNameKey(out _, out _);
Expand Down
1 change: 0 additions & 1 deletion src/Tasks/AxTlbBaseReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ internal static string GetWrapperFileName(string interopDllHeader, string typeLi
/// </summary>
internal void GetAndValidateStrongNameKey(out StrongNameKeyPair keyPair, out byte[] publicKey)
{

// get key pair/public key
StrongNameUtils.GetStrongNameKey(Log, KeyFile, KeyContainer, out keyPair, out publicKey);

Expand Down
1 change: 0 additions & 1 deletion src/Tasks/ComReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ internal static void GetFuncDescForDescIndex(ITypeInfo typeInfo, int funcIndex,
/// </summary>
internal static bool GetTypeLibNameForITypeLib(TaskLoggingHelper log, bool silent, ITypeLib typeLib, string typeLibId, out string typeLibName)
{

// see if the type library supports ITypeLib2
if (!(typeLib is ITypeLib2 typeLib2))
{
Expand Down
1 change: 0 additions & 1 deletion src/Tasks/GenerateResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ namespace Microsoft.Build.Tasks
[RequiredRuntime("v2.0")]
public sealed partial class GenerateResource : TaskExtension
{

#region Fields

// This cache helps us track the linked resource files listed inside of a resx resource file
Expand Down