hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java

Summary

Maintainability
F
1 wk
Test Coverage

File ProGuardGUI.java has 1253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
Severity: Major
Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 3 days to fix

    Method getProGuardConfiguration has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
    Open

        private Configuration getProGuardConfiguration()
        {
            Configuration configuration = new Configuration();
    
            // Get the input and output jars and directories.
    Severity: Minor
    Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 7 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method setProGuardConfiguration has 105 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private void setProGuardConfiguration(Configuration configuration)
        {
            // Set up the input and output jars and directories.
            programPanel.setClassPath(configuration.programJars);
            libraryPanel.setClassPath(configuration.libraryJars);
    Severity: Major
    Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 4 hrs to fix

      ProGuardGUI has 33 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class ProGuardGUI extends JFrame
      {
          private static final String NO_SPLASH_OPTION = "-nosplash";
      
          private static final String TITLE_IMAGE_FILE          = "vtitle.png";
      Severity: Minor
      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 4 hrs to fix

        Method getProGuardConfiguration has 92 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private Configuration getProGuardConfiguration()
            {
                Configuration configuration = new Configuration();
        
                // Get the input and output jars and directories.
        Severity: Major
        Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 3 hrs to fix

          Method main has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static void main(final String[] args)
              {
                  try
                  {
                      SwingUtil.invokeAndWait(new Runnable()
          Severity: Minor
          Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

            Method addClassSpecifications has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private void addClassSpecifications(ClassSpecification[] boilerplateClassSpecifications,
                                                    JPanel               classSpecificationsPanel,
                                                    JCheckBox[]          boilerplateCheckBoxes,
                                                    JTextField[]         boilerplateTextFields)
                {
            Severity: Minor
            Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

              Method loadConfiguration has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private void loadConfiguration(File file)
                  {
                      // Set the default directory and file in the file choosers.
                      configurationChooser.setSelectedFile(file.getAbsoluteFile());
                      fileChooser.setCurrentDirectory(file.getAbsoluteFile().getParentFile());
              Severity: Minor
              Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

                Method loadStackTrace has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private void loadStackTrace(File file)
                    {
                        try
                        {
                            StringBuffer buffer = new StringBuffer(1024);
                Severity: Minor
                Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

                  Method loadConfiguration has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private void loadConfiguration(URL url)
                      {
                          try
                          {
                              // Parse the configuration file.
                  Severity: Minor
                  Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

                    Method findMatchingKeepSpecifications has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private String findMatchingKeepSpecifications(KeepClassSpecification keepClassSpecificationTemplate,
                                                                      List              keepSpecifications)
                        {
                            if (keepSpecifications == null)
                            {
                    Severity: Minor
                    Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 1 hr to fix

                      Method findMatchingKeepSpecifications has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private String findMatchingKeepSpecifications(KeepClassSpecification keepClassSpecificationTemplate,
                                                                        List              keepSpecifications)
                          {
                              if (keepSpecifications == null)
                              {
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 55 mins to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Method setProGuardConfiguration has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private void setProGuardConfiguration(Configuration configuration)
                          {
                              // Set up the input and output jars and directories.
                              programPanel.setClassPath(configuration.programJars);
                              libraryPanel.setClassPath(configuration.libraryJars);
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 25 mins to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Method addClassSpecifications has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                          private void addClassSpecifications(ClassSpecification[] boilerplateClassSpecifications,
                                                              JPanel               classSpecificationsPanel,
                                                              JCheckBox[]          boilerplateCheckBoxes,
                                                              JTextField[]         boilerplateTextFields)
                          {
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java - About 25 mins to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

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

                              for (int index = 0; index < boilerplateKeep.length; index++)
                              {
                                  String classNames =
                                      findMatchingKeepSpecifications(boilerplateKeep[index],
                                                                     configuration.keep);
                      Severity: Major
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 1 hr to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 964..972

                      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 78.

                      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

                              for (int index = 0; index < boilerplateKeepNames.length; index++)
                              {
                                  String classNames =
                                      findMatchingKeepSpecifications(boilerplateKeepNames[index],
                                                                     configuration.keep);
                      Severity: Major
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 1 hr to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 952..960

                      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 78.

                      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

                              for (int index = 0; index < boilerplateKeep.length; index++)
                              {
                                  if (boilerplateKeepCheckBoxes[index].isSelected())
                                  {
                                      keep.add(classSpecification(boilerplateKeep[index],
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 45 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1125..1132

                      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 56.

                      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

                              for (int index = 0; index < boilerplateKeepNames.length; index++)
                              {
                                  if (boilerplateKeepNamesCheckBoxes[index].isSelected())
                                  {
                                      keep.add(classSpecification(boilerplateKeepNames[index],
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 45 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1115..1122

                      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 56.

                      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

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

                          private class MySaveConfigurationActionListener implements ActionListener
                          {
                              public void actionPerformed(ActionEvent e)
                              {
                                  configurationChooser.setDialogTitle(msg("saveConfigurationFile"));
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 40 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1490..1502

                      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 50.

                      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

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

                          private class MyLoadConfigurationActionListener implements ActionListener
                          {
                              public void actionPerformed(ActionEvent e)
                              {
                                  configurationChooser.setDialogTitle(msg("selectConfigurationFile"));
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 40 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1509..1521

                      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 50.

                      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

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

                              for (int index = 0; index < components.size(); index++)
                              {
                                  JComponent component = (JComponent)components.get(index);
                                  component.setPreferredSize(maximumSize);
                              }
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 35 mins to fix
                      RCSBlackBerry/src/blackberry/evidence/Evidence.java on lines 560..563

                      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 44.

                      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 3 locations. Consider refactoring.
                      Open

                              configuration.keepPackageNames                 = keepPackageNamesCheckBox                .isSelected() ? keepPackageNamesTextField.getText().length()  > 0 ? ListUtil.commaSeparatedList(ClassUtil.internalClassName(keepPackageNamesTextField.getText()))  : new ArrayList() : null;
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 2 other locations - About 30 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1195..1195
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1209..1209

                      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 42.

                      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 3 locations. Consider refactoring.
                      Open

                              configuration.keepDirectories                  = keepDirectoriesCheckBox                 .isSelected() ? keepDirectoriesTextField.getText().length() > 0 ? ListUtil.commaSeparatedList(ClassUtil.internalClassName(keepDirectoriesTextField.getText())) : new ArrayList() : null;
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 2 other locations - About 30 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1189..1189
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1195..1195

                      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 42.

                      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 3 locations. Consider refactoring.
                      Open

                              configuration.adaptClassStrings                = adaptClassStringsCheckBox               .isSelected() ? adaptClassStringsTextField.getText().length() > 0 ? ListUtil.commaSeparatedList(ClassUtil.internalClassName(adaptClassStringsTextField.getText())) : new ArrayList() : null;
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 2 other locations - About 30 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1189..1189
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1209..1209

                      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 42.

                      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

                              configuration.note                             = noteCheckBox                            .isSelected() ? noteTextField.getText().length() > 0 ? ListUtil.commaSeparatedList(ClassUtil.internalClassName(noteTextField.getText())) : null : new ArrayList();
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 30 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1205..1205

                      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 42.

                      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

                              configuration.warn                             = warnCheckBox                            .isSelected() ? warnTextField.getText().length() > 0 ? ListUtil.commaSeparatedList(ClassUtil.internalClassName(warnTextField.getText())) : null : new ArrayList();
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java and 1 other location - About 30 mins to fix
                      bb-tools/proguard4.7/src/proguard/gui/ProGuardGUI.java on lines 1204..1204

                      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 42.

                      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