fh1ch/node-bacstack

View on GitHub

Showing 365 of 365 total issues

Avoid too many return statements within this function.
Open

      if (!result) return debug('Received invalid getEventInformation 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-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.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 subscribeCOV 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 TimeSync 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 EventNotify 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/write-property.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                    return {
                      len: len,
                      objectId: objectId,
                      values: _values
                    };
                  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.decodeIsOpeningTagNumber(buffer, offset + len, 2)) 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 privateTransfer message');
                      Severity: Major
                      Found in lib/client.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-read-file.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, 3)) return;
                            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.decodeIsClosingTagNumber(buffer, offset + len, 3)) return;
                              Severity: Major
                              Found in lib/services/read-property.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

                                        if (!result) return debug('Received invalid atomicWriteFile 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 createObject 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,
                                          endOfFile: endOfFile,
                                          isStream: isStream,
                                          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 {
                                            len: len,
                                            isStream: isStream,
                                            objectId: objectId,
                                            position: position,
                                        Severity: Major
                                        Found in lib/services/atomic-write-file.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language