mysamai/mysam-core

View on GitHub

Showing 2 of 4 total issues

Function populate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function populate (target, options) {
options = Object.assign({}, options);
 
if (!options.service) {
throw new Error('You need to provide a service');
Severity: Minor
Found in lib/hooks/populate.js - About 1 hr to fix

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

    module.exports = function () {
    const app = this;
     
    app.use('/classify', new Classifier());
     
     
    Severity: Minor
    Found in lib/services/classify/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language