fh1ch/node-bacstack

View on GitHub

Showing 217 of 365 total issues

Avoid too many return statements within this function.
Open

  return {
    len: len,
    objectId: objectId,
    property: property,
    values: values
Severity: Major
Found in lib/services/read-property.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          if (!result) return debug('Received invalid deleteObject message');
    Severity: Major
    Found in lib/client.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        if (result.tagNumber !== 1) return;
      Severity: Major
      Found in lib/services/who-is.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          if (!baAsn1.decodeIsOpeningTagNumber(buffer, offset + len, 4)) return;
        Severity: Major
        Found in lib/services/cov-notify.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                if (!result) return debug('Received invalid lifeSafetyOperation message');
          Severity: Major
          Found in lib/client.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              if (result.tagNumber !== baEnum.ApplicationTags.UNSIGNED_INTEGER) return;
            Severity: Major
            Found in lib/services/i-am-broadcast.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    if (!result) return debug('Received invalid getEntrollmentSummary message');
              Severity: Major
              Found in lib/client.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      if (!result) return debug('Received invalid removeListElement message');
                Severity: Major
                Found in lib/client.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          if (!decodedValue) return;
                  Severity: Major
                  Found in lib/services/create-object.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return;
                    Severity: Major
                    Found in lib/services/atomic-write-file.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        if (len < apduLen) return;
                      Severity: Major
                      Found in lib/services/read-property.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              if (!result) return debug('Received invalid TimeSyncUTC message');
                        Severity: Major
                        Found in lib/client.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              if (result.tagNumber !== baEnum.ApplicationTags.UNSIGNED_INTEGER) return;
                          Severity: Major
                          Found in lib/services/atomic-write-file.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              if (eventData.priority > 0xFF) return;
                            Severity: Major
                            Found in lib/services/event-notify-data.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return {
                                  len: len,
                                  isStream: isStream,
                                  objectId: objectId,
                                  position: position,
                              Severity: Major
                              Found in lib/services/atomic-read-file.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return;
                                Severity: Major
                                Found in lib/services/create-object.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    if (!baAsn1.decodeIsClosingTagNumber(buffer, offset + len, 1)) return;
                                  Severity: Major
                                  Found in lib/services/create-object.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                      if (result.value > baEnum.Segmentation.NO_SEGMENTATION) return;
                                    Severity: Major
                                    Found in lib/services/i-am-broadcast.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          if (!baAsn1.decodeIsContextTag(buffer, offset + len, 0)) return;
                                      Severity: Major
                                      Found in lib/services/cov-notify.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            if (result.tagNumber !== baEnum.ApplicationTags.UNSIGNED_INTEGER) return;
                                        Severity: Major
                                        Found in lib/services/atomic-read-file.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language