jiowchern/Regulus

View on GitHub

Showing 49 of 103 total issues

Method _ToMethod has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private static MethodDeclarationSyntax _ToMethod(IMethodSymbol methodSymbol)
        {
            var retType = _GetTypeSyntax(methodSymbol.ReturnType);
            var method = SyntaxFactory.MethodDeclaration(retType, methodSymbol.Name);
            var list = SyntaxFactory.ParameterList();
Severity: Minor
Found in Regulus.Remote.Tools.Protocol.Sources/SyntaxExtensions.cs - About 1 hr to fix

    Method _Run has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private void _Run(object state)
            {
                ManualResetEvent mre = new ManualResetEvent(true);
    
                while (_Enable)
    Severity: Minor
    Found in Regulus.Network/SocketSender.cs - About 1 hr to fix

      Method Execute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public static System.Reflection.MethodInfo Execute(this System.Linq.Expressions.Expression<GetObjectAccesserMethod> arg )
              {
                  var e0 = arg.Reduce();
                  System.Linq.Expressions.LambdaExpression e1;            
                  if (e0.IsNotType(out e1))
      Severity: Minor
      Found in Regulus.Remote/ExpressionsExtensions.cs - About 1 hr to fix

        Method ToObject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                int ITypeDescriber.ToObject(byte[] buffer, int begin, out object instnace)
                {
                    try
                    {
                        int offset = begin;
        Severity: Minor
        Found in Regulus.Serialization/ArrayDescriber.cs - About 1 hr to fix

          Method _GetSet has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private ValidObjectSet _GetSet(object instance)
                  {
                      IList array = instance as IList;
          
                      int validLength = 0;
          Severity: Minor
          Found in Regulus.Serialization/ArrayDescriber.cs - About 1 hr to fix

            Method InvokeEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public void InvokeEvent(int event_id, long handler_id, byte[][] event_params)
                    {
                        IGhost ghost = _Base.GetTargetOrException(); 
            
                        MemberMap map = _MemberMap;
            Severity: Minor
            Found in Regulus.Remote/GhostResponseHandler.cs - About 1 hr to fix

              Method ObjectToBuffer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public byte[] ObjectToBuffer(object instance)
                      {
              
                          try
                          {
              Severity: Minor
              Found in Regulus.Serialization/Serializer.cs - About 1 hr to fix

                Method Execute has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        void ISourceGenerator.Execute(GeneratorExecutionContext context)
                        {
                            
                
                            var logger = new DialogProvider();
                Severity: Minor
                Found in Regulus.Remote.Tools.Protocol.Sources/SourceGenerator.cs - About 1 hr to fix

                  Method GetValue0 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          Regulus.Remote.Value<int[]> GetValue0(int _1, string _2, float _3, double _4, decimal _5, System.Guid _6);
                  Severity: Minor
                  Found in Regulus.Remote.Tools.Protocol.Sources.TestCommon/IMethodable.cs - About 45 mins to fix

                    Method GetValue0 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            Value<int[]> IMethodable.GetValue0(int _1, string _2, float _3, double _4, decimal _5, Guid _6)
                    Severity: Minor
                    Found in Regulus.Remote.Tools.Protocol.Sources.TestCommon/MethodTester.cs - About 45 mins to fix

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

                              private IAsyncResult _Send(byte[] buffer, int offset, int buffer_length, AsyncCallback handler, object obj)
                      Severity: Minor
                      Found in Regulus.Network/Tcp/Peer.cs - About 35 mins to fix

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

                                private int _ToBuffer(object instance, byte[] buffer, int offset, int index, FieldInfo field)
                        Severity: Minor
                        Found in Regulus.Serialization/ClassDescriber.cs - About 35 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return null;

                            Avoid too many return statements within this method.
                            Open

                                        return new BlockAndTypes
                                        {
                                            Block = SyntaxFactory.Block(SyntaxFactory.ParseStatement(
                                                            $@"
                            var returnValue = new {returnType}();

                              Avoid too many return statements within this method.
                              Open

                                          return new FieldAndTypes() { Field = _CreateGhostEventHandler(name), Types = types};
                              Severity: Major
                              Found in Regulus.Remote.Tools.Protocol.Sources/EventFieldDeclarationSyntax.cs - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return new BlockAndTypes
                                            {
                                                Block = SyntaxFactory.Block(SyntaxFactory.ParseStatement(
                                $@"var info = typeof({interfaceCode}).GetMethod(""{methodCode}"");
                                this._CallMethodEvent(info , new object[] {{{methodCallParamsCode}}} , null);", 0)),
                                Severity: Major
                                Found in Regulus.Remote.Tools.Protocol.Sources/MethodVoid.cs - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return null;

                                    Avoid too many return statements within this method.
                                    Open

                                                        return null;
                                    Severity: Major
                                    Found in Regulus.Remote.Tools.Protocol.Sources/EventBlockModifier.cs - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return null;
                                      Severity: Major
                                      Found in Regulus.Remote.Tools.Protocol.Sources/MethodVoid.cs - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return null;
                                        Severity: Major
                                        Found in Regulus.Remote.Tools.Protocol.Sources/PropertyRegulusRemoteBlock.cs - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language