host-me-app/host-me

View on GitHub
app/src/main/java/ch/epfl/sweng/hostme/fragments/StreetViewFragment.java

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

Showing 2 of 2 total issues

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

public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.street_view, container, false);
 
Bundle bundle = this.getArguments();
if (bundle != null) {

    Method onCreateView has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View root = inflater.inflate(R.layout.street_view, container, false);
     
    Bundle bundle = this.getArguments();
    if (bundle != null) {
    Severity: Minor
    Found in app/src/main/java/ch/epfl/sweng/hostme/fragments/StreetViewFragment.java - About 25 mins to fix

    There are no issues that match your filters.

    Category
    Status