TestRoots/watchdog

View on GitHub
eclipse/plugin/src/nl/tudelft/watchdog/eclipse/ui/wizards/ProjectRegistrationInputPanel.java

Summary

Maintainability
A
2 hrs
Test Coverage

Method createSlider has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createSlider(Composite composite) {
        UIUtils.createLabel("", composite);
        UIUtils.createLabel(Project.SLIDER_QUESTION, composite);

        this.productionPercentageStart = ThreadLocalRandom.current().nextInt(0, 100 + 1);

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

        @Override
        boolean registerAction() {
            if (!sliderTouched) {
                // Show warning and add background color to slider to make it stand out
                MessageDialog.openWarning(getShell(), "Warning", Project.SLIDER_WARNING);

      There are no issues that match your filters.

      Category
      Status