Nick9500/ministocks

View on GitHub
src/main/java/nitezh/ministock/DialogTools.java

Summary

Maintainability
B
6 hrs
Test Coverage

Method alertWithCallback has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void alertWithCallback(
            Context context,
            String title,
            String body,
            String positiveButtonText,
Severity: Minor
Found in src/main/java/nitezh/ministock/DialogTools.java - About 1 hr to fix

    Method inputWithCallback has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static void inputWithCallback(Context context, String title, String body,
                                             String positiveButtonText, String negativeButtonText,
                                             String defaultInputText,
                                             final InputAlertCallable callable) {
            // Create dialog
    Severity: Minor
    Found in src/main/java/nitezh/ministock/DialogTools.java - About 1 hr to fix

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

          public static void choiceWithCallback(
                  Context context,
                  String title,
                  String negativeButtonText,
                  final CharSequence[] choices,
      Severity: Minor
      Found in src/main/java/nitezh/ministock/DialogTools.java - About 1 hr to fix

        Method inputWithCallback has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public static void inputWithCallback(Context context, String title, String body,
                                                 String positiveButtonText, String negativeButtonText,
                                                 String defaultInputText,
                                                 final InputAlertCallable callable) {
        Severity: Major
        Found in src/main/java/nitezh/ministock/DialogTools.java - About 50 mins to fix

          Method alertWithCallback has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                      Context context,
                      String title,
                      String body,
                      String positiveButtonText,
                      String negativeButtonText,
          Severity: Major
          Found in src/main/java/nitezh/ministock/DialogTools.java - About 50 mins to fix

            Method choiceWithCallback has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        Context context,
                        String title,
                        String negativeButtonText,
                        final CharSequence[] choices,
                        final InputAlertCallable callable
            Severity: Minor
            Found in src/main/java/nitezh/ministock/DialogTools.java - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status