CrazySquirrel/Rambler-Landing-Page

View on GitHub
src/ts/client/global.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function initForm has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private initForm() {
    let form:any = window.document.getElementById("cv-form");
    let input:any = form.querySelector(".form__file-input");
    let label:any = form.querySelector(".form__file-label");

Severity: Major
Found in src/ts/client/global.ts - About 2 hrs to fix

Function initMenuItems has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private initMenuItems() {
    let menuItems:any = window.document.querySelectorAll(".menu__item a");

    let menuItemsHandler = (e, menuItem) => {
      e.preventDefault();
Severity: Minor
Found in src/ts/client/global.ts - About 1 hr to fix

Function initLeadButtons has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private initLeadButtons() {
    let leadButtons:any = window.document.querySelectorAll(".button--lead");

    let leadButtonsHandler = (e, leadButton) => {
      e.preventDefault();
Severity: Minor
Found in src/ts/client/global.ts - About 1 hr to fix

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

  private initLogotype() {
    let logotype:any = window.document.querySelector(".logotype--header");

    let logotypeHandler = (e, logotype) => {
      e.preventDefault();
Severity: Minor
Found in src/ts/client/global.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status