notduncansmith/summit

View on GitHub
lib/collection/collection_routes.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function makeMethodRoutes has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeMethodRoutes (collection) {
  var router = collection.router;

  for (var k in collection.methods) {
    if (k.indexOf('$GET') === k.length - 4) {
Severity: Minor
Found in lib/collection/collection_routes.js - About 2 hrs to fix

    Function makeApiRoutes has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function makeApiRoutes (collection) {
      // Get a router
      var router = collection.router;
      var name = inflection.dasherize(collection.name.toLowerCase());
    
    
    Severity: Minor
    Found in lib/collection/collection_routes.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status