r4fterman/pdf.forms

View on GitHub
src/main/java/org/pdf/forms/gui/VLFrame.java

Summary

Maintainability
D
3 days
Test Coverage
F
47%

File VLFrame.java has 521 lines of code (exceeds 250 allowed). Consider refactoring.
Open

package org.pdf.forms.gui;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
Severity: Major
Found in src/main/java/org/pdf/forms/gui/VLFrame.java - About 1 day to fix

    VLFrame has 51 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class VLFrame extends JFrame implements IMainFrame {
    
        private final Version version;
        private final WidgetFactory widgetFactory;
        private final Configuration configuration;
    Severity: Major
    Found in src/main/java/org/pdf/forms/gui/VLFrame.java - About 7 hrs to fix

      Method initializeWindow has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private ToolBarContainer initializeWindow(
                  final Rule horizontalRuler,
                  final Rule verticalRuler,
                  final FontHandler fontHandler) {
              addWindowListener(new FrameCloser());
      Severity: Minor
      Found in src/main/java/org/pdf/forms/gui/VLFrame.java - About 1 hr to fix

        Method setupDockingPanes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void setupDockingPanes() {
                desk.addDockable(designerPanel);
                dockableNames.put("Designer", designerPanel);
        
                final WindowConfiguration windowConfiguration = windowConfigurationFile.getWindowConfiguration();
        Severity: Minor
        Found in src/main/java/org/pdf/forms/gui/VLFrame.java - About 1 hr to fix

          Method getNextArrayNumberForName has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              @Override
              public int getNextArrayNumberForName(
                      final String name,
                      final IWidget widget) {
          
          
          Severity: Minor
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java - About 45 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

          Remove this unused private "addRecentPDFFilesAsMenuEntries" method.
          Open

              private void addRecentPDFFilesAsMenuEntries(final JMenu menu) {

          private methods that are never executed are dead code: unnecessary, inoperative code that should be removed. Cleaning out dead code decreases the size of the maintained codebase, making it easier to understand the program and preventing bugs from being introduced.

          Note that this rule does not take reflection into account, which means that issues will be raised on private methods that are only accessed using the reflection API.

          Noncompliant Code Example

          public class Foo implements Serializable
          {
            private Foo(){}     //Compliant, private empty constructor intentionally used to prevent any direct instantiation of a class.
            public static void doSomething(){
              Foo foo = new Foo();
              ...
            }
            private void unusedPrivateMethod(){...}
            private void writeObject(ObjectOutputStream s){...}  //Compliant, relates to the java serialization mechanism
            private void readObject(ObjectInputStream in){...}  //Compliant, relates to the java serialization mechanism
          }
          

          Compliant Solution

          public class Foo implements Serializable
          {
            private Foo(){}     //Compliant, private empty constructor intentionally used to prevent any direct instantiation of a class.
            public static void doSomething(){
              Foo foo = new Foo();
              ...
            }
          
            private void writeObject(ObjectOutputStream s){...}  //Compliant, relates to the java serialization mechanism
          
            private void readObject(ObjectInputStream in){...}  //Compliant, relates to the java serialization mechanism
          }
          

          Exceptions

          This rule doesn't raise any issue on annotated methods.

          This block of commented-out lines of code should be removed.
          Open

                  //todo: addRecentDesignerFilesAsMenuEntries;

          Programmers should not comment out code as it bloats programs and reduces readability.

          Unused code should be deleted and can be retrieved from source control history if required.

          Remove this unused private "addRecentDesignerFilesAsMenuEntries" method.
          Open

              private void addRecentDesignerFilesAsMenuEntries(final JMenu menu) {

          private methods that are never executed are dead code: unnecessary, inoperative code that should be removed. Cleaning out dead code decreases the size of the maintained codebase, making it easier to understand the program and preventing bugs from being introduced.

          Note that this rule does not take reflection into account, which means that issues will be raised on private methods that are only accessed using the reflection API.

          Noncompliant Code Example

          public class Foo implements Serializable
          {
            private Foo(){}     //Compliant, private empty constructor intentionally used to prevent any direct instantiation of a class.
            public static void doSomething(){
              Foo foo = new Foo();
              ...
            }
            private void unusedPrivateMethod(){...}
            private void writeObject(ObjectOutputStream s){...}  //Compliant, relates to the java serialization mechanism
            private void readObject(ObjectInputStream in){...}  //Compliant, relates to the java serialization mechanism
          }
          

          Compliant Solution

          public class Foo implements Serializable
          {
            private Foo(){}     //Compliant, private empty constructor intentionally used to prevent any direct instantiation of a class.
            public static void doSomething(){
              Foo foo = new Foo();
              ...
            }
          
            private void writeObject(ObjectOutputStream s){...}  //Compliant, relates to the java serialization mechanism
          
            private void readObject(ObjectInputStream in){...}  //Compliant, relates to the java serialization mechanism
          }
          

          Exceptions

          This rule doesn't raise any issue on annotated methods.

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

                  for (int i = 0; i < numberOfRecentDocs; i++) {
                      final JMenuItem menuItem = addDocumentToMenuEntry(recentDocs.get(i), i);
                      menu.add(menuItem);
          
                      menuItem.addActionListener(e -> {
          Severity: Major
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 1 other location - About 1 hr to fix
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 466..478

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

          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 i = 0; i < numberOfRecentDocs; i++) {
                      final JMenuItem menuItem = addDocumentToMenuEntry(recentDocs.get(i), i);
                      menu.add(menuItem);
          
                      menuItem.addActionListener(e -> {
          Severity: Major
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 1 other location - About 1 hr to fix
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 485..496

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

          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 (final IWidget widgetOnPage: widgetsOnPage) {
                          final String widgetName = widgetOnPage.getWidgetName();
                          // another widget of this name already exists, and this is the first
                          // we've heard of it
                          if (name.equals(widgetName) && !widgetOnPage.equals(widget)) {
          Severity: Minor
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 1 other location - About 1 hr to fix
          src/main/java/org/pdf/forms/widgets/utils/WidgetParser.java on lines 218..230

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

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

                  if (windowConfiguration.isLibraryVisible()) {
                      desk.split(designerPanel, libraryPanel, DockingConstants.SPLIT_RIGHT);
                      desk.setDockableWidth(libraryPanel, .32);
                      dockableNames.put("Library", libraryPanel);
                  }
          Severity: Minor
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 2 other locations - About 30 mins to fix
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 518..522
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 524..528

          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

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

                  if (windowConfiguration.isHierarchyVisible()) {
                      desk.split(designerPanel, hierarchyPanel, DockingConstants.SPLIT_LEFT);
                      desk.setDockableWidth(hierarchyPanel, .15);
                      dockableNames.put("Hierarchy", hierarchyPanel);
                  }
          Severity: Minor
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 2 other locations - About 30 mins to fix
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 518..522
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 530..534

          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

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

                  if (windowConfiguration.isScriptEditorVisible()) {
                      desk.split(designerPanel, javaScriptEditor, DockingConstants.SPLIT_TOP);
                      desk.setDockableHeight(javaScriptEditor, .22);
                      dockableNames.put("Script Editor", javaScriptEditor);
                  }
          Severity: Minor
          Found in src/main/java/org/pdf/forms/gui/VLFrame.java and 2 other locations - About 30 mins to fix
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 524..528
          src/main/java/org/pdf/forms/gui/VLFrame.java on lines 530..534

          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

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.DockableState' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.DockableState;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Extra separation in import group before 'com.vlsolutions.swing.docking.Dockable'
          Open

          import com.vlsolutions.swing.docking.Dockable;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.DockingConstants' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.DockingConstants;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.toolbars.ToolBarContainer' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.toolbars.ToolBarContainer;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Using the '.*' form of import should be avoided - java.awt.*.
          Open

          import java.awt.*;

          Checks that there are no import statements that use the * notation.

          Rationale: Importing all classes from a package or staticmembers from a class leads to tight coupling between packagesor classes and might lead to problems when a new version of alibrary introduces name clashes.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.event.DockingActionListener' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.event.DockingActionListener;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 103).
          Open

                  designerPanel = new DesignerPanel(designer, horizontalRuler, verticalRuler, this, fontHandler);

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Extra separation in import group before 'javax.swing.*'
          Open

          import javax.swing.*;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 111).
          Open

                  final MenubarCreator menubarCreator = new MenubarCreator(menuConfiguration.getMenu(), commandListener);

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Abbreviation in name 'VLFrame' must contain no more than '2' consecutive capital letters.
          Open

          public class VLFrame extends JFrame implements IMainFrame {

          Validates abbreviations (consecutive capital letters) length in identifier name,it also allows to enforce camel case naming. Please read more atGoogle Style Guideto get to know how to avoid long abbreviations in names.

          allowedAbbreviationLength specifies how many consecutive capital letters areallowed in the identifier.A value of 3 indicates that up to 4 consecutive capital letters are allowed,one after the other, before a violation is printed. The identifier 'MyTEST' would beallowed, but 'MyTESTS' would not be.A value of 0 indicates that only 1 consecutive capital letter is allowed. Thisis what should be used to enforce strict camel casing. The identifier 'MyTest' wouldbe allowed, but 'MyTEst' would not be.

          ignoreFinal, ignoreStatic, and ignoreStaticFinalcontrol whether variables with the respective modifiers are to be ignored.Note that a variable that is both static and final will always be considered underignoreStaticFinal only, regardless of the values of ignoreFinaland ignoreStatic. So for example if ignoreStatic is true butignoreStaticFinal is false, then static final variables will not be ignored.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 105).
          Open

                  final WindowConfiguration windowConfiguration = windowConfigurationFile.getWindowConfiguration();

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Using the '.*' form of import should be avoided - javax.swing.*.
          Open

          import javax.swing.*;

          Checks that there are no import statements that use the * notation.

          Rationale: Importing all classes from a package or staticmembers from a class leads to tight coupling between packagesor classes and might lead to problems when a new version of alibrary introduces name clashes.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.event.DockingActionCloseEvent' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.event.DockingActionCloseEvent;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.event.DockingActionEvent' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.event.DockingActionEvent;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 102).
          Open

                                      desk.addDockable(dockable, desk.getDockableState(dockable).getPosition());

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.Dockable' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.Dockable;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Extra separation in import group before 'org.pdf.forms.Configuration'
          Open

          import org.pdf.forms.Configuration;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 111).
          Open

                          new ImportPdfCommand(this, version, widgetFactory, designerPropertiesFile).importPDF(fileName);

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.toolbars.ToolBarPanel' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.toolbars.ToolBarPanel;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 107).
          Open

                  final ToolBarContainer toolbar = ToolBarContainer.createDefaultContainer(true, false, true, false);

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.docking.DockingDesktop' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.docking.DockingDesktop;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Wrong lexicographical order for 'com.vlsolutions.swing.toolbars.ToolBarConstraints' import. Should be before 'org.pdf.forms.widgets.utils.WidgetFactory'.
          Open

          import com.vlsolutions.swing.toolbars.ToolBarConstraints;

          Checks that the groups of import declarations appear in the order specifiedby the user. If there is an import but its group is not specified in theconfiguration such an import should be placed at the end of the import list.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Parameter name 'i' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
          Open

                      final int i) {

          Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

          To validate catch parameters please useCatchParameterName.

          To validate lambda parameters please useLambdaParameterName.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Line is longer than 100 characters (found 110).
          Open

                              menuConfigurationFile.setDockableVisible(getNameFromDockable(dockable).orElse(""), false);

          Checks for long lines.

          Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Abbreviation in name 'addRecentPDFFilesAsMenuEntries' must contain no more than '2' consecutive capital letters.
          Open

              private void addRecentPDFFilesAsMenuEntries(final JMenu menu) {

          Validates abbreviations (consecutive capital letters) length in identifier name,it also allows to enforce camel case naming. Please read more atGoogle Style Guideto get to know how to avoid long abbreviations in names.

          allowedAbbreviationLength specifies how many consecutive capital letters areallowed in the identifier.A value of 3 indicates that up to 4 consecutive capital letters are allowed,one after the other, before a violation is printed. The identifier 'MyTEST' would beallowed, but 'MyTESTS' would not be.A value of 0 indicates that only 1 consecutive capital letter is allowed. Thisis what should be used to enforce strict camel casing. The identifier 'MyTest' wouldbe allowed, but 'MyTEst' would not be.

          ignoreFinal, ignoreStatic, and ignoreStaticFinalcontrol whether variables with the respective modifiers are to be ignored.Note that a variable that is both static and final will always be considered underignoreStaticFinal only, regardless of the values of ignoreFinaland ignoreStatic. So for example if ignoreStatic is true butignoreStaticFinal is false, then static final variables will not be ignored.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          Parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'.
          Open

                  public void windowClosing(final WindowEvent e) {

          Checks that method parameter names conform to a specified pattern.By using accessModifiers property it is possibleto specify different formats for methods at different visibility levels.

          To validate catch parameters please useCatchParameterName.

          To validate lambda parameters please useLambdaParameterName.

          This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

          There are no issues that match your filters.

          Category
          Status