makeomatic/ms-files

View on GitHub
src/custom/cappasity-upload-post.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function uploadPost has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function uploadPost(props) {
  const { amqp, config } = this;
  const { getMetadata, audience, exportAudience } = config.users;

  return Promise
Severity: Minor
Found in src/custom/cappasity-upload-post.js - About 1 hr to fix

    Function verifyUploadData has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        .try(function verifyUploadData() {
          if (!props[FILES_EXPORT_FIELD]) {
            return null;
          }
    
    
    Severity: Minor
    Found in src/custom/cappasity-upload-post.js - About 1 hr to fix

      Parsing error: The keyword 'const' is reserved
      Open

      const Promise = require('bluebird');
      Severity: Minor
      Found in src/custom/cappasity-upload-post.js by eslint

      For more information visit Source: http://eslint.org/docs/rules/

      There are no issues that match your filters.

      Category
      Status