drinkingvideogames/mixer

View on GitHub
src/sagas/user.js

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Function makeUserSagas has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function makeUserSagas (app) {
function performLogin (app, action) {
if (!action.payload.strategy) {
action.payload.strategy = 'local'
}
Severity: Major
Found in src/sagas/user.js - About 2 hrs to fix

    Function makeUserSagas has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function makeUserSagas (app) {
    function performLogin (app, action) {
    if (!action.payload.strategy) {
    action.payload.strategy = 'local'
    }
    Severity: Minor
    Found in src/sagas/user.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status