fh1ch/node-bacstack

View on GitHub

Showing 217 of 365 total issues

Avoid too many return statements within this function.
Open

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

    Avoid too many return statements within this function.
    Open

      return value;
    Severity: Major
    Found in lib/services/subscribe-property.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        if (!baAsn1.decodeIsContextTag(buffer, offset + len, 11)) 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,
            subscriberProcessId: subscriberProcessId,
            initiatingDeviceId: initiatingDeviceId,
            monitoredObjectId: monitoredObjectId,
        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 deviceCommunicationControl 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.SIGNED_INTEGER) return;
            Severity: Major
            Found in lib/services/atomic-read-file.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

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

                Avoid too many return statements within this function.
                Open

                  return value;
                Severity: Major
                Found in lib/services/who-is.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        if (result.tagNumber !== baEnum.ApplicationTags.OCTET_STRING) 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 (!baAsn1.decodeIsContextTag(buffer, offset + len, 8)) 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

                            if (!decodedValue) 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 covNotify message');
                        Severity: Major
                        Found in lib/client.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            return {
                              enrollmentSummaries: enrollmentSummaries,
                              len: len
                            };
                          Severity: Major
                          Found in lib/services/get-enrollment-summary.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              return {
                                len: len,
                                objectId: objectId,
                                value: value
                              };
                            Severity: Major
                            Found in lib/services/write-property.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                if (!baAsn1.decodeIsContextTag(buffer, offset + len, 4)) 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

                                  if (!baAsn1.decodeIsContextTag(buffer, offset + len, 6)) 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

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

                                    Avoid too many return statements within this function.
                                    Open

                                          if (!decodeIsClosingTagNumber(buffer, offset + len, 5)) return;
                                    Severity: Major
                                    Found in lib/asn1.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                        return {
                                          len: len,
                                          value: value
                                        };
                                      Severity: Major
                                      Found in lib/asn1.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          if (!decodeIsOpeningTagNumber(buffer, offset + len, 1)) return;
                                        Severity: Major
                                        Found in lib/asn1.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language