lacymorrow/movie-trailer

View on GitHub
index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function movieTrailer has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async function movieTrailer( movie, options, cb, legacy ) {

        /* Fetch movie trailers */

        // Massage inputs
Severity: Minor
Found in index.js - About 1 hr to fix

    Function getTrailer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getTrailer( movieId, options ) {
    
            const path = options && options.videoType === 'tv' ? '/3/tv/' : '/3/movie/'
    
            /* Fetch single or multiple movie trailers via the TMDB API */
    Severity: Minor
    Found in index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status