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]);
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
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)]);
}
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Expected linebreak to be 'CRLF' Open
emailAddress: string;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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();
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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()) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}),
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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');
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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[] = [];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 = [];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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));
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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));
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
});
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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)]);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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();
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 () => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
});
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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)]);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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();
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 = [];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 = () => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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[];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 () => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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]);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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[]> => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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');
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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();
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 () => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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)`;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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' });
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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));
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 = [];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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[] = [];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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();
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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(
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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');
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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)`;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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(
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": 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 ?
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.