Skip to content

P1B: Refactor (public/src/client/login.js:9): high complexity in init() #57

@haolinwa

Description

@haolinwa

Uniqueness check

  • I have searched open issues and confirmed this file + smell is not already taken.

Full path to the JavaScript file

public/src/client/login.js

Function(s)/scope targeted

init()

Relevant Qlty output

public/src/client/login.js
    Function with high complexity (count = 13): init

           9    Login.init = function () {
          10            const errorEl = $('#login-error-notify');
          11            const submitEl = $('#login');
          12            const formEl = $('#login-form');
          13  
          14            submitEl.on('click', async function (e) {
              [hid 83 additional lines]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions