bbottema/js-epub-maker

View on GitHub
src/js-epub-maker.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function EpubMaker has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var EpubMaker = function () {
        var self = this;
        var epubConfig = { toc: [], landmarks: [], sections: [], stylesheet: {}, additionalFiles: [], options: {} };

        this.withUuid = function(uuid) {
Severity: Major
Found in src/js-epub-maker.js - About 3 hrs to fix

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

        EpubMaker.Section = function(epubType, id, content, includeInToc, includeInLandmarks) {
            var self = this;
            this.epubType = epubType;
            this.id = id;
            this.content = content;
    Severity: Minor
    Found in src/js-epub-maker.js - About 1 hr to fix

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

          EpubMaker.Section = function(epubType, id, content, includeInToc, includeInLandmarks) {
      Severity: Minor
      Found in src/js-epub-maker.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status