BookStackApp/BookStack

View on GitHub
resources/js/components/image-manager.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function setupListeners has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    setupListeners() {
        // Filter tab click
        onSelect(this.filterTabs, e => {
            this.resetAll();
            this.filter = e.target.dataset.filter;
Severity: Major
Found in resources/js/components/image-manager.js - About 2 hrs to fix

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

        setup() {
            // Options
            this.uploadedTo = this.$opts.uploadedTo;
    
            // Element References
    Severity: Minor
    Found in resources/js/components/image-manager.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status