sanjorgek/sails-hook-routes-permissions

View on GitHub
routesPermissions/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

module.exports = function (sails) {
  function findRoute (route) {
    return function(routePattern) {
      var routeMatcher = new RegExp(routePattern.replace(/:[^\s/]+/g, "([\\w-]+)"));
      var match = route.match(routeMatcher);
Severity: Minor
Found in routesPermissions/index.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status