app/src/main/java/ch/epfl/culturequest/social/ScanBadge.java
Method fromString
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static City fromString(String s) {
switch (s.toUpperCase()) {
case "BARCELONA":
return BARCELONA;
case "BERLIN":
Method getBadge
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public int getBadge() {
switch (this) {
case BARCELONA:
return R.drawable.barcelona;
case BERLIN: