jeresig/pharos-images

View on GitHub
logic/sitemaps.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function exports has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(app) {
    const Artwork = models("Artwork");

    return {
        index(req, res) {
Severity: Major
Found in logic/sitemaps.js - About 2 hrs to fix

    Function search has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            search(req, res) {
                // Query for the artworks in Elasticsearch
                Artwork.search({
                    bool: {
                        must: [
    Severity: Minor
    Found in logic/sitemaps.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status