r4fterman/pdf.forms

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

Summary

Maintainability
A
1 hr
Test Coverage
F
58%

Method createVerticalGroup has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

            final JLabel eventBoxLabel,
            final JLabel scriptLanguageLabel,
            final JLabel runAtLabel,
            final JSeparator separator,
            final JButton saveButton,
Severity: Minor
Found in src/main/java/org/pdf/forms/gui/editor/JavaScriptEditorPanel.java - About 45 mins to fix

    Method createHorizontalGroup has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                final JLabel eventBoxLabel,
                final JLabel scriptLanguageLabel,
                final JLabel runAtLabel,
                final JSeparator separator,
                final JButton saveButton,
    Severity: Minor
    Found in src/main/java/org/pdf/forms/gui/editor/JavaScriptEditorPanel.java - About 45 mins to fix

      Wrong lexicographical order for 'java.awt.event.ActionEvent' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.awt.event.ActionEvent;

      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.DockKey' import. Should be before 'org.pdf.forms.widgets.IWidget'.
      Open

      import com.vlsolutions.swing.docking.DockKey;

      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 130).
      Open

                              .add(createHorizontalGroup(eventBoxLabel, scriptLanguageLabel, runAtLabel, separator, saveButton, layout))

      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 'java.util.LinkedHashMap' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.util.LinkedHashMap;

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

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

      import com.vlsolutions.swing.docking.DockKey;

      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 'java.util.Optional' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.util.Optional;

      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.jdesktop.layout.GroupLayout'
      Open

      import org.jdesktop.layout.GroupLayout;

      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 'java.util.Set' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.util.Set;

      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 - 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 'javax.swing.border.BevelBorder' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import javax.swing.border.BevelBorder;

      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

                      eventsAndValues.put(entry.getKey(), "mixed scripts in this event for the selected components");

      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.

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

                                      .add(createVerticalGroup(eventBoxLabel, scriptLanguageLabel, runAtLabel, separator, saveButton, layout))

      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 'java.awt.*' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.awt.*;

      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 'java.awt.*'
      Open

      import java.awt.*;

      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 110).
      Open

                  final Optional<JavaScriptContent> javaScriptContent = Optional.ofNullable(widget.getJavaScript());

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

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

                  final String existingValue = eventsAndValues.getOrDefault(entry.getKey(), entry.getValue());

      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 'java.util.Map' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import java.util.Map;

      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 'org.jdesktop.layout.GroupLayout' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      Open

      import org.jdesktop.layout.GroupLayout;

      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.Dockable' import. Should be before 'org.pdf.forms.widgets.IWidget'.
      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 'javax.swing.*' import. Should be before 'org.jdesktop.layout.LayoutStyle.RELATED'.
      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.

      There are no issues that match your filters.

      Category
      Status