pinclub/pinclub

View on GitHub
middlewares/limit.js

Summary

Maintainability
A
1 hr
Test Coverage

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

var makePerDayLimiter = function (identityName, identityFn) {
  return function (name, limitCount, options) {
    /*
    options.showJson = true 表示调用来自API并返回结构化数据;否则表示调用来自前段并渲染错误页面
    */
Severity: Minor
Found in middlewares/limit.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status