copconfig.json empty?

Issue #8 resolved
Former user created an issue

How do I declare a config file to be empty? i.e. do nothing

I have tried removing bits and pieces but the application always seem to crash on startup.

Comments (3)

  1. Ricardo Barbosa

    Hi,

    Thanks for reporting this issue.

    Please upgrade to 1.3.2 and use the Disabled property inside the JSON file like so:

    -For an empty file:

    {
    "Disabled": "true"
    }
    

    For a JSON file that already has interceptors and you want to disable them

    {
      "Types": [
    
        {
          "TypeName": "CodeCop.Tests.Class1, CodeCop.Tests",
          "Methods": [
            {
              "MethodSignature": "Method1()",
              "Interceptors": [ "BeforeAfterInterceptor" ]
            },
            {
              "MethodSignature": "Method2[T](T)",
              "Interceptors": [ "BeforeAfterInterceptor" ]
            },
            {
              "MethodSignature": "Method3[T,U](T,U)",
              "Interceptors": [ "BeforeAfterInterceptor" ]
            },
            {
              "MethodSignature": "Method4[T,U,V](T,U,V ByRef)",
              "Interceptors": [ "BeforeOverriderAfterInterceptor3" ]
            },
            {
              "MethodSignature": "Method5[T,U,V](T,U,V ByRef)",
              "Interceptors": [ "BeforeOverriderAfterInterceptor4" ]
            }
          ],
          "GenericArgumentTypes": [ ]
        }
      ],
      "GlobalInterceptors": [ ],
      "Key": "",
      "Disabled" : "true"
    }
    

    Please tell us if that fixed the issue for you.

    Thanks,

    -- Ricardo

    P.S. - A suggestion, please try to use a non-anonymous account to receive notifications from our replies via email

  2. Ricardo Barbosa

    We will close this issue now. Please re-open if the proposed solution didn't work out for you.

  3. Log in to comment