You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace TestNamespace
{
public class TestClass
{
public void TestMethod(int i)
{
if (i == 0)
return;
}
}
}
If this is included in a project with settings.indentation.indentationSize=1, then the code fix for SA1503 provides the following incorrect fix:
namespace TestNamespace
{
internal class TestClass
{
public void TestMethod(int i)
{
if (i == 0)
{
return;
}
}
}
}
StyleCop.Analyzers 1.2.0-beta.435.
Visual Studio 17.4 (Roslyn 4.4.0). Does not happen in earlier versions. dotnet/roslyn#63013 filed on earlier preview version of Roslyn, but the same applies for 4.4.0.
PR #3580, created to bump Roslyn version to 4.4.0 in the c#11 test project, fails because of the same problem.
The text was updated successfully, but these errors were encountered:
Consider the following file:
If this is included in a project with settings.indentation.indentationSize=1, then the code fix for SA1503 provides the following incorrect fix:
StyleCop.Analyzers 1.2.0-beta.435.
Visual Studio 17.4 (Roslyn 4.4.0). Does not happen in earlier versions.
dotnet/roslyn#63013 filed on earlier preview version of Roslyn, but the same applies for 4.4.0.
PR #3580, created to bump Roslyn version to 4.4.0 in the c#11 test project, fails because of the same problem.
The text was updated successfully, but these errors were encountered: