cs-util-com/cscore

View on GitHub

Showing 1,140 of 1,140 total issues

Avoid too many return statements within this method.
Open

            return 1;

    Avoid too many return statements within this method.
    Open

                    return BsonValue.Null;

      Avoid too many return statements within this method.
      Open

                  else if (value is IDictionary) return new BsonDocument((IDictionary)value);

        Avoid too many return statements within this method.
        Open

                    else if (value is DateTime) return new BsonValue((DateTime)value);

          Avoid too many return statements within this method.
          Open

                          return reader.ReadInt32();

            Avoid too many return statements within this method.
            Open

                            return BsonValue.MaxValue;

              Avoid too many return statements within this method.
              Open

                          else if (value is Byte[]) return new BsonValue((Byte[])value);

                Avoid too many return statements within this method.
                Open

                            else if (value is Boolean) return new BsonValue((Boolean)value);

                  Avoid too many return statements within this method.
                  Open

                                              return 0;

                    Avoid too many return statements within this method.
                    Open

                                else if (value is BsonValue) return new BsonValue((BsonValue)value);

                      Avoid too many return statements within this method.
                      Open

                                          return false;

                        Avoid too many return statements within this method.
                        Open

                                        if (stream.stbi__get16be() != 3) return null;

                          Avoid too many return statements within this method.
                          Open

                                          return null;
                          Severity: Major
                          Found in CsCore/PlainNetClassLib/src/Plugins/CsCore/libs/AsyncLock/AsyncLock.cs - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return new ImageInfo
                                            {
                                                Width = width,
                                                Height = height,
                                                ColorComponents = ColorComponents.RedGreenBlueAlpha,

                              Avoid too many return statements within this method.
                              Open

                                          else if (value is ObjectId) return new BsonValue((ObjectId)value);

                                Avoid too many return statements within this method.
                                Open

                                            else if (value is IDictionary<string, BsonValue>) return new BsonDocument((IDictionary<string, BsonValue>)value);

                                  Avoid too many return statements within this method.
                                  Open

                                                          return 1;

                                    Avoid too many return statements within this method.
                                    Open

                                                return 1;

                                      Avoid too many return statements within this method.
                                      Open

                                                      if (ts == -62135596800000) return DateTime.MinValue;

                                        Avoid too many return statements within this method.
                                        Open

                                                            return false;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language