BigstickCarpet/swagger-express-middleware

View on GitHub
lib/mock/query-resource.js

Summary

Maintainability
A
1 hr
Test Coverage

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

function queryResource (req, res, next, dataStore) {
  let resource = new Resource(req.path);

  dataStore.get(resource, (err, result) => {
    if (err) {
Severity: Minor
Found in lib/mock/query-resource.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status