Angular-RU/angular-ru-sdk

View on GitHub

Showing 347 of 347 total issues

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

export function Delete<T>(
    path: string = '/',
    emitOptions: EmitOptions = { emitFailure: true, emitSuccess: true }
): MethodDecorator {
    return (target: any & DataHttpClient, _name: string | symbol, descriptor: Descriptor): Descriptor =>
Severity: Major
Found in libs/cdk/http/decorators/src/delete.decorator.ts and 4 other locations - About 4 hrs to fix
libs/cdk/http/decorators/src/get.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/patch.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/post.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/put.decorator.ts on lines 7..13

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

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 Post<T>(
    path: string = '/',
    emitOptions: EmitOptions = { emitFailure: true, emitSuccess: true }
): MethodDecorator {
    return (target: any & DataHttpClient, _name: string | symbol, descriptor: Descriptor): Descriptor =>
Severity: Major
Found in libs/cdk/http/decorators/src/post.decorator.ts and 4 other locations - About 4 hrs to fix
libs/cdk/http/decorators/src/delete.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/get.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/patch.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/put.decorator.ts on lines 7..13

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

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 Get<T>(
    path: string = '/',
    emitOptions: EmitOptions = { emitFailure: true, emitSuccess: false }
): MethodDecorator {
    return (target: any & DataHttpClient, _name: string | symbol, descriptor: Descriptor): Descriptor =>
Severity: Major
Found in libs/cdk/http/decorators/src/get.decorator.ts and 4 other locations - About 4 hrs to fix
libs/cdk/http/decorators/src/delete.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/patch.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/post.decorator.ts on lines 7..13
libs/cdk/http/decorators/src/put.decorator.ts on lines 7..13

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

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

AmountFormatDirective has 35 functions (exceeds 20 allowed). Consider refactoring.
Open

@Directive({ selector: '[amountFormat]' })
export class AmountFormatDirective implements OnInit, AfterViewInit, OnDestroy {
    private readonly subscriptions: Subscription = new Subscription();
    private previousLang: Nullable<string> = null;
    private readonly maximumFractionDigits: number = 3;
Severity: Minor
Found in libs/cdk/directives/src/amount-format/amount-format.directive.ts - About 4 hrs to fix

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

    export function flatten<T = string>(object: PlainObject, excludeKeys: string[] = []): PlainObjectOf<T> {
        const depthGraph: PlainObjectOf<T> = {};
    
        for (const key in object) {
            if (object.hasOwnProperty(key) && !excludeKeys.includes(key)) {
    Severity: Major
    Found in libs/cdk/object/src/utils.ts and 1 other location - About 4 hrs to fix
    libs/cdk/virtual-table/src/services/filterable/filter.worker.ts on lines 218..228

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

    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

        function flatten<K = string>(value: PlainObject, excludeKeys: string[] = []): PlainObjectOf<K> {
            const depthGraph: PlainObjectOf<K> = {};
    
            for (const key in value) {
                if (value.hasOwnProperty(key) && !excludeKeys.includes(key)) {
    libs/cdk/object/src/utils.ts on lines 27..37

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

    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

    File ngxs-data-entity-collections.repository.ts has 336 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Injectable, isDevMode } from '@angular/core';
    import {
        EmptyDictionary,
        EntityCollections,
        EntityComparator,

      TooltipDirective has 32 functions (exceeds 20 allowed). Consider refactoring.
      Open

      @Directive({ selector: '[tooltip]' })
      export class TooltipDirective implements OnDestroy {
          private readonly delta: number = 2;
          private readonly layoutMinDuration: number = 100;
          private tooltipDomElement: Nullable<HTMLElement> = null;
      Severity: Minor
      Found in libs/cdk/tooltip/src/tooltip.directive.ts - About 4 hrs to fix

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

        export function TraceLog(): 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/trace.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/log.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 (isObject) {
                    const flatObject: PlainObject = flatten(object[key]);
        
                    for (const path in flatObject) {
                        if (flatObject.hasOwnProperty(path)) {
        libs/cdk/object/src/utils.ts on lines 42..52

        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 ErrorLog(): 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/error.decorator.ts and 4 other locations - About 3 hrs to fix
        libs/cdk/logger/src/decorators/info.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 5 locations. Consider refactoring.
        Open

        export function WarnLog(): 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/warn.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/log.decorator.ts on lines 5..14
        libs/cdk/logger/src/decorators/trace.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 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

        Severity
        Category
        Status
        Source
        Language