jenkinsci/hpe-application-automation-tools-plugin

View on GitHub
HpToolsLauncher/JavaProperties/JavaProperties.cs

Summary

Maintainability
F
6 days
Test Coverage

Avoid deeply nested control flow statements.
Open

                                default:
                                    throw new ArgumentException(
                                                 "Malformed \\uxxxx encoding.");
Severity: Major
Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    case '0':
                                    case '1':
                                    case '2':
                                    case '3':
                                    case '4':
    Severity: Major
    Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      case 'a':
                                      case 'b':
                                      case 'c':
                                      case 'd':
                                      case 'e':
      Severity: Major
      Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        case 'A':
                                        case 'B':
                                        case 'C':
                                        case 'D':
                                        case 'E':
        Severity: Major
        Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  class LineReader
                  {
                      public LineReader(Stream inStream)
                      {
                          this.inStream = inStream;
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 1 day to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 168..324

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 810.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  private String SaveConvert(String theString,
                                             bool escapeSpace,
                                             bool escapeUnicode)
                  {
                      int len = theString.Length;
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 1 day to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 426..492

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 578.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  private String LoadConvert(char[] in1, int off, int len, char[] convtBuf)
                  {
                      if (convtBuf.Length < len)
                      {
                          int newLen = len * 2;
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 7 hrs to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 335..416

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 499.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  private static void WriteComments(System.IO.TextWriter bw, String comments)
                  {
                      bw.Write("#");
                      int len = comments.Length;
                      int current = 0;
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 7 hrs to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 494..539

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 491.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  private void LoadInternal(LineReader lr)
                  {
                      char[] convtBuf = new char[1024];
                      int limit;
                      int keyLen;
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 6 hrs to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 102..166

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 403.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  private void StoreInternal(TextWriter bw, String comments, bool escUnicode)
                  {
                      if (comments != null)
                      {
                          WriteComments(bw, comments);
          Severity: Major
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 2 hrs to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 591..611

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 172.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

                  public void Store(string fullpath, String comments)
                  {
                      using (StreamWriter wr = new StreamWriter(fullpath, false, Encoding.GetEncoding("ISO-8859-1")))
                      {
                          StoreInternal(wr, comments, true);
          Severity: Minor
          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs and 1 other location - About 35 mins to fix
          HpToolsLauncher/Interfaces/JavaProperties/JavaProperties.cs on lines 584..590

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          There are no issues that match your filters.

          Category
          Status