Showing 555 of 555 total issues

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

export const moselleMessages = DepartmentMessages.create<DepMessages>("Moselle", {
  [MoselleCityCode.ArsSurMoselle]: arsSurMoselleMessages,
  [MoselleCityCode.Bouzonville]: bouzonvilleMessages,
  [MoselleCityCode.Forbach]: forbachMessages,
  [MoselleCityCode.MontignyLesMetz]: montignyLesMetzMessages
Severity: Major
Found in org/eu/fr/region/ges/57/MoselleMessages.ts and 7 other locations - About 1 hr to fix
org/ca/Canada_en.ts on lines 9..16
org/eu/fr/region/cvl/CentreValDeLoireMessages.ts on lines 10..16
org/eu/fr/region/hdf/59/NordMessages.ts on lines 10..15
org/eu/fr/region/hdf/HautsDeFranceMessages.ts on lines 10..15
org/eu/fr/region/naq/16/CharenteMessages.ts on lines 10..15
org/eu/fr/region/naq/17/CharenteMaritimeMessages.ts on lines 10..15
org/eu/fr/region/pdl/PaysDeLoireMessages.ts on lines 10..15

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

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

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

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

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

Refactorings

Further Reading

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

export const centreValDeLoireMessages = RegionMessages.create<CentreValDeLoireDepartmentMessagesList>(
  "Centre-Val de Loire", {
    [CentreValDeLoireDepartementCode.Cher]: cherMessages,
    [CentreValDeLoireDepartementCode.Indre]: indreMessages,
    [CentreValDeLoireDepartementCode.IndreEtLoire]: indreEtLoireMessages,
Severity: Major
Found in org/eu/fr/region/cvl/CentreValDeLoireMessages.ts and 7 other locations - About 1 hr to fix
org/ca/Canada_en.ts on lines 9..16
org/eu/fr/region/ges/57/MoselleMessages.ts on lines 10..15
org/eu/fr/region/hdf/59/NordMessages.ts on lines 10..15
org/eu/fr/region/hdf/HautsDeFranceMessages.ts on lines 10..15
org/eu/fr/region/naq/16/CharenteMessages.ts on lines 10..15
org/eu/fr/region/naq/17/CharenteMaritimeMessages.ts on lines 10..15
org/eu/fr/region/pdl/PaysDeLoireMessages.ts on lines 10..15

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

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

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

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

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

Refactorings

Further Reading

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

export const charenteMessages = DepartmentMessages.create<CharenteCityMessagesList>("Charente", {
  [CharenteCityCode.Angouleme]: angouleme16Messages,
  [CharenteCityCode.Montigne]: montigne16Messages,
  [CharenteCityCode.Rouillac]: rouillac16Messages,
  [CharenteCityCode.VilleboisLavalette]: villeboisLavalette16Messages
Severity: Major
Found in org/eu/fr/region/naq/16/CharenteMessages.ts and 7 other locations - About 1 hr to fix
org/ca/Canada_en.ts on lines 9..16
org/eu/fr/region/cvl/CentreValDeLoireMessages.ts on lines 10..16
org/eu/fr/region/ges/57/MoselleMessages.ts on lines 10..15
org/eu/fr/region/hdf/59/NordMessages.ts on lines 10..15
org/eu/fr/region/hdf/HautsDeFranceMessages.ts on lines 10..15
org/eu/fr/region/naq/17/CharenteMaritimeMessages.ts on lines 10..15
org/eu/fr/region/pdl/PaysDeLoireMessages.ts on lines 10..15

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

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

  getLastAndFirstName(): string {
    const {lastNameStr, firstNameStr} = this.getLastAndFirstNames();
    return lastNameStr && firstNameStr ? lastNameStr + ', ' + firstNameStr : lastNameStr || firstNameStr;
  }
Severity: Major
Found in people/People.ts and 1 other location - About 1 hr to fix
people/People.ts on lines 37..40

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

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

        .map(c => `${c.id},${c.url},${c.city},${c.zoneCode},${c.dateTime},${c.postTime},${c.classification}`)
Severity: Major
Found in time/datasource/CsvMapper.test.ts and 1 other location - About 1 hr to fix
time/datasource/CsvMapper.test.ts on lines 34..34

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

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

  get firstAndLastName(): string {
    const {lastNameStr, firstNameStr} = this.getLastAndFirstNames();
    return lastNameStr && firstNameStr ? firstNameStr + ' ' + lastNameStr : lastNameStr || firstNameStr;
  }
Severity: Major
Found in people/People.ts and 1 other location - About 1 hr to fix
people/People.ts on lines 32..35

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

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 (!year || year === sightingTime.getYear()) && (!month || month === sightingTime.getMonth()) && (!day || day === sightingTime.getDayOfMonth())
Severity: Major
Found in time/datasource/urecat/UrecatDatasource.ts and 1 other location - About 1 hr to fix
time/datasource/UfoCaseContextTimefilter.ts on lines 17..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 62.

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

  readonly fileMapper = new class extends JsonMapper<EssexPoliceCaseSummary> {
    parse(context: RR0SsgContext, data: string): EssexPoliceCaseSummary[] {
      const allData = super.parse(context, data)
      return allData["Majestic Timeline"] as EssexPoliceCaseSummary[]
    }
Severity: Major
Found in time/datasource/essex-police/EssexPoliceFileDatasource.ts and 1 other location - About 1 hr to fix
time/datasource/ufo-search/UfoSearchFileDatasource.ts on lines 8..13

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

class FileMapper extends JsonMapper<UfoSearchCase> {
  parse(context: RR0SsgContext, data: string): UfoSearchCase[] {
    const allData = super.parse(context, data)
    return allData["Majestic Timeline"] as UfoSearchCase[]
  }
Severity: Major
Found in time/datasource/ufo-search/UfoSearchFileDatasource.ts and 1 other location - About 1 hr to fix
time/datasource/essex-police/EssexPoliceFileDatasource.ts on lines 10..15

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

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 (!year || year === sightingTime.getYear()) && (!month || month === sightingTime.getMonth()) && (!day || day === sightingTime.getDayOfMonth())
Severity: Major
Found in time/datasource/UfoCaseContextTimefilter.ts and 1 other location - About 1 hr to fix
time/datasource/urecat/UrecatDatasource.ts on lines 23..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 62.

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

      `${obj.id},${obj.url},${obj.city},${obj.zoneCode},${obj.dateTime},${obj.postTime},${obj.classification}`)
Severity: Major
Found in time/datasource/CsvMapper.test.ts and 1 other location - About 1 hr to fix
time/datasource/CsvMapper.test.ts on lines 41..41

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

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 onclick has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    speechEl.onclick = (e) => {
      e.preventDefault()
      e.stopPropagation()
      const anotherSpeech = speechMsg && speechMsg.text !== text
      if (!speechMsg || anotherSpeech) {
Severity: Minor
Found in lang/speech.js - About 1 hr to fix

    Function graphBiasNodes has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    shallowNeuralNetworkGrapher.prototype.graphBiasNodes = function (data) {
      // JOIN
      var biasNodes = this.neuralNetworkG.selectAll(this.svgElement + " .bias-group").data(data);
    
      // EXIT old elements not present in new data.
    Severity: Minor
    Found in people/a/AlammarJay/js/shallow_nn_grapher.js - About 1 hr to fix

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

        this.g.append("g")
          .attr("class", "grid")
          .call(make_y_gridlines()
            .tickSize(-this.width)
            .tickFormat("")
      Severity: Major
      Found in people/a/AlammarJay/js/sigmoid_graph.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/relu_graph.js on lines 106..111

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

      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

        this.g.append("g")
          .attr("class", "grid")
          .call(make_y_gridlines()
            .tickSize(-this.width)
            .tickFormat("")
      Severity: Major
      Found in people/a/AlammarJay/js/relu_graph.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/sigmoid_graph.js on lines 106..111

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

      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

              viz.tooltipDiv.html(html)
                .style("left", (d3.event.pageX - 250) + "px")
                .style("top", (d3.event.pageY) + "px")
      Severity: Major
      Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/nn_calc.js on lines 816..818

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

      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

              viz.tooltipDiv.html(rows)
                .style("left", (d3.event.pageX - 250) + "px")
                .style("top", (d3.event.pageY) + "px")
      Severity: Major
      Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 1 hr to fix
      people/a/AlammarJay/js/nn_calc.js on lines 826..828

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

      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 draw has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          draw: function (layer, properties, activeRegionSVGGroup) {
      
            // JOIN
            // Each node has an SVG group of its own. In that group is an SVG circle and SVG text label
            var nodeGroups = activeRegionSVGGroup.selectAll(properties.containerElement + " .layer-" + layer.index)
      Severity: Minor
      Found in people/a/AlammarJay/js/nn_calc.js - About 1 hr to fix

        Function getFromRow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          protected getFromRow(context: RR0SsgContext, row: Element): GeipanCaseSummary {
            const linkField = row.querySelector(".fiche-download-icon")
            const caseLink = linkField.firstElementChild as HTMLAnchorElement
            const url = new URL(caseLink.href, this.baseUrl)
            const caseField = row.querySelector(".cas_title")
        Severity: Minor
        Found in time/datasource/geipan/GeipanHttpDatasource.ts - About 1 hr to fix

          Function updateUI has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

          NN_trainer.prototype.updateUI = function (mean_delta_sum, errorLineValues) {
          
            //Update error chart if available
            if (this.error_chart_el !== "")
              this.addErrorPoint(mean_delta_sum);
          Severity: Minor
          Found in people/a/AlammarJay/js/simple_nn.js - About 1 hr 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

          Severity
          Category
          Status
          Source
          Language