renzholy/mongood

View on GitHub

Showing 62 of 64 total issues

Avoid too many return statements within this function.
Open

    return {
      bsonType: ['objectId'],
    }
Severity: Major
Found in src/utils/schema.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return {
          bsonType: ['array'],
          items: deepmerge.all(doc.map(generate)) as Schema,
        }
    Severity: Major
    Found in src/utils/schema.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return `[${val
              .map((v) => `${stringify(v, hasIndent, depth + storage.tabSize.get)}`)
              .join(', ')}]`
      Severity: Major
      Found in src/utils/ejson.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return `{\n${entries
            .map(
              ([key, value]) =>
                `${extraSpaces}${spaces}${wrapKey(key)}: ${stringify(
                  value,
        Severity: Major
        Found in src/utils/ejson.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return <IndexFeatures value={props.item} />
          Severity: Major
          Found in src/components/pure/index-cell.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return {
                  bsonType: ['long'],
                }
            Severity: Major
            Found in src/utils/schema.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return 'null'
              Severity: Major
              Found in src/utils/ejson.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return val.$numberDouble
                Severity: Major
                Found in src/utils/ejson.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return `MaxKey()`
                  Severity: Major
                  Found in src/utils/ejson.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return undefined
                    Severity: Major
                    Found in src/utils/storage.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return '{}'
                      Severity: Major
                      Found in src/utils/ejson.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return {
                              bsonType: ['decimal'],
                            }
                        Severity: Major
                        Found in src/utils/schema.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return {
                                bsonType: ['minKey'],
                              }
                          Severity: Major
                          Found in src/utils/schema.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return storage.timezoneOffset
                                  ? `Date("${formatDate(parseInt(val.$date.$numberLong, 10))}")`
                                  : `ISODate("${new Date(
                                      parseInt(val.$date.$numberLong, 10),
                                    ).toISOString()}")`
                            Severity: Major
                            Found in src/utils/ejson.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return {
                                  bsonType: ['object'],
                                  properties: mapValues(omit(doc, ['__v']), generate) as {
                                    [key: string]: Schema
                                  },
                              Severity: Major
                              Found in src/utils/schema.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return <IndexInfo value={props.item} />
                                Severity: Major
                                Found in src/components/pure/index-cell.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return {
                                        bsonType: ['regex'],
                                      }
                                  Severity: Major
                                  Found in src/utils/schema.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return {
                                          bsonType: ['binData'],
                                        }
                                    Severity: Major
                                    Found in src/utils/schema.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return `ObjectId("${val.$oid}")`
                                      Severity: Major
                                      Found in src/utils/ejson.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return `/${val.$regularExpression.pattern}/${
                                              val.$regularExpression.options || ''
                                            }`
                                        Severity: Major
                                        Found in src/utils/ejson.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language