host-me-app/host-me

View on GitHub
app/src/main/java/ch/epfl/sweng/hostme/account/Profile.java

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Showing 2 of 2 total issues

Method equals has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Profile profile = (Profile) o;
Severity: Minor
Found in app/src/main/java/ch/epfl/sweng/hostme/account/Profile.java - About 45 mins to fix

Similar blocks of code found in 3 locations. Consider refactoring.
Open

public Profile(String firstName, String lastName, String email, String gender, String school) {
this.firstName = firstName;
this.lastName = lastName;
this.gender = gender;
this.email = email;
Severity: Major
Found in app/src/main/java/ch/epfl/sweng/hostme/account/Profile.java and 2 other locations - About 50 mins to fix
app/src/main/java/ch/epfl/sweng/hostme/messages/FcmNotificationsSender.java on lines 27..33
app/src/main/java/ch/epfl/sweng/hostme/users/User.java on lines 11..17
Category
Status