reliqarts/laravel-docweaver

View on GitHub
resources/js/modules/core.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function initSidebar has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    initSidebar() {
        let _self = this,
            $sidebar = this.$wrapper.find('.docweaver-sidebar'),
            $sidebarPopper = $sidebar.find('.docweaver-sidebar-popper'),
            $activeLink = $sidebar.find('li a[href="' + decodeURIComponent(window.location.pathname) + '"]');
Severity: Minor
Found in resources/js/modules/core.js - About 1 hr to fix

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

        initBlockquotes() {
            // It's nice to just write in Markdown, so this will adjust
            // our blockquote style to fill in the icon flag and label
            this.$wrapper.find('.docs blockquote p:first-child').each(function () {
                let str = $(this).html(),
    Severity: Minor
    Found in resources/js/modules/core.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status