grommet/grommet-ferret

View on GitHub
src/js/actions/session.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function sessionLogin has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function sessionLogin (host, userName, password) {
  let token;
  return function (dispatch) {
    dispatch({ type: SESSION_LOGIN, host: host, userName: userName });
    configure({ host: host });
Severity: Minor
Found in src/js/actions/session.js - About 1 hr to fix

    Function sessionLoginSuccess has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export function sessionLoginSuccess (host, userName, token, role,
      needPasswordReset) {
    Severity: Minor
    Found in src/js/actions/session.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status