lukasmartinelli/astah-converter

View on GitHub
api.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function(app, astah, s3, projectDir, exportDir) {
    function findFiles(hash, absUrl) {
        return fs.readdirSync(path.join(exportDir, hash))
            .filter(function(filename) {
                return path.extname(filename) !== '.bak';
Severity: Major
Found in api.js - About 3 hrs to fix

    Function exports has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    module.exports = function(app, astah, s3, projectDir, exportDir) {
    Severity: Minor
    Found in api.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status