Angular-RU/angular-ru-sdk

View on GitHub

Showing 235 of 347 total issues

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

export function Log(): PropertyDecorator {
    return (target: unknown, propertyName: string | symbol): void => {
        Object.defineProperty(target, propertyName, {
            configurable: false,
            get(): LogFn {
Severity: Major
Found in libs/cdk/logger/src/decorators/log.decorator.ts and 4 other locations - About 3 hrs to fix
libs/cdk/logger/src/decorators/error.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/info.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/trace.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/warn.decorator.ts on lines 5..14

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

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 5 locations. Consider refactoring.
Open

export function InfoLog(): PropertyDecorator {
    return (target: unknown, propertyName: string | symbol): void => {
        Object.defineProperty(target, propertyName, {
            configurable: false,
            get(): LogFn {
Severity: Major
Found in libs/cdk/logger/src/decorators/info.decorator.ts and 4 other locations - About 3 hrs to fix
libs/cdk/logger/src/decorators/error.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/log.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/trace.decorator.ts on lines 5..14
libs/cdk/logger/src/decorators/warn.decorator.ts on lines 5..14

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

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 (isObjectLike) {
        const flatObject: PlainObject = flatten(object[key]);

        for (const path in flatObject) {
            if (flatObject.hasOwnProperty(path)) {
Severity: Major
Found in libs/cdk/object/src/utils.ts and 1 other location - About 3 hrs to fix
libs/cdk/virtual-table/src/services/filterable/filter.worker.ts on lines 243..253

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

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 5 locations. Consider refactoring.
Open

    public patch<T = any, R = T>(path: string, options: Partial<DataClientRequestOptions> = {}): Observable<R> {
        return this.request<T, R>(this.createRequestOptions({ method: RequestType.PATCH, path, options }));
    }
Severity: Major
Found in libs/cdk/http/src/services/abstract-http.client.ts and 4 other locations - About 3 hrs to fix
libs/cdk/http/src/services/abstract-http.client.ts on lines 43..45
libs/cdk/http/src/services/abstract-http.client.ts on lines 47..49
libs/cdk/http/src/services/abstract-http.client.ts on lines 51..53
libs/cdk/http/src/services/abstract-http.client.ts on lines 59..61

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

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

    private listenModelConvertToViewValue(): void {
        this.interceptor?.onModelValueChanged$
            .pipe(
                map((modelValue: ModelValue): ViewValue => this.toViewValue(modelValue)),
                takeUntil(this.onDestroy$)
Severity: Major
Found in libs/cdk/forms/src/control-value-interceptor.ts and 1 other location - About 3 hrs to fix
libs/cdk/forms/src/control-value-interceptor.ts on lines 79..86

Duplicated Code

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

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

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

Tuning

This issue has a mass of 102.

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 5 locations. Consider refactoring.
Open

    public delete<T = any, R = T>(path: string, options: Partial<DataClientRequestOptions> = {}): Observable<R> {
        return this.request<T, R>(this.createRequestOptions({ method: RequestType.DELETE, path, options }));
    }
Severity: Major
Found in libs/cdk/http/src/services/abstract-http.client.ts and 4 other locations - About 3 hrs to fix
libs/cdk/http/src/services/abstract-http.client.ts on lines 43..45
libs/cdk/http/src/services/abstract-http.client.ts on lines 47..49
libs/cdk/http/src/services/abstract-http.client.ts on lines 51..53
libs/cdk/http/src/services/abstract-http.client.ts on lines 55..57

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

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 5 locations. Consider refactoring.
Open

    public post<T = any, R = T>(path: string, options: Partial<DataClientRequestOptions> = {}): Observable<R> {
        return this.request<T, R>(this.createRequestOptions({ method: RequestType.POST, path, options }));
    }
Severity: Major
Found in libs/cdk/http/src/services/abstract-http.client.ts and 4 other locations - About 3 hrs to fix
libs/cdk/http/src/services/abstract-http.client.ts on lines 43..45
libs/cdk/http/src/services/abstract-http.client.ts on lines 51..53
libs/cdk/http/src/services/abstract-http.client.ts on lines 55..57
libs/cdk/http/src/services/abstract-http.client.ts on lines 59..61

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

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

    private listenViewConvertToModelValue(): void {
        this.interceptor?.onViewValueChanged$
            .pipe(
                map((viewValue: ViewValue): ModelValue => this.toModelValue(viewValue)),
                takeUntil(this.onDestroy$)
Severity: Major
Found in libs/cdk/forms/src/control-value-interceptor.ts and 1 other location - About 3 hrs to fix
libs/cdk/forms/src/control-value-interceptor.ts on lines 70..77

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

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 5 locations. Consider refactoring.
Open

    public get<T = any, R = T>(path: string, options: Partial<DataClientRequestOptions> = {}): Observable<R> {
        return this.request<T, R>(this.createRequestOptions({ method: RequestType.GET, path, options }));
    }
Severity: Major
Found in libs/cdk/http/src/services/abstract-http.client.ts and 4 other locations - About 3 hrs to fix
libs/cdk/http/src/services/abstract-http.client.ts on lines 47..49
libs/cdk/http/src/services/abstract-http.client.ts on lines 51..53
libs/cdk/http/src/services/abstract-http.client.ts on lines 55..57
libs/cdk/http/src/services/abstract-http.client.ts on lines 59..61

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

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 5 locations. Consider refactoring.
Open

    public put<T = any, R = T>(path: string, options: Partial<DataClientRequestOptions> = {}): Observable<R> {
        return this.request<T, R>(this.createRequestOptions({ method: RequestType.PUT, path, options }));
    }
Severity: Major
Found in libs/cdk/http/src/services/abstract-http.client.ts and 4 other locations - About 3 hrs to fix
libs/cdk/http/src/services/abstract-http.client.ts on lines 43..45
libs/cdk/http/src/services/abstract-http.client.ts on lines 47..49
libs/cdk/http/src/services/abstract-http.client.ts on lines 55..57
libs/cdk/http/src/services/abstract-http.client.ts on lines 59..61

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rowNumber: number = 50;
        const colsNumber: number = 15;

        MocksGenerator.generator(rowNumber, colsNumber).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rowsNumber: number = 10000;
        const cols: number = 30;

        MocksGenerator.generator(rowsNumber, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rows: number = 10000;
        const cols: number = 59;

        MocksGenerator.generator(rows, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rowNumber: number = 1000;
        const colsNumber: number = 59;

        MocksGenerator.generator(rowNumber, colsNumber).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rows: number = 10000;
        const cols: number = 59;

        MocksGenerator.generator(rows, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rows: number = 1000;
        const cols: number = 40;

        MocksGenerator.generator(rows, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rows: number = 10000;
        const cols: number = 50;

        MocksGenerator.generator(rows, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-eleven/sample-eleven.component.ts on lines 71..79
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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 8 locations. Consider refactoring.
Open

    public ngOnInit(): void {
        const rows: number = 50;
        const cols: number = 15;

        MocksGenerator.generator(rows, cols).then((data: PlainObject[]): void => {
apps/virtual-table-demo/src/samples/sample-fifteen/sample-fifteen.component.ts on lines 18..26
apps/virtual-table-demo/src/samples/sample-five/sample-five.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-fourteen/sample-fourteen.component.ts on lines 48..56
apps/virtual-table-demo/src/samples/sample-seven/sample-seven.component.ts on lines 17..25
apps/virtual-table-demo/src/samples/sample-six/sample-six.component.ts on lines 21..29
apps/virtual-table-demo/src/samples/sample-third/sample-third.component.ts on lines 19..27
apps/virtual-table-demo/src/samples/sample-twelve/sample-twelve.component.ts on lines 48..56

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

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

    private toViewValue(modelValue: ModelValue): ViewValue {
        let value: any = modelValue;

        for (const operator of this.controlValueOperators) {
            value = isFunctionLike(operator.toViewValue) ? operator.toViewValue(value) : value;
Severity: Major
Found in libs/cdk/forms/src/control-value-interceptor.ts and 1 other location - About 2 hrs to fix
libs/cdk/forms/src/control-value-interceptor.ts on lines 45..53

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

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

    private toModelValue(viewValue: ViewValue): ModelValue {
        let value: any = viewValue;

        for (const operator of this.controlValueOperators) {
            value = isFunctionLike(operator.toModelValue) ? operator.toModelValue(value) : value;
Severity: Major
Found in libs/cdk/forms/src/control-value-interceptor.ts and 1 other location - About 2 hrs to fix
libs/cdk/forms/src/control-value-interceptor.ts on lines 55..63

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

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

Severity
Category
Status
Source
Language