kiwitcms/Kiwi

View on GitHub
tcms/static/js/jsonrpc.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export function jsonRPC (rpcMethod, rpcParams, callback, isSync) {
    // .filter() args are passed as dictionary but other args,
    // e.g. for .add_tag() are passed as a list of positional values
    if (!Array.isArray(rpcParams)) {
        rpcParams = [rpcParams]
Severity: Minor
Found in tcms/static/js/jsonrpc.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status