redbrick/static-site

View on GitHub
lib/getLatestPosts.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getLatestPosts has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getLatestPosts = (options) => {
  return new Promise((resolve, reject) => {
    options.offset = options.offset || 0;
    options.limit = options.limit || 10;
    options.include = options.include || [];
Severity: Minor
Found in lib/getLatestPosts.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status