Showing 3 of 3 total issues
Method Convert
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private SonarDocument Convert(TrxDocument trxDocument, string solutionDirectory, bool useAbsolutePath, bool usePDBFile)
{
var sonarDocument = new SonarDocument();
foreach (UnitTestResult trxResult in trxDocument.Results)
Method GetTestFile
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string GetTestFile(this UnitTest unitTest, string solutionDirectory, bool useAbsolutePath, bool usePDBFile)
{
if (usePDBFile && System.IO.File.Exists(Path.ChangeExtension(unitTest.Storage, "pdb")))
{
return unitTest.GetFilePathFromPDB();
Method Main
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void Main(string[] args)
{
var serviceCollection = new ServiceCollection();
ConfigureServices(serviceCollection);