Showing 49 of 103 total issues
File SoulProvider.cs
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Regulus.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
Class SocketMessage
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public sealed class SocketMessage
{
public const int SeqIndex = 0;
public const int AckIndex = SeqIndex + 2;
public const int AckbitsIndex = AckIndex + 2;
Class SoulProvider
has 28 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class SoulProvider : IDisposable, IBinder
{
private readonly IdLandlord _IdLandlord;
private readonly Queue<byte[]> _EventFilter ;
File GhostProviderQueryer.cs
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Regulus.Remote.Extensions;
using Regulus.Remote.Packages;
using Regulus.Utility;
using System;
using System.Collections.Generic;
Method Mod
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public ClassAndTypes Mod(ClassDeclarationSyntax type)
{
var methods = type.DescendantNodes().OfType<MethodDeclarationSyntax>();
type = _ModifyMethodParameters(type, methods);
Class GhostProviderQueryer
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class GhostProviderQueryer
{
private readonly AutoRelease<long ,IGhost> _AutoRelease;
private readonly Dictionary<Type, IProvider> _Providers;
Class MemberMap
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class MemberMap : IEqualityComparer<Type>, IEqualityComparer<PropertyInfo>, IEqualityComparer<EventInfo>, IEqualityComparer<MethodInfo>, IEqualityComparer<int>
{
private readonly BilateralMap<int, MethodInfo> _Methods;
private readonly BilateralMap<int, EventInfo> _Events;
Method CreateRegulusRemoteIEventProxyCreater
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static ClassDeclarationSyntax CreateRegulusRemoteIEventProxyCreater(this EventDeclarationSyntax eds)
{
var een = eds.ExplicitInterfaceSpecifier.Name.ToString().Replace('.', '_');
Method _OnResponse
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void _OnResponse(ServerToClientOpCode code, byte[] args)
{
_UpdateAutoRelease();
if (code == ServerToClientOpCode.Ping)
{
Method Constructor
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static ConstructorDeclarationSyntax Constructor(SyntaxToken name)
{
return ConstructorDeclaration(
name
)
Method Mod
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public PropertyAndBlock Mod(System.Collections.Generic.IEnumerable<SyntaxNode> nodes)
{
var block = nodes.Skip(0).FirstOrDefault() as BlockSyntax;
var ad = nodes.Skip(1).FirstOrDefault() as AccessorDeclarationSyntax;
var al = nodes.Skip(2).FirstOrDefault() as AccessorListSyntax;
Method Mod
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public BlockAndEvent Mod(System.Collections.Generic.IEnumerable<SyntaxNode> nodes)
{
var block = nodes.Skip(0).FirstOrDefault() as BlockSyntax;
var ad = nodes.Skip(1).FirstOrDefault() as AccessorDeclarationSyntax;
Method ToInferredInterface
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static InterfaceDeclarationSyntax ToInferredInterface(this INamedTypeSymbol symbol)
{
var syntax = SyntaxFactory.InterfaceDeclaration(symbol.Name);
Method ToObject
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
int ITypeDescriber.ToObject(byte[] buffer, int begin, out object instance)
{
ulong value;
int readed = Varint.BufferToNumber(buffer, begin, out value);
Method Mod
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public BlockAndTypes Mod(System.Collections.Generic.IEnumerable<SyntaxNode> nodes)
{
var block = nodes.Skip(0).FirstOrDefault() as BlockSyntax;
var md = nodes.Skip(1).FirstOrDefault() as MethodDeclarationSyntax;
var cd = nodes.Skip(2).FirstOrDefault() as ClassDeclarationSyntax;
Method _InvokeMethod
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void _InvokeMethod(long entity_id, int method_id, long returnId, byte[][] args)
{
SoulProxy soul;
if (!_Souls.TryGetValue(entity_id, out soul))
Method Mod
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public BlockAndTypes Mod(System.Collections.Generic.IEnumerable<SyntaxNode> nodes)
{
var block = nodes.Skip(0).FirstOrDefault() as BlockSyntax;
var md = nodes.Skip(1).FirstOrDefault() as MethodDeclarationSyntax;
var cd = nodes.Skip(2).FirstOrDefault() as ClassDeclarationSyntax;
Method PopLost
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<SocketMessage> PopLost(long Ticks, long Delta)
{
int count = m_Capacity;
List<SocketMessage> packages = new List<SocketMessage>();
foreach (Item item in m_Items.Values)
Method GetNamePath
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string GetNamePath(this BaseTypeDeclarationSyntax syntax)
{
var names = new System.Collections.Generic.Stack<string>();
Method Read
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public int Read(byte[] buffer, int offset, int buffer_count)
{
lock (_Packages)
{
int count = buffer_count < buffer.Length ? buffer_count : buffer.Length;