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)
        {
            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 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public static string GetTestFile(this UnitTest unitTest, string solutionDirectory, bool useAbsolutePath)
            {
                var className = unitTest?.TestMethod?.ClassName;
    
                if (string.IsNullOrEmpty(className))
    Severity: Minor
    Found in TrxToSonar/Extensions.cs - About 1 hr to fix

      Method Main has 31 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