Skip to content
Draft
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
1 change: 1 addition & 0 deletions MarkupConverter/MarkupConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<Compile Include="HtmlToXamlConverter.cs" />
<Compile Include="MarkupConverter.cs" />
<Compile Include="RtfToHtmlConverter.cs" />
<Compile Include="TestCodeScanning.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand Down
29 changes: 29 additions & 0 deletions MarkupConverter/TestCodeScanning.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MarkupConverter
{
internal class TestCodeScanning
{
static int i = 0;
public int TestMethod()
{
for(i++; i%3!=0;i++)
Console.WriteLine(i);
return i;
}

}
}

class Bad
{
public static double SolveQuadratic(double a, double b, double c)
{
// TODO: handle case where a == 0
return (-b + Math.Sqrt(b * b - 4 * a * c)) / (2 * a);
}
}