Fiszcz/OLX-flats-notificator

View on GitHub
src/Advertisement/Advertisement.ts

Summary

Maintainability
A
1 hr
Test Coverage

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        if (this.description === undefined)
            console.warn('Cannot find description of open advertisement: ' + this.title + '\nWith address: ' + this.href + '\n');
Severity: Minor
Found in src/Advertisement/Advertisement.ts and 1 other location - About 35 mins to fix
src/Advertisement/Advertisement.ts on lines 85..86

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        if (this._location === undefined)
            console.warn('Cannot find location of flat in open advertisement: ' + this.title + '\nWith address: ' + this.href + '\n');
Severity: Minor
Found in src/Advertisement/Advertisement.ts and 1 other location - About 35 mins to fix
src/Advertisement/Advertisement.ts on lines 83..84

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Expected linebreak to be 'CRLF'
Open

import { websiteSelectors } from '../../config/websiteSelectors';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private readonly maxPriceWithRent?: number;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private _price?: number;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private _location?: string;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.maxPriceWithRent = maxPriceWithRent;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.error('Cannot find time of advertisement!');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private getLocationFromOtodomAdvertisement = async () => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            await this.advertisementPage.screenshot({ path: this.screenshotPath, fullPage: true });
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.maxRentCosts = maxRent;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            return undefined;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            await this.getLocationFromOLXAdvertisement();
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const rentCostsString = await getTextContent(this.advertisementPage!, selectors.rentCosts);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            else this._rentCosts = rentCosts;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const locationOfFlat = findLocationOfFlatInDescription(this.title + ', ' + this.description);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public time: string;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public title: string = '';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public isPerfectLocated: boolean = false;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public get rentCosts() {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.title = title;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (!innerHTMLOfTimeElement) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private isWorseAdvertisement = (): boolean => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.maxPriceWithRent && this.price && this.price + (this.rentCosts || 0) > this.maxPriceWithRent) return true;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this._location = basicLocationOfFlat || '' + locationOfFlat || '' || undefined;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

import { click, getAttributeValue, getTextContent, openPageOnURL } from '../utils/puppeteer';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public href: string;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private _rentCosts?: number;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.href.startsWith('https://www.otodom.pl')) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        } else {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this._location && this.transportInformation && this.transportInformation.length === 0)
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public takeScreenshot = async () => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                '../screenshots/' +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public closeAdvertisement = async () => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public get price() {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public get location() {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.time = time;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const timePart = innerHTMLOfTimeElement.split(' ')[1];
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        let selectors;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            selectors = websiteSelectors.olx;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.description === undefined)
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.warn('Cannot calculate of transport connection for location: ' + this._location);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (rentCostsString) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const price = await getTextContent(this.advertisementPage!, selectors.price);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.advertisementPage) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

import { checkTransportTime, TransportInformation } from '../TransportConnection/TransportConnection';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public description?: string;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public screenshotPath?: string;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const innerHTMLOfTimeElement = await getTextContent(advertisementElement, websiteSelectors.advertisementTimePublication);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        await this.getDataFromAdvertisement(selectors);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.isPerfectLocated = isPerfectLocation(`${this.title}, ${this.description}`);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this._location === undefined)
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private getDataFromAdvertisement = async (selectors: Record<'advertisementDescription' | 'rentCosts' | 'price', string>) => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            const rentCosts = Number(rentCostsString.replace(/\D/g, ''));
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                '_' +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (!advertisementHref) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            return undefined;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const title = await getTextContent(advertisementElement, websiteSelectors.advertisementTitle);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            await this.getLocationFromOtodomAdvertisement();
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            this.transportInformation = await checkTransportTime(this._location);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private getLocationFromOLXAdvertisement = async () => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.warn('Cannot find description of open advertisement: ' + this.title + '\nWith address: ' + this.href + '\n');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.maxRentCosts !== undefined && this.rentCosts && this.rentCosts > this.maxRentCosts) return true;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        return false;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                this.time.replace(':', '-') +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

import { Browser, ElementHandle, Page } from 'puppeteer';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private advertisementPage?: Page;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

export class Advertisement {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        return this._rentCosts;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                '_' +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.error('Cannot find advertisement href!');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.advertisementPage = await openPageOnURL(browser, this.href);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            this.transportInformation &&
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.description = await getTextContent(this.advertisementPage!, selectors.advertisementDescription);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this._location = await getTextContent(this.advertisementPage!, websiteSelectors.otoDom.locationOfFlat);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                '.png';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            return this.screenshotPath;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

}
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public transportInformation?: TransportInformation[];
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public isWorse?: boolean;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            selectors = websiteSelectors.otoDom;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        await click(this.advertisementPage, selectors.closeCookie);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.isWorse = this.isWorseAdvertisement();
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.log('Screenshot has been taken - file: ' + this.screenshotPath + ' from: ' + this.href);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        return this._location;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        this.href = href;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        return new Advertisement(advertisementHref, timePart, title!);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const advertisementHref = await getAttributeValue(advertisementElement, websiteSelectors.advertisementLink, 'href');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this._location) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    };
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (price) this._price = Number(price.replace(/\D/g, ''));
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        const basicLocationOfFlat = await getTextContent(this.advertisementPage!, websiteSelectors.olx.basicLocationOfFlat);
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        } else console.log('Cannot take screenshot');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (this.advertisementPage) await this.advertisementPage.close();
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    constructor(href: string, time: string, title: string, maxRent?: number, maxPriceWithRent?: number) {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    static build = async (advertisementElement: ElementHandle) => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        if (
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            this.transportInformation.some(transportInformation => transportInformation.hasSatisfiedTime === false)
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            return true;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            if (rentCosts === 1) this._rentCosts = 0;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            this.screenshotPath =
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                (Math.floor(Math.random() * 100) + 1).toString() +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

import { findLocationOfFlatInDescription, isPerfectLocation } from '../LocationFinder/LocationFinder';
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

            console.warn('Cannot find location of flat in open advertisement: ' + this.title + '\nWith address: ' + this.href + '\n');
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    private readonly maxRentCosts?: number;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        return this._price;
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

    public openAdvertisement = async (browser: Browser) => {
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        }
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open


Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

        )
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

Expected linebreak to be 'CRLF'
Open

                this.title +
Severity: Minor
Found in src/Advertisement/Advertisement.ts by tslint

Rule: linebreak-style

Enforces a consistent linebreak style.

Notes
  • Has Fix

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}

For more information see this page.

There are no issues that match your filters.

Category
Status