bptlab/scylla-ui

View on GitHub

Showing 32 of 32 total issues

File file-sharing.service.spec.ts has 1552 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { TestBed, inject } from '@angular/core/testing';
import { FileSharingService } from './file-sharing.service';
// tslint:disable-next-line:max-line-length
import { Statistics, Configuration, ProcessInstance, ActivityInstance, ResourceInstance, Resource, Activity, Process, ResourceUtilization } from './process-statistics';
import { Parser } from 'xml2js';
Severity: Major
Found in src/app/services/file-sharing/file-sharing.service.spec.ts - About 4 days to fix

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

    describe('ActivityDetailComponent', () => {
      let component: ActivityDetailComponent;
      let fixture: ComponentFixture<ActivityDetailComponent>;
    
      beforeEach(async(() => {
    src/app/statistics/diagrams/bpmn-viewer/bpmn-viewer.component.spec.ts on lines 8..31

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

    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

    describe('BpmnViewerComponent', () => {
      let component: BpmnViewerComponent;
      let fixture: ComponentFixture<BpmnViewerComponent>;
    
      beforeEach(async(() => {
    src/app/statistics/activity/activity-detail/activity-detail.component.spec.ts on lines 9..32

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

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

    describe('SimulationOverviewComponent', () => {
      let component: SimulationOverviewComponent;
      let fixture: ComponentFixture<SimulationOverviewComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-reader/file-reader.component.spec.ts on lines 6..28
    src/app/statistics/statistics.component.spec.ts on lines 7..29

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

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

    describe('FileReaderComponent', () => {
      let component: FileReaderComponent;
      let fixture: ComponentFixture<FileReaderComponent>;
    
      beforeEach(async(() => {
    src/app/statistics/simulation/simulation-overview/simulation-overview.component.spec.ts on lines 6..28
    src/app/statistics/statistics.component.spec.ts on lines 7..29

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

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

    describe('StatisticsComponent', () => {
      let component: StatisticsComponent;
      let fixture: ComponentFixture<StatisticsComponent>;
    
      beforeEach(async(() => {
    Severity: Major
    Found in src/app/statistics/statistics.component.spec.ts and 2 other locations - About 6 hrs to fix
    src/app/landing/file-selection/file-reader/file-reader.component.spec.ts on lines 6..28
    src/app/statistics/simulation/simulation-overview/simulation-overview.component.spec.ts on lines 6..28

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

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

    describe('SimulationKpiComponent', () => {
      let component: SimulationKpiComponent;
      let fixture: ComponentFixture<SimulationKpiComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..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 165.

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

    describe('FileSelectionComponent', () => {
      let component: FileSelectionComponent;
      let fixture: ComponentFixture<FileSelectionComponent>;
    
      beforeEach(async(() => {
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('LandingComponent', () => {
      let component: LandingComponent;
      let fixture: ComponentFixture<LandingComponent>;
    
      beforeEach(async(() => {
    Severity: Major
    Found in src/app/landing/landing.component.spec.ts and 8 other locations - About 6 hrs to fix
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('HeaderBarComponent', () => {
      let component: HeaderBarComponent;
      let fixture: ComponentFixture<HeaderBarComponent>;
    
      beforeEach(async(() => {
    Severity: Major
    Found in src/app/menu/header-bar/header-bar.component.spec.ts and 8 other locations - About 6 hrs to fix
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('ActivityOverviewComponent', () => {
      let component: ActivityOverviewComponent;
      let fixture: ComponentFixture<ActivityOverviewComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('FooterBarComponent', () => {
      let component: FooterBarComponent;
      let fixture: ComponentFixture<FooterBarComponent>;
    
      beforeEach(async(() => {
    Severity: Major
    Found in src/app/menu/footer-bar/footer-bar.component.spec.ts and 8 other locations - About 6 hrs to fix
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('ResourceOverviewComponent', () => {
      let component: ResourceOverviewComponent;
      let fixture: ComponentFixture<ResourceOverviewComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('ResourceKpiComponent', () => {
      let component: ResourceKpiComponent;
      let fixture: ComponentFixture<ResourceKpiComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-kpi/activity-kpi.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('ActivityKpiComponent', () => {
      let component: ActivityKpiComponent;
      let fixture: ComponentFixture<ActivityKpiComponent>;
    
      beforeEach(async(() => {
    src/app/landing/file-selection/file-selection.component.spec.ts on lines 6..27
    src/app/landing/landing.component.spec.ts on lines 6..27
    src/app/menu/footer-bar/footer-bar.component.spec.ts on lines 6..27
    src/app/menu/header-bar/header-bar.component.spec.ts on lines 6..27
    src/app/statistics/activity/activity-overview/activity-overview.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-kpi/resource-kpi.component.spec.ts on lines 6..27
    src/app/statistics/resources/resource-overview/resource-overview.component.spec.ts on lines 6..27
    src/app/statistics/simulation/simulation-kpi/simulation-kpi.component.spec.ts on lines 6..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 165.

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

    describe('ResourceDetailComponent', () => {
      let component: ResourceDetailComponent;
      let fixture: ComponentFixture<ResourceDetailComponent>;
    
      beforeEach(async(() => {
    src/app/misc/not-found/not-found.component.spec.ts on lines 5..25
    src/app/statistics/diagrams/pie-chart/pie-chart.component.spec.ts on lines 5..25

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

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

    describe('NotFoundComponent', () => {
      let component: NotFoundComponent;
      let fixture: ComponentFixture<NotFoundComponent>;
    
      beforeEach(async(() => {
    Severity: Major
    Found in src/app/misc/not-found/not-found.component.spec.ts and 2 other locations - About 6 hrs to fix
    src/app/statistics/diagrams/pie-chart/pie-chart.component.spec.ts on lines 5..25
    src/app/statistics/resources/resource-detail/resource-detail.component.spec.ts on lines 5..25

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

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

    describe('PieChartComponent', () => {
      let component: PieChartComponent;
      let fixture: ComponentFixture<PieChartComponent>;
    
      beforeEach(async(() => {
    src/app/misc/not-found/not-found.component.spec.ts on lines 5..25
    src/app/statistics/resources/resource-detail/resource-detail.component.spec.ts on lines 5..25

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

    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 class ResourceKpiComponent implements OnInit {
      @Input() statistics: Resource;
      @Input() timeUnit: string;
    
      constructor() { }
    src/app/statistics/activity/activity-kpi/activity-kpi.component.ts on lines 9..17

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

    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 class ActivityKpiComponent implements OnInit {
      @Input() statistics: Activity;
      @Input() timeUnit: string;
    
      constructor() { }
    src/app/statistics/resources/resource-kpi/resource-kpi.component.ts on lines 9..18

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

    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