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 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 utcDate ? date : date.ToLocalTime();

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                          if (tga_comp == 0) return null;

            Avoid too many return statements within this method.
            Open

                            return new ImageInfo
                            {
                                Width = tga_w,
                                Height = tga_h,
                                ColorComponents = (ColorComponents)tga_comp,

              Avoid too many return statements within this method.
              Open

                                      return 0;

                Avoid too many return statements within this method.
                Open

                                return reader.ReadBoolean();

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

                                  return h.values[c];

                        Avoid too many return statements within this method.
                        Open

                                                                return 0;

                          Avoid too many return statements within this method.
                          Open

                                      return 1;

                            Avoid too many return statements within this method.
                            Open

                                        return true;

                              Avoid too many return statements within this method.
                              Open

                                          try { return jsonReader.Read<T>(respText); } catch (JsonReaderException e) { throw new JsonReaderException("Cant parse to JSON: " + respText, e); }

                                Avoid too many return statements within this method.
                                Open

                                                return 1;

                                  Avoid too many return statements within this method.
                                  Open

                                              return true;

                                    Avoid too many return statements within this method.
                                    Open

                                                return collected.Count == storage.Count;

                                      Avoid too many return statements within this method.
                                      Open

                                                      return (T)(object)respText;

                                        Avoid too many return statements within this method.
                                        Open

                                                        return null;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language