RHeactorJS/web-app

View on GitHub
js/controller/login.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function LoginController has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function LoginController (app) {
  app
    .config(['$stateProvider', ($stateProvider) => {
      $stateProvider
        .state('login', {
Severity: Major
Found in js/controller/login.js - About 2 hrs to fix

    Function controller has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                (LoginModel, LoginService, UserService, ClientStorageService, $state, $window, $stateParams, $location) => {
                  let vm = GenericController(
                    LoginModel,
                    {
                      onSubmit: data => new LoginModel(new EmailValue(data.email), data.password),
    Severity: Minor
    Found in js/controller/login.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status