ConnectOut-sdp/sdp2023

View on GitHub
app/src/main/java/com/sdpteam/connectout/post/model/PostFirebaseDataSource.java

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Method fetchPost has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    @Override
    public CompletableFuture<Result<Post>> fetchPost(String postId) {
        final CompletableFuture<Result<Post>> result = new CompletableFuture<>();
        final CompletableFuture<Result<Post>> subStep = new CompletableFuture<>();

    Method fetchAllPosts has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Invalid

        @Override
        public CompletableFuture<Result<List<Post>>> fetchAllPosts(String userId) {
            return eventIdsUserCanAccess(userId).thenCompose(allEventsUserCanAccess -> {
                final CompletableFuture<Result<List<Post>>> result = new CompletableFuture<>();
    
    

      There are no issues that match your filters.

      Category
      Status