fh1ch/node-bacstack

View on GitHub

Showing 365 of 365 total issues

Avoid too many return statements within this function.
Open

    if ((result.tagNumber !== 2) || (!baAsn1.decodeIsOpeningTag(buffer, offset + len - 1))) return;
Severity: Major
Found in lib/services/write-property-multiple.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return eventData;
    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: offset - orgOffset,
          deviceId: deviceId,
          maxApdu: maxApdu,
          segmentation: segmentation,
      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.tagNumber !== baEnum.ApplicationTags.UNSIGNED_INTEGER) return;
        Severity: Major
        Found in lib/services/get-enrollment-summary.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                if (!result) return debug('Received invalid addListElement 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 privateTransfer message');
            Severity: Major
            Found in lib/client.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  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 (!baAsn1.decodeIsClosingTagNumber(buffer, offset + len, 1)) 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 (!result) return debug('Received invalid reinitializeDevice 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 readRange message');
                    Severity: Major
                    Found in lib/client.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        if (!baAsn1.decodeIsContextTag(buffer, offset + len, 5)) 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,
                            objectId: objectId,
                            property: property
                          };
                        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.value > 0xFFFF) 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 atomicReadFile 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 eventNotifyData 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 alarmAcknowledge 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 ihaveBroadcast message');
                                  Severity: Major
                                  Found in lib/client.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                      return {
                                        len: len,
                                        objectId: objectId,
                                        values: valueList
                                      };
                                    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/write-property-multiple.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              if (!baAsn1.decodeIsContextTag(buffer, offset + len, 10)) return;
                                        Severity: Major
                                        Found in lib/services/event-notify-data.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language