CrazySquirrel/Rambler-Landing-Page

View on GitHub

Showing 5 of 8 total issues

Function constructor has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor(shareButtons) {
    let buttons = shareButtons.querySelectorAll(".share-buttons__items");
    for (let button of buttons) {
      button.addEventListener("click", (e) => {
        let type = button.getAttribute("data-type");
Severity: Major
Found in src/ts/client/Share.ts - About 2 hrs to fix

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
Severity
Category
Status
Source
Language