2018-SWENG/2018-SWENG-Radius

View on GitHub
app/src/main/java/ch/epfl/sweng/radius/profile/ProfileFragment.java

Summary

Maintainability
B
6 hrs
Test Coverage

ProfileFragment has 26 methods (exceeds 20 allowed). Consider refactoring.
Confirmed

public class ProfileFragment extends Fragment implements DBUserObserver {
    private final int MAX_SIZE_USERNAME = 20;
    private final int MAX_SIZE_STATUS = 50;
    private final int MAX_SIZE_INTERESTS = 100;
    private static int userRadius;
Severity: Minor
Found in app/src/main/java/ch/epfl/sweng/radius/profile/ProfileFragment.java - About 3 hrs to fix

    File ProfileFragment.java has 262 lines of code (exceeds 250 allowed). Consider refactoring.
    Confirmed

    package ch.epfl.sweng.radius.profile;
    
    import android.app.AlertDialog;
    import android.content.DialogInterface;
    import android.content.Intent;
    Severity: Minor
    Found in app/src/main/java/ch/epfl/sweng/radius/profile/ProfileFragment.java - About 2 hrs to fix

      Method onCreateView has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                   Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              View view = inflater.inflate(R.layout.fragment_profile, container, false);
      Severity: Minor
      Found in app/src/main/java/ch/epfl/sweng/radius/profile/ProfileFragment.java - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status