fh1ch/node-bacstack

View on GitHub

Showing 217 of 365 total issues

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

      return {
        len: len,
        isStream: isStream,
        objectId: objectId,
        position: position,
    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 (!value) 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

          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

              return value;
            Severity: Major
            Found in lib/services/get-event-information.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.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 (!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

                        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

                          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.decodeIsClosingTagNumber(buffer, offset + len, 0)) 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 (!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

                                    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.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 (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

                                      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 (!result) return;
                                      Severity: Major
                                      Found in lib/asn1.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              if (!result) return;
                                        Severity: Major
                                        Found in lib/asn1.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language