CultureQuestORG/SDP2023

View on GitHub
app/src/main/java/ch/epfl/culturequest/social/ScanBadge.java

Summary

Maintainability
A
1 hr
Test Coverage
A
98%

Method fromString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static City fromString(String s) {
            switch (s.toUpperCase()) {
                case "BARCELONA":
                    return BARCELONA;
                case "BERLIN":
Severity: Minor
Found in app/src/main/java/ch/epfl/culturequest/social/ScanBadge.java - About 1 hr to fix

    Method getBadge has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

            public int getBadge() {
                switch (this) {
                    case BARCELONA:
                        return R.drawable.barcelona;
                    case BERLIN:
    Severity: Minor
    Found in app/src/main/java/ch/epfl/culturequest/social/ScanBadge.java - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status