ThinkDeepTech/thinkdeep

View on GitHub
packages/deep-microservice-analysis/src/datasource/neo4j-store.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function _addSentiment has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async _addSentiment(economicEntity, utcDateTime, data) {
    if (!validEconomicEntities([economicEntity])) {
      throw new Error(
        `Invalid economic entity received:\n${JSON.stringify(economicEntity)}`
      );
Severity: Minor
Found in packages/deep-microservice-analysis/src/datasource/neo4j-store.js - About 1 hr to fix

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

      async readMostRecentSentiment(economicEntity) {
        if (!validEconomicEntities([economicEntity])) {
          throw new Error(
            `Invalid economic entity received:\n${JSON.stringify(economicEntity)}`
          );
    Severity: Minor
    Found in packages/deep-microservice-analysis/src/datasource/neo4j-store.js - About 1 hr to fix

      Function readSentiments has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        async readSentiments(economicEntity, startDate, endDate) {
          if (!validEconomicEntities([economicEntity])) {
            throw new Error(
              `Invalid economic entity received:\n${JSON.stringify(economicEntity)}`
            );
      Severity: Minor
      Found in packages/deep-microservice-analysis/src/datasource/neo4j-store.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status