CrazySquirrel/Rambler-Landing-Page

View on GitHub

Showing 8 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

debug Regular Expression Denial of Service
Open

        "debug": {
          "version": "2.2.0",
          "dependencies": {
            "ms": {
              "version": "0.7.1"
Severity: Minor
Found in npm-shrinkwrap.json by nodesecurity

Regular Expression Denial of Service

Overview:

The debug module is vulnerable to regular expression denial of service when untrusted user input is passed into the o formatter. It takes around 50k characters to block for 2 seconds making this a low severity issue.

Recommendation:

Upgrade to version 2.6.9 or greater if you are on the 2.6.x series or 3.1.0 or greater.

debug Regular Expression Denial of Service
Open

        "debug": {
          "version": "2.2.0",
          "dependencies": {
            "ms": {
              "version": "0.7.1"
Severity: Minor
Found in npm-shrinkwrap.json by nodesecurity

Regular Expression Denial of Service

Overview:

The debug module is vulnerable to regular expression denial of service when untrusted user input is passed into the o formatter. It takes around 50k characters to block for 2 seconds making this a low severity issue.

Recommendation:

Upgrade to version 2.6.9 or greater if you are on the 2.6.x series or 3.1.0 or greater.

Line length
Open

For work project should contain pm2 settings file __server.config.json__ with env variables:
Severity: Info
Found in README.md by markdownlint

MD013 - Line length

Tags: line_length

Aliases: line-length Parameters: linelength, codeblocks, tables (number; default 80, boolean; default true)

This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.

This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.

You also have the option to exclude this rule for code blocks and tables. To do this, set the code_blocks and/or tables parameters to false.

Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.

Severity
Category
Status
Source
Language