gmarokov/dotnet-trx2sonar

View on GitHub

Showing 3 of 3 total issues

Method Convert has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private SonarDocument Convert(TrxDocument trxDocument, string solutionDirectory, bool useAbsolutePath, bool usePDBFile)
        {
            var sonarDocument = new SonarDocument();

            foreach (UnitTestResult trxResult in trxDocument.Results)
Severity: Minor
Found in TrxToSonar/Converter.cs - About 1 hr to fix

    Method GetTestFile has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    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();
    Severity: Minor
    Found in TrxToSonar/Extensions.cs - About 1 hr to fix

      Method Main has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private static void Main(string[] args)
              {
                  var serviceCollection = new ServiceCollection();
                  ConfigureServices(serviceCollection);
      
      Severity: Minor
      Found in TrxToSonar/Program.cs - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language