woothemes/woocommerce

View on GitHub
assets/js/admin/wc-orders.js

Summary

Maintainability
A
1 hr
Test Coverage

Function onPreview has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    WCOrdersTable.prototype.onPreview = function() {
        var $previewButton    = $( this ),
            $order_id         = $previewButton.data( 'order-id' );

        if ( $previewButton.data( 'order-data' ) ) {
Severity: Minor
Found in assets/js/admin/wc-orders.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status