ilscipio/scipio-erp

View on GitHub
applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java

Summary

Maintainability
F
3 days
Test Coverage

SetupWorker has 75 methods (exceeds 20 allowed). Consider refactoring.
Open

@SuppressWarnings("serial")
public abstract class SetupWorker implements Serializable {

    private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());

Severity: Major
Found in applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java - About 1 day to fix

    RequestSetupWorker has 53 methods (exceeds 20 allowed). Consider refactoring.
    Open

        protected static class RequestSetupWorker extends SetupWorker {
    
            private StaticSetupWorker staticWorker;
            private HttpServletRequest request;
            private Delegator delegator = null;
    Severity: Major
    Found in applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java - About 7 hrs to fix

      StaticSetupWorker has 34 methods (exceeds 20 allowed). Consider refactoring.
      Open

          protected static class StaticSetupWorker extends SetupWorker {
              private Map<String, StepState> stepStateMap = new HashMap<>();
              private String autoDetStep = null;
              /**
               * NON-validated parameters.
      Severity: Minor
      Found in applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java - About 4 hrs to fix

        CommonStepState has 21 methods (exceeds 20 allowed). Consider refactoring.
        Open

                protected abstract class CommonStepState extends StepState {
        
                    protected final StaticStepState staticState;
        
                    public CommonStepState(StaticStepState staticState) { this.staticState = staticState; }
        Severity: Minor
        Found in applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java - About 2 hrs to fix

          Avoid too many return statements within this method.
          Open

                      return determineStepAuto(true);
          Severity: Major
          Found in applications/setup/src/com/ilscipio/scipio/setup/SetupWorker.java - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status