jenkinsci/hpe-application-automation-tools-plugin

View on GitHub
src/main/java/com/microfocus/application/automation/tools/results/projectparser/performance/LrTest.java

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this method.
Open

            return Bad;

    Avoid too many return statements within this method.
    Open

                    return TotalThroughput;

      Avoid too many return statements within this method.
      Open

                      return AverageThroughput;

        Avoid too many return statements within this method.
        Open

                        return AverageHitsPerSecond;

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  ErrorsPerSecond, PercentileTRT, AverageTRT, Bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  ErrorsPerSecond, PercentileTRT, AverageTRT, Bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  Failed, Passed, NoData, bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  AverageThroughput, TotalThroughput, AverageHitsPerSecond, TotalHits,

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  Failed, Passed, NoData, bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  Failed, Passed, NoData, bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  AverageThroughput, TotalThroughput, AverageHitsPerSecond, TotalHits,

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  AverageThroughput, TotalThroughput, AverageHitsPerSecond, TotalHits,

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  AverageThroughput, TotalThroughput, AverageHitsPerSecond, TotalHits,

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  ErrorsPerSecond, PercentileTRT, AverageTRT, Bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  ErrorsPerSecond, PercentileTRT, AverageTRT, Bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
          Open

                  Failed, Passed, NoData, bad;

          Shared coding conventions allow teams to collaborate efficiently. This rule checks that all constant names match a provided regular expression.

          Noncompliant Code Example

          With the default regular expression ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$:

          public class MyClass {
            public static final int first = 1;
          }
          
          public enum MyEnum {
            first;
          }
          

          Compliant Solution

          public class MyClass {
            public static final int FIRST = 1;
          }
          
          public enum MyEnum {
            FIRST;
          }
          

          There are no issues that match your filters.

          Category
          Status