18F/cg-dashboard

View on GitHub
static_src/components/users.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function stateSetter has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function stateSetter() {
  const currentOrgGuid = OrgStore.currentOrgGuid;
  const currentSpaceGuid = SpaceStore.currentSpaceGuid;
  const currentType = UserStore.currentlyViewedType;
  const currentUser = UserStore.currentUser;
Severity: Minor
Found in static_src/components/users.jsx - About 1 hr to fix

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

      render() {
        let removeHandler;
    
        if (this.isOrganization) {
          removeHandler = this.handleRemoveUser;
    Severity: Minor
    Found in static_src/components/users.jsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status