EmergentOrganization/cell-rpg

View on GitHub
core/src/io/github/emergentorganization/cellrpg/tools/mapeditor/ui/EditorWindow.java

Summary

Maintainability
D
1 day
Test Coverage

Method initMenuBar has 125 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initMenuBar(final World world) {
        MenuBar menuBar = new MenuBar();
        final VisTable table = (VisTable) menuBar.getTable();
        table.setWidth(MENU_BAR_WIDTH);
        table.setHeight(MENU_BAR_HEIGHT);

    File EditorWindow.java has 335 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package io.github.emergentorganization.cellrpg.tools.mapeditor.ui;
    
    import com.artemis.Entity;
    import com.artemis.World;
    import com.badlogic.gdx.Gdx;

      EditorWindow has 25 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class EditorWindow {
          private static final float LEFT_PANEL_HEIGHT = Gdx.graphics.getHeight();
          private static final float LEFT_PANEL_WIDTH = Gdx.graphics.getWidth() / 8f;
          private static final float MENU_BAR_HEIGHT = Gdx.graphics.getHeight() / 19f;
          private static final float MENU_BAR_WIDTH = Gdx.graphics.getWidth() - LEFT_PANEL_WIDTH;

        Method initLoadWindow has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void initLoadWindow() {
                final float PADDING = 2f;
        
                loadWindow.setWidth(SAVE_WINDOW_WIDTH);
                loadWindow.setHeight(SAVE_WINDOW_HEIGHT);

          Method initSaveWindow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private void initSaveWindow(final World world) {
                  final float PADDING = 2f;
          
                  saveWindow.setWidth(SAVE_WINDOW_WIDTH);
                  saveWindow.setHeight(SAVE_WINDOW_HEIGHT);

            There are no issues that match your filters.

            Category
            Status