Showing 670 of 670 total issues

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

  protected setTime(dateTime: TimeContext, timeField: HTMLTableCellElement) {
    const timeFormat = /(\d\d):(\d\d)/
    const timeFields = timeFormat.exec(timeField.textContent)
    const hour = timeFields ? parseInt(timeFields[1], 10) : undefined
    const minutes = timeFields ? parseInt(timeFields[2], 10) : undefined
Severity: Major
Found in time/datasource/essex-police/EssexPoliceHttpDatasource.ts and 1 other location - About 4 hrs to fix
time/datasource/baseovnifrance/BaseOvniFranceHttpDatasource.ts on lines 83..91

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

      {
        time: new TimeContext(nativeCase3Time.getYear(), nativeCase3Time.getMonth(), nativeCase3Time.getDayOfMonth(),
          nativeCase3Time.getHour(), nativeCase3Time.getMinutes(), nativeCase3Time.getTimeZone()),
        place: {name: fortWorth.getMessages(context).title, place: fortWorth.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase3),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..101
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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

      {
        time: new TimeContext(nativeCase6Time.getYear(), nativeCase6Time.getMonth(), nativeCase6Time.getDayOfMonth(),
          nativeCase6Time.getHour(), nativeCase6Time.getMinutes(), nativeCase6Time.getTimeZone()),
        place: {name: monessen.getMessages(context).title, place: monessen.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase6),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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

      {
        time: new TimeContext(nativeCase7Time.getYear(), nativeCase7Time.getMonth(), nativeCase7Time.getDayOfMonth(),
          nativeCase7Time.getHour(), nativeCase7Time.getMinutes(), nativeCase7Time.getTimeZone()),
        place: {name: bonneyLake.getMessages(context).title, place: bonneyLake.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase7),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..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 124.

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

      {
        time: new TimeContext(nativeCase2Time.getYear(), nativeCase2Time.getMonth(), nativeCase2Time.getDayOfMonth(),
          nativeCase2Time.getHour(), nativeCase2Time.getMinutes(), nativeCase2Time.getTimeZone()),
        place: {name: castlegar.getMessages(context).title, place: castlegar.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase2),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..101
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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

      {
        time: new TimeContext(nativeCase4Time.getYear(), nativeCase4Time.getMonth(), nativeCase4Time.getDayOfMonth(),
          nativeCase4Time.getHour(), nativeCase4Time.getMinutes(), nativeCase4Time.getTimeZone()),
        place: {name: campPendleton.getMessages(context).title, place: campPendleton.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase4),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..101
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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

      {
        time: new TimeContext(nativeCase1Time.getYear(), nativeCase1Time.getMonth(), nativeCase1Time.getDayOfMonth(),
          nativeCase1Time.getHour(), nativeCase1Time.getMinutes(), nativeCase1Time.getTimeZone()),
        place: {name: slocomb.getMessages(context).title, place: slocomb.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase1),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 88..94
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..101
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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

      {
        time: new TimeContext(nativeCase5Time.getYear(), nativeCase5Time.getMonth(), nativeCase5Time.getDayOfMonth(),
          nativeCase5Time.getHour(), nativeCase5Time.getMinutes(), nativeCase5Time.getTimeZone()),
        place: {name: stPetersburg.getMessages(context).title, place: stPetersburg.places[0]},
        description: nuforcRR0Mapper.getDescription(nativeCase5),
Severity: Major
Found in time/datasource/nuforc/NuforcRR0Mapper.test.ts and 6 other locations - About 4 hrs to fix
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 60..66
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 67..73
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 74..80
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 81..87
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 95..101
time/datasource/nuforc/NuforcRR0Mapper.test.ts on lines 102..108

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

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 build.ts has 342 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { TimeContext } from "./time/TimeContext"
import { CaseDirectoryStep } from "./science/crypto/ufo/enquete/dossier/CaseDirectoryStep"
import { GooglePlaceService } from "./place/GooglePlaceService"
import { OrganizationService } from "./org/OrganizationService"
import { HtmlRR0SsgContext, RR0SsgContextImpl } from "./RR0SsgContext"
Severity: Minor
Found in build.ts - About 4 hrs to fix

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

            "windows": {
              "create": {
                "minArgs": 0,
                "maxArgs": 1
              },
    Severity: Major
    Found in extension/Shared (Extension)/Resources/browser-polyfill.js and 1 other location - About 4 hrs to fix
    extension/Shared (Extension)/Resources/browser-polyfill.js on lines 462..491

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

    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

            "runtime": {
              "getBackgroundPage": {
                "minArgs": 0,
                "maxArgs": 0
              },
    Severity: Major
    Found in extension/Shared (Extension)/Resources/browser-polyfill.js and 1 other location - About 4 hrs to fix
    extension/Shared (Extension)/Resources/browser-polyfill.js on lines 678..707

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

    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

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

        inputs.append("text")
          .attr("id", "input-name")
          .attr("class", "node-text")
          .attr("text-anchor", "middle")
          .attr("x", 0)
    Severity: Major
    Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 4 hrs to fix
    people/a/AlammarJay/js/nn_calc.js on lines 1296..1309

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

    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

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

          inputs.append("text")
            .attr("id", "input-name")
            .attr("class", "node-text")
            .attr("text-anchor", "middle")
            .attr("x", 0)
    Severity: Major
    Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 4 hrs to fix
    people/a/AlammarJay/js/nn_calc.js on lines 86..99

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

    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

    Function handle has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
    Open

      async handle(context: HtmlRR0SsgContext, link: HTMLAnchorElement, pathToSearch: string) {
        if (!link.title) {
          const aCase = (await this.caseService.get(pathToSearch))[0]
          if (aCase) {
            const caseContext = context.clone()
    Severity: Minor
    Found in anchor/CaseAnchorHandler.ts - About 4 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

    export const auvergneRhoneAlpesMessages = RegionMessages.create<AuvergneRhoneAlpesDepartmentMessagesList>(
      "Auvergne-Rhône-Alpes",
      {
        [AuvergneRhoneAlpesDepartementCode.Ain]: ainMessages,
        [AuvergneRhoneAlpesDepartementCode.Allier]: allierMessages,
    Severity: Major
    Found in org/eu/fr/region/ara/AuvergneRhoneAlpesMessages.ts and 1 other location - About 4 hrs to fix
    org/eu/fr/region/ara/38/IsereMessages.ts on lines 16..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 116.

    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 isereMessages = DepartmentMessages.create<DepCityMessages>("Isère", {
      [IsereCityCode.Allevard]: allevardMessages,
      [IsereCityCode.Chirens]: chirensMessages,
      [IsereCityCode.Domene]: domeneMessages,
      [IsereCityCode.Meylan]: meylanMessages,
    Severity: Major
    Found in org/eu/fr/region/ara/38/IsereMessages.ts and 1 other location - About 4 hrs to fix
    org/eu/fr/region/ara/AuvergneRhoneAlpesMessages.ts on lines 16..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 116.

    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

        softmaxGroup
          .append("rect")
          .attr("class", "outlined-softmax-node nn-node")
          .attr("width", this.nodeRadius * 1.5)
          .attr("height", this.neuralNetworkHeight)
    Severity: Major
    Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 3 hrs to fix
    people/a/AlammarJay/js/shallow_nn_grapher.js on lines 529..537

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

    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

      softmaxGroup
        .append("rect")
        .attr("class", "softmaxNode")
        .attr("width", this.nodeRadius * 2)
        .attr("height", this.neuralNetworkHeight)
    Severity: Major
    Found in people/a/AlammarJay/js/shallow_nn_grapher.js and 1 other location - About 3 hrs to fix
    people/a/AlammarJay/js/nn_calc.js on lines 630..638

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

    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

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

        if (title === "NATIONAL") {
          org = france
        } else {
          const placeName = title.replace("(DPT)", "").replace("(DEP)", "").trim()
          org = this.cityService.find(context, placeName, undefined)
    Severity: Major
    Found in org/eu/fr/cnes/geipan/GeipanCaseSummaryRR0Mapper.ts and 1 other location - About 3 hrs to fix
    time/datasource/essex-police/EssexPoliceCaseSummaryRR0Mapper.ts on lines 46..53

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 108.

    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

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

        if (title === "NATIONAL") {
          org = france
        } else {
          const placeName = title.replace("(DPT)", "").replace("(DEP)", "").trim()
          org = this.cityService.find(context, placeName, undefined)
    org/eu/fr/cnes/geipan/GeipanCaseSummaryRR0Mapper.ts on lines 69..76

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

    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