CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/Newtonsoft.Json/Bson/BsonBinaryWriter.cs

Summary

Maintainability
C
1 day
Test Coverage

Method WriteTokenInternal has 114 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private void WriteTokenInternal(BsonToken t)
        {
            switch (t.Type)
            {
                case BsonType.Object:

    Method CalculateSize has 77 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private int CalculateSize(BsonToken t)
            {
                switch (t.Type)
                {
                    case BsonType.Object:

      File BsonBinaryWriter.cs has 270 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using System.Globalization;
      using System.IO;
      using System.Text;
      using Newtonsoft.Json.Utilities;

        Avoid too many return statements within this method.
        Open

                            return value.CalculatedSize;

          There are no issues that match your filters.

          Category
          Status