afermon/angular-4-data-table-bootstrap-4

View on GitHub
src/components/pagination.component.ngfactory.ts

Summary

Maintainability
F
1 wk
Test Coverage

Function View_DataTablePagination_0 has 263 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function View_DataTablePagination_0(_l:any):i0.ɵViewDefinition {
  return i0.ɵvid(0,[i0.ɵpid(0,i1.MinPipe,([] as any[])),(_l()(),i0.ɵted((null as any),
      ['\n'])),(_l()(),i0.ɵeld(0,(null as any),(null as any),69,'div',[['class','pagination-box']],
      (null as any),(null as any),(null as any),(null as any),(null as any))),(_l()(),
      i0.ɵted((null as any),['\n    '])),(_l()(),i0.ɵeld(0,(null as any),(null as any),
Severity: Major
Found in src/components/pagination.component.ngfactory.ts - About 1 day to fix

    File pagination.component.ngfactory.ts has 281 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @fileoverview This file is generated by the Angular template compiler.
     * Do not edit.
     * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride}
     */
    Severity: Minor
    Found in src/components/pagination.component.ngfactory.ts - About 2 hrs to fix

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

                [(null as any),'change']],(_v,en,$event) => {
              var ad:boolean = true;
              var _co:i2.DataTablePagination = _v.component;
              if (('input' === en)) {
                const pd_0:any = ((<any>i0.ɵnov(_v,47)._handleInput($event.target.value)) !== false);
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 3 days to fix
      src/components/pagination.component.ngfactory.ts on lines 51..95

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

      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

                    'change']],(_v,en,$event) => {
                  var ad:boolean = true;
                  var _co:i2.DataTablePagination = _v.component;
                  if (('input' === en)) {
                    const pd_0:any = ((<any>i0.ɵnov(_v,25)._handleInput($event.target.value)) !== false);
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 3 days to fix
      src/components/pagination.component.ngfactory.ts on lines 144..188

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

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

                i0.ɵted((null as any),['\n            '])),(_l()(),i0.ɵeld(0,(null as any),
                (null as any),1,'button',[['class','btn btn-default pagination-prevpage']],
                [[8,'disabled',0]],[[(null as any),'click']],(_v,en,$event) => {
                  var ad:boolean = true;
                  var _co:i2.DataTablePagination = _v.component;
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 3 other locations - About 6 hrs to fix
      src/components/pagination.component.ngfactory.ts on lines 110..119
      src/components/pagination.component.ngfactory.ts on lines 209..219
      src/components/pagination.component.ngfactory.ts on lines 220..230

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

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

                i0.ɵted((null as any),['\n            '])),(_l()(),i0.ɵeld(0,(null as any),
                (null as any),1,'button',[['class','btn btn-default pagination-lastpage']],
                [[8,'disabled',0]],[[(null as any),'click']],(_v,en,$event) => {
                  var ad:boolean = true;
                  var _co:i2.DataTablePagination = _v.component;
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 3 other locations - About 6 hrs to fix
      src/components/pagination.component.ngfactory.ts on lines 110..119
      src/components/pagination.component.ngfactory.ts on lines 120..130
      src/components/pagination.component.ngfactory.ts on lines 209..219

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

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

            (_l()(),i0.ɵeld(0,(null as any),(null as any),1,'button',[['class','btn btn-default pagination-firstpage']],
                [[8,'disabled',0]],[[(null as any),'click']],(_v,en,$event) => {
                  var ad:boolean = true;
                  var _co:i2.DataTablePagination = _v.component;
                  if (('click' === en)) {
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 3 other locations - About 6 hrs to fix
      src/components/pagination.component.ngfactory.ts on lines 120..130
      src/components/pagination.component.ngfactory.ts on lines 209..219
      src/components/pagination.component.ngfactory.ts on lines 220..230

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

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

            (_l()(),i0.ɵted((null as any),['\n            '])),(_l()(),i0.ɵeld(0,(null as any),
                (null as any),1,'button',[['class','btn btn-default pagination-nextpage']],
                [[8,'disabled',0]],[[(null as any),'click']],(_v,en,$event) => {
                  var ad:boolean = true;
                  var _co:i2.DataTablePagination = _v.component;
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 3 other locations - About 6 hrs to fix
      src/components/pagination.component.ngfactory.ts on lines 110..119
      src/components/pagination.component.ngfactory.ts on lines 120..130
      src/components/pagination.component.ngfactory.ts on lines 220..230

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

      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

                },[i3.DefaultValueAccessor,i3.ɵbc]),i0.ɵdid(671744,(null as any),0,i3.NgModel,
                [[8,(null as any)],[8,(null as any)],[8,(null as any)],[2,i3.NG_VALUE_ACCESSOR]],
                {model:[0,'model']},(null as any)),i0.ɵprd(2048,(null as any),i3.NgControl,
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/pagination.component.ngfactory.ts on lines 194..196

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

      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

                },[i3.DefaultValueAccessor,i3.ɵbc]),i0.ɵdid(671744,(null as any),0,i3.NgModel,
                [[8,(null as any)],[8,(null as any)],[8,(null as any)],[2,i3.NG_VALUE_ACCESSOR]],
                {model:[0,'model']},(null as any)),i0.ɵprd(2048,(null as any),i3.NgControl,
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/pagination.component.ngfactory.ts on lines 101..103

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

      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

                    (null as any)],[2,'ng-pending',(null as any)]],[[(null as any),'blur'],
                [(null as any),'keyup.enter'],[(null as any),'keyup.esc'],[(null as any),
                    'input'],[(null as any),'compositionstart'],[(null as any),'compositionend'],
                [(null as any),'change']],(_v,en,$event) => {
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/pagination.component.ngfactory.ts on lines 48..51

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 58.

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

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

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

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

      Refactorings

      Further Reading

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

                    [2,'ng-pending',(null as any)]],[[(null as any),'blur'],[(null as any),
                    'keyup.enter'],[(null as any),'keyup.esc'],[(null as any),'input'],[(null as any),
                    'compositionstart'],[(null as any),'compositionend'],[(null as any),
                    'change']],(_v,en,$event) => {
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/pagination.component.ngfactory.ts on lines 141..144

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 58.

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

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

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

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

      Refactorings

      Further Reading

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

      export const DataTablePaginationNgFactory:i0.ComponentFactory<i2.DataTablePagination> = i0.ɵccf('data-table-pagination',
          i2.DataTablePagination,View_DataTablePagination_Host_0,{},{},([] as any[]));
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/header.component.ngfactory.ts on lines 349..350

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 58.

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

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

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

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

      Refactorings

      Further Reading

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

        return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),1,'data-table-pagination',
            ([] as any[]),(null as any),(null as any),(null as any),View_DataTablePagination_0,
            RenderType_DataTablePagination)),i0.ɵdid(49152,(null as any),0,i2.DataTablePagination,
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 1 hr to fix
      src/components/table.component.ngfactory.ts on lines 361..362

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

      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

                (null as any),(null as any)),i0.ɵprd(1024,(null as any),i3.NG_VALUE_ACCESSOR,
                (p0_0:any,p1_0:any) => {
                  return [p0_0,p1_0];
                },[i3.DefaultValueAccessor,i3.ɵbc]),i0.ɵdid(671744,(null as any),0,i3.NgModel,
      Severity: Minor
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 55 mins to fix
      src/components/pagination.component.ngfactory.ts on lines 98..101

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

      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

                (null as any),(null as any)),i0.ɵprd(1024,(null as any),i3.NG_VALUE_ACCESSOR,
                (p0_0:any,p1_0:any) => {
                  return [p0_0,p1_0];
                },[i3.DefaultValueAccessor,i3.ɵbc]),i0.ɵdid(671744,(null as any),0,i3.NgModel,
      Severity: Minor
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 55 mins to fix
      src/components/pagination.component.ngfactory.ts on lines 191..194

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

      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

            },(null as any),(null as any))),i0.ɵdid(16384,(null as any),0,i3.DefaultValueAccessor,
                [i0.Renderer2,i0.ElementRef,[2,i3.COMPOSITION_BUFFER_MODE]],(null as any),
                (null as any)),i0.ɵdid(16384,(null as any),0,i3.ɵbc,[i0.Renderer2,i0.ElementRef],
      Severity: Minor
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 45 mins to fix
      src/components/pagination.component.ngfactory.ts on lines 95..97

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

      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

                },(null as any),(null as any))),i0.ɵdid(16384,(null as any),0,i3.DefaultValueAccessor,
                [i0.Renderer2,i0.ElementRef,[2,i3.COMPOSITION_BUFFER_MODE]],(null as any),
                (null as any)),i0.ɵdid(16384,(null as any),0,i3.ɵbc,[i0.Renderer2,i0.ElementRef],
      Severity: Minor
      Found in src/components/pagination.component.ngfactory.ts and 1 other location - About 45 mins to fix
      src/components/pagination.component.ngfactory.ts on lines 188..190

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

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

      export const RenderType_DataTablePagination:i0.RendererType2 = i0.ɵcrt({encapsulation:0,
          styles:styles_DataTablePagination,data:{}});
      Severity: Major
      Found in src/components/pagination.component.ngfactory.ts and 3 other locations - About 30 mins to fix
      src/components/header.component.ngfactory.ts on lines 15..16
      src/components/row.component.ngfactory.ts on lines 16..17
      src/components/table.component.ngfactory.ts on lines 22..23

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

      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

      There are no issues that match your filters.

      Category
      Status