GyrosWorkshop/Wukong

View on GitHub

Showing 8 of 8 total issues

Method MultipleUser has 118 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Fact]
        public void MultipleUser()
        {
            var list = new ChannelUserList();
            var userAdd = false;
Severity: Major
Found in Wukong.Tests/ChannelUserListTest.cs - About 4 hrs to fix

    Method SingleUser has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Fact]
            public void SingleUser()
            {
                var list = new ChannelUserList();
                var userAdd = false;
    Severity: Major
    Found in Wukong.Tests/ChannelUserListTest.cs - About 2 hrs to fix

      Method ConfigureServices has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void ConfigureServices(IServiceCollection services)
              {
                  services.Configure<SettingOptions>(Configuration);
                  Configuration.Bind(settings);
      
      
      Severity: Minor
      Found in Wukong/Startup.cs - About 1 hr to fix

        Method BroadcastPlayCurrentSong has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                private async void BroadcastPlayCurrentSong(UserSong current, string userId = null)
                {
                    if (current?.Song != null)
                    {
                        Song song;
        Severity: Minor
        Found in Wukong/Services/Channel.cs - About 1 hr to fix

          Method GetSong has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public async Task<Song> GetSong(ClientSong clientSong, bool requestUrl = false)
                  {
                      if (clientSong == null)
                      {
                          return null;
          Severity: Minor
          Found in Wukong/Services/Provider.cs - About 1 hr to fix

            Method StartMonitorSocket has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    private async Task StartMonitorSocket(string userId, WebSocket socket)
                    {
                        try
                        {
                            while (socket != null && socket.State == WebSocketState.Open)
            Severity: Minor
            Found in Wukong/Services/Socket.cs - About 1 hr to fix

              Method GetOrCreateChannel has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      Channel GetOrCreateChannel(string channelId, ISocketManager socketManager, IProvider provider, IUserManager userManager, IMemoryCache cache);
              Severity: Minor
              Found in Wukong/Services/Storage.cs - About 35 mins to fix

                Method GetOrCreateChannel has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        public Channel GetOrCreateChannel(string channelId, ISocketManager socketManager, IProvider provider, IUserManager userManager, IMemoryCache cache)
                Severity: Minor
                Found in Wukong/Services/Storage.cs - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language