Fiszcz/OLX-flats-notificator

View on GitHub
src/OLXNotifier.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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

            if (this.shouldComposeIteration) {
                const title = `😃 Good advertisements - (${this.emailMessages.length} ads)`;
                this.emailService.sendEmails([composeEmailMessages([...this.emailMessages], title)]);
            } else {
                this.emailService.sendEmails([...this.emailMessages]);
Severity: Major
Found in src/OLXNotifier.ts and 1 other location - About 1 hr to fix
src/OLXNotifier.ts on lines 71..74

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 58.

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.isWorseAdvertisementsAcceptable && this.emailMessagesForWorseAdvertisements.length) {
            const title = `💩 Worse advertisements - (${this.emailMessagesForWorseAdvertisements.length} ads)`;
            this.emailService.sendEmails([composeEmailMessages([...this.emailMessagesForWorseAdvertisements], title)]);
        }
Severity: Major
Found in src/OLXNotifier.ts and 1 other location - About 1 hr to fix
src/OLXNotifier.ts on lines 77..82

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 58.

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

    emailAddress: string;
Severity: Minor
Found in src/OLXNotifier.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.emailService = new EmailService(appConfig);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.operationsLock = new AsyncLock();
Severity: Minor
Found in src/OLXNotifier.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

            for (const advertisement of await this.getNewAdvertisements()) {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.emailMessages.length) {
Severity: Minor
Found in src/OLXNotifier.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

            advertisementsTable.map(advertisementElement => {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 newAdvertisements;
Severity: Minor
Found in src/OLXNotifier.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('Open advertisement: ' + advertisement.title + '\nWith address: ' + advertisement.href + '\n\n');
Severity: Minor
Found in src/OLXNotifier.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

    composeIteration?: boolean;
Severity: Minor
Found in src/OLXNotifier.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 emailMessagesForWorseAdvertisements: EmailMessage[] = [];
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 pageAddress: string | undefined | null = this.filterUrl;
Severity: Minor
Found in src/OLXNotifier.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 newAdvertisements = [];
Severity: Minor
Found in src/OLXNotifier.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 advertisements = await this.getAdvertisementsFromPage(pageAddress);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 (advertisement.isWorse && this.isWorseAdvertisementsAcceptable === false) return;
Severity: Minor
Found in src/OLXNotifier.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 (advertisement.isWorse) this.emailMessagesForWorseAdvertisements.push(new EmailMessage(advertisement));
Severity: Minor
Found in src/OLXNotifier.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 delay from 'delay';
Severity: Minor
Found in src/OLXNotifier.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 shouldComposeIteration: boolean;
Severity: Minor
Found in src/OLXNotifier.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 advertisements = await this.getAdvertisementsFromPage(filterUrl);
Severity: Minor
Found in src/OLXNotifier.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.checkedAdvertisements.add(advertisement.href);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 getAdvertisementsFromPage = async (pageAddress: string) => {
Severity: Minor
Found in src/OLXNotifier.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

            newAdvertisements.push(...newAdvertisementsFromCurrentPage);
Severity: Minor
Found in src/OLXNotifier.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.emailMessages.push(new EmailMessage(advertisement));
Severity: Minor
Found in src/OLXNotifier.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 { composeEmailMessages } from './EmailMessage/composeEmailMessages';
Severity: Minor
Found in src/OLXNotifier.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 { getAttributeValue, getElements } from './utils/puppeteer';
Severity: Minor
Found in src/OLXNotifier.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

    emailPassword?: string;
Severity: Minor
Found in src/OLXNotifier.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 delay(1000);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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

    checkInterval: number;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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.emailService.sendEmails([composeEmailMessages([...this.emailMessagesForWorseAdvertisements], title)]);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 advertisement.takeScreenshot();
Severity: Minor
Found in src/OLXNotifier.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 browser: Browser;
Severity: Minor
Found in src/OLXNotifier.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 filterUrl: string;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 examineAdvertisements = async () => {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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.emailService.sendEmails([composeEmailMessages([...this.emailMessages], title)]);
Severity: Minor
Found in src/OLXNotifier.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 { websiteSelectors } from '../config/websiteSelectors';
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 emailService: EmailService;
Severity: Minor
Found in src/OLXNotifier.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.sendEmails();
Severity: Minor
Found in src/OLXNotifier.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.emailMessagesForWorseAdvertisements = [];
Severity: Minor
Found in src/OLXNotifier.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 sendEmails = () => {
Severity: Minor
Found in src/OLXNotifier.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

            ) as Advertisement[];
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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

    maxTransportTime: number;
Severity: Minor
Found in src/OLXNotifier.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.browser = browser;
Severity: Minor
Found in src/OLXNotifier.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.operationsLock.acquire('getting new advertisements', async () => {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.emailService.sendEmails([...this.emailMessages]);
Severity: Minor
Found in src/OLXNotifier.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 getNewAdvertisements = async (): Promise<Advertisement[]> => {
Severity: Minor
Found in src/OLXNotifier.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

            pageAddress = await getAttributeValue(this.browserPage, websiteSelectors.nextPage, 'href');
Severity: Minor
Found in src/OLXNotifier.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

    emailsReceiver: string;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 checkedAdvertisements: Set<string> = new Set();
Severity: Minor
Found in src/OLXNotifier.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.operationsLock.acquire('getting new advertisements', async () => {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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

                // artificial retarder to avoid detection by the OLX service
Severity: Minor
Found in src/OLXNotifier.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 = `💩 Worse advertisements - (${this.emailMessagesForWorseAdvertisements.length} ads)`;
Severity: Minor
Found in src/OLXNotifier.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.shouldComposeIteration) {
Severity: Minor
Found in src/OLXNotifier.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.browserPage.goto(pageAddress, { waitUntil: 'domcontentloaded' });
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 browserPage: Page;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.browserPage = browserPage;
Severity: Minor
Found in src/OLXNotifier.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.shouldComposeIteration = appConfig.composeIteration || false;
Severity: Minor
Found in src/OLXNotifier.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

            advertisements.forEach(advertisement => advertisement && this.checkedAdvertisements.add(advertisement.href));
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 interface Config {
Severity: Minor
Found in src/OLXNotifier.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

    emailService: string;
Severity: Minor
Found in src/OLXNotifier.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 isWorseAdvertisementsAcceptable: boolean;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.emailMessages = [];
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 Advertisement.build(advertisementElement);
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 advertisement.openAdvertisement(this.browser);
Severity: Minor
Found in src/OLXNotifier.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 { EmailService } from './EmailService/EmailService';
Severity: Minor
Found in src/OLXNotifier.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 { Advertisement } from './Advertisement/Advertisement';
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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.isWorseAdvertisementsAcceptable = appConfig.sendWorseAdvertisements || false;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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, Page } from 'puppeteer';
Severity: Minor
Found in src/OLXNotifier.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 emailMessages: EmailMessage[] = [];
Severity: Minor
Found in src/OLXNotifier.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(browser: Browser, browserPage: Page, filterUrl: string, appConfig: Config) {
Severity: Minor
Found in src/OLXNotifier.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.filterUrl = filterUrl;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 advertisementsTable = await getElements(this.browserPage, websiteSelectors.advertisements);
Severity: Minor
Found in src/OLXNotifier.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 (newAdvertisementsFromCurrentPage.length !== advertisements.length) break;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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/OLXNotifier.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 OLXNotifier {
Severity: Minor
Found in src/OLXNotifier.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 operationsLock: AsyncLock;
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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 advertisement.closeAdvertisement();
Severity: Minor
Found in src/OLXNotifier.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 Promise.all(
Severity: Minor
Found in src/OLXNotifier.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

                advertisement => advertisement && this.checkedAdvertisements.has(advertisement.href) === false,
Severity: Minor
Found in src/OLXNotifier.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 (!pageAddress) console.warn('Cannot find link to the next page of advertisements');
Severity: Minor
Found in src/OLXNotifier.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 examineAdvertisement = async (advertisement: Advertisement) => {
Severity: Minor
Found in src/OLXNotifier.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 = `😃 Good advertisements - (${this.emailMessages.length} ads)`;
Severity: Minor
Found in src/OLXNotifier.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 { EmailMessage } from './EmailMessage/EmailMessage';
Severity: Minor
Found in src/OLXNotifier.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 AsyncLock from 'async-lock';
Severity: Minor
Found in src/OLXNotifier.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

    sendWorseAdvertisements?: boolean;
Severity: Minor
Found in src/OLXNotifier.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.examineAdvertisement(advertisement);
Severity: Minor
Found in src/OLXNotifier.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.isWorseAdvertisementsAcceptable && this.emailMessagesForWorseAdvertisements.length) {
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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

        while (pageAddress) {
Severity: Minor
Found in src/OLXNotifier.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 newAdvertisementsFromCurrentPage = advertisements.filter(
Severity: Minor
Found in src/OLXNotifier.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

    // TODO: should we send advertisement, which has not found location ?
Severity: Minor
Found in src/OLXNotifier.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/OLXNotifier.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