xmidt-org/wrp-go

View on GitHub
messages_codec.go

Summary

Maintainability
F
2 mos
Test Coverage

Method Message.CodecEncodeSelf has a Cognitive Complexity of 528 (exceeds 20 allowed). Consider refactoring.
Open

func (x *Message) CodecEncodeSelf(e *codec1978.Encoder) {
    var h codecSelfer3232
    z, r := codec1978.GenHelper().Encoder(e)
    _, _, _ = h, z, r
    if z.EncBasicHandle().CheckCircularRef {
Severity: Minor
Found in messages_codec.go - About 1 wk to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File messages_codec.go has 3371 lines of code (exceeds 500 allowed). Consider refactoring.
Open

//go:build go1.6
// +build go1.6

// Code generated by codecgen - DO NOT EDIT.

Severity: Major
Found in messages_codec.go - About 1 wk to fix

    Method SimpleRequestResponse.CodecEncodeSelf has a Cognitive Complexity of 404 (exceeds 20 allowed). Consider refactoring.
    Open

    func (x *SimpleRequestResponse) CodecEncodeSelf(e *codec1978.Encoder) {
        var h codecSelfer3232
        z, r := codec1978.GenHelper().Encoder(e)
        _, _, _ = h, z, r
        if z.EncBasicHandle().CheckCircularRef {
    Severity: Minor
    Found in messages_codec.go - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method CRUD.CodecEncodeSelf has a Cognitive Complexity of 390 (exceeds 20 allowed). Consider refactoring.
    Open

    func (x *CRUD) CodecEncodeSelf(e *codec1978.Encoder) {
        var h codecSelfer3232
        z, r := codec1978.GenHelper().Encoder(e)
        _, _, _ = h, z, r
        if z.EncBasicHandle().CheckCircularRef {
    Severity: Minor
    Found in messages_codec.go - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method SimpleEvent.CodecEncodeSelf has a Cognitive Complexity of 228 (exceeds 20 allowed). Consider refactoring.
    Open

    func (x *SimpleEvent) CodecEncodeSelf(e *codec1978.Encoder) {
        var h codecSelfer3232
        z, r := codec1978.GenHelper().Encoder(e)
        _, _, _ = h, z, r
        if z.EncBasicHandle().CheckCircularRef {
    Severity: Minor
    Found in messages_codec.go - About 4 days to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method Message.CodecEncodeSelf has 610 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (x *Message) CodecEncodeSelf(e *codec1978.Encoder) {
        var h codecSelfer3232
        z, r := codec1978.GenHelper().Encoder(e)
        _, _, _ = h, z, r
        if z.EncBasicHandle().CheckCircularRef {
    Severity: Major
    Found in messages_codec.go - About 2 days to fix

      Method SimpleRequestResponse.CodecEncodeSelf has 471 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (x *SimpleRequestResponse) CodecEncodeSelf(e *codec1978.Encoder) {
          var h codecSelfer3232
          z, r := codec1978.GenHelper().Encoder(e)
          _, _, _ = h, z, r
          if z.EncBasicHandle().CheckCircularRef {
      Severity: Major
      Found in messages_codec.go - About 2 days to fix

        Method CRUD.CodecEncodeSelf has 463 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func (x *CRUD) CodecEncodeSelf(e *codec1978.Encoder) {
            var h codecSelfer3232
            z, r := codec1978.GenHelper().Encoder(e)
            _, _, _ = h, z, r
            if z.EncBasicHandle().CheckCircularRef {
        Severity: Major
        Found in messages_codec.go - About 2 days to fix

          Method SimpleEvent.CodecEncodeSelf has 281 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

          func (x *SimpleEvent) CodecEncodeSelf(e *codec1978.Encoder) {
              var h codecSelfer3232
              z, r := codec1978.GenHelper().Encoder(e)
              _, _, _ = h, z, r
              if z.EncBasicHandle().CheckCircularRef {
          Severity: Major
          Found in messages_codec.go - About 1 day to fix

            Method Message.codecDecodeSelfFromArray has 197 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

            func (x *Message) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                var h codecSelfer3232
                z, r := codec1978.GenHelper().Decoder(d)
                _, _, _ = h, z, r
                var yyj33 int
            Severity: Major
            Found in messages_codec.go - About 6 hrs to fix

              Method CRUD.codecDecodeSelfFromArray has 153 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func (x *CRUD) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                  var h codecSelfer3232
                  z, r := codec1978.GenHelper().Decoder(d)
                  _, _, _ = h, z, r
                  var yyj27 int
              Severity: Major
              Found in messages_codec.go - About 5 hrs to fix

                Method SimpleRequestResponse.codecDecodeSelfFromArray has 153 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                func (x *SimpleRequestResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                    var h codecSelfer3232
                    z, r := codec1978.GenHelper().Decoder(d)
                    _, _, _ = h, z, r
                    var yyj27 int
                Severity: Major
                Found in messages_codec.go - About 5 hrs to fix

                  Method Message.codecDecodeSelfFromMap has a Cognitive Complexity of 47 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *Message) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyhl3 bool = l >= 0
                  Severity: Minor
                  Found in messages_codec.go - About 4 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method SimpleRequestResponse.codecDecodeSelfFromMap has a Cognitive Complexity of 43 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *SimpleRequestResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyhl3 bool = l >= 0
                  Severity: Minor
                  Found in messages_codec.go - About 4 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method CRUD.codecDecodeSelfFromMap has a Cognitive Complexity of 43 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *CRUD) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyhl3 bool = l >= 0
                  Severity: Minor
                  Found in messages_codec.go - About 4 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method Message.codecDecodeSelfFromArray has a Cognitive Complexity of 42 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *Message) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyj33 int
                  Severity: Minor
                  Found in messages_codec.go - About 3 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method codecSelfer3232.decSliceSlicestring has a Cognitive Complexity of 42 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x codecSelfer3232) decSliceSlicestring(v *[][]string, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                  
                  
                  Severity: Minor
                  Found in messages_codec.go - About 3 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method ServiceRegistration.CodecEncodeSelf has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *ServiceRegistration) CodecEncodeSelf(e *codec1978.Encoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Encoder(e)
                      _, _, _ = h, z, r
                      if z.EncBasicHandle().CheckCircularRef {
                  Severity: Minor
                  Found in messages_codec.go - About 2 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method SimpleRequestResponse.codecDecodeSelfFromArray has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *SimpleRequestResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyj27 int
                  Severity: Minor
                  Found in messages_codec.go - About 2 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method CRUD.codecDecodeSelfFromArray has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                  Open

                  func (x *CRUD) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyj27 int
                  Severity: Minor
                  Found in messages_codec.go - About 2 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Method Message.codecDecodeSelfFromMap has 86 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func (x *Message) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                      var h codecSelfer3232
                      z, r := codec1978.GenHelper().Decoder(d)
                      _, _, _ = h, z, r
                      var yyhl3 bool = l >= 0
                  Severity: Major
                  Found in messages_codec.go - About 2 hrs to fix

                    Method SimpleEvent.codecDecodeSelfFromArray has 86 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func (x *SimpleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                        var h codecSelfer3232
                        z, r := codec1978.GenHelper().Decoder(d)
                        _, _, _ = h, z, r
                        var yyj18 int
                    Severity: Major
                    Found in messages_codec.go - About 2 hrs to fix

                      Method ServiceRegistration.CodecEncodeSelf has 74 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

                      func (x *ServiceRegistration) CodecEncodeSelf(e *codec1978.Encoder) {
                          var h codecSelfer3232
                          z, r := codec1978.GenHelper().Encoder(e)
                          _, _, _ = h, z, r
                          if z.EncBasicHandle().CheckCircularRef {
                      Severity: Minor
                      Found in messages_codec.go - About 1 hr to fix

                        Method codecSelfer3232.decSliceSlicestring has 73 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func (x codecSelfer3232) decSliceSlicestring(v *[][]string, d *codec1978.Decoder) {
                            var h codecSelfer3232
                            z, r := codec1978.GenHelper().Decoder(d)
                            _, _, _ = h, z, r
                        
                        
                        Severity: Minor
                        Found in messages_codec.go - About 1 hr to fix

                          Method CRUD.codecDecodeSelfFromMap has 72 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

                          func (x *CRUD) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                              var h codecSelfer3232
                              z, r := codec1978.GenHelper().Decoder(d)
                              _, _, _ = h, z, r
                              var yyhl3 bool = l >= 0
                          Severity: Minor
                          Found in messages_codec.go - About 1 hr to fix

                            Method SimpleRequestResponse.codecDecodeSelfFromMap has 72 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

                            func (x *SimpleRequestResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                                var h codecSelfer3232
                                z, r := codec1978.GenHelper().Decoder(d)
                                _, _, _ = h, z, r
                                var yyhl3 bool = l >= 0
                            Severity: Minor
                            Found in messages_codec.go - About 1 hr to fix

                              Method Message.codecDecodeSelfFromArray has 19 return statements (exceeds 4 allowed).
                              Open

                              func (x *Message) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                  var h codecSelfer3232
                                  z, r := codec1978.GenHelper().Decoder(d)
                                  _, _, _ = h, z, r
                                  var yyj33 int
                              Severity: Major
                              Found in messages_codec.go - About 1 hr to fix

                                Method CRUD.codecDecodeSelfFromArray has 14 return statements (exceeds 4 allowed).
                                Open

                                func (x *CRUD) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                    var h codecSelfer3232
                                    z, r := codec1978.GenHelper().Decoder(d)
                                    _, _, _ = h, z, r
                                    var yyj27 int
                                Severity: Major
                                Found in messages_codec.go - About 1 hr to fix

                                  Method SimpleRequestResponse.codecDecodeSelfFromArray has 14 return statements (exceeds 4 allowed).
                                  Open

                                  func (x *SimpleRequestResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                      var h codecSelfer3232
                                      z, r := codec1978.GenHelper().Decoder(d)
                                      _, _, _ = h, z, r
                                      var yyj27 int
                                  Severity: Major
                                  Found in messages_codec.go - About 1 hr to fix

                                    Method Unknown.CodecEncodeSelf has a Cognitive Complexity of 25 (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    func (x *Unknown) CodecEncodeSelf(e *codec1978.Encoder) {
                                        var h codecSelfer3232
                                        z, r := codec1978.GenHelper().Encoder(e)
                                        _, _, _ = h, z, r
                                        if z.EncBasicHandle().CheckCircularRef {
                                    Severity: Minor
                                    Found in messages_codec.go - About 1 hr to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Method ServiceAlive.CodecEncodeSelf has a Cognitive Complexity of 25 (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    func (x *ServiceAlive) CodecEncodeSelf(e *codec1978.Encoder) {
                                        var h codecSelfer3232
                                        z, r := codec1978.GenHelper().Encoder(e)
                                        _, _, _ = h, z, r
                                        if z.EncBasicHandle().CheckCircularRef {
                                    Severity: Minor
                                    Found in messages_codec.go - About 1 hr to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Method SimpleEvent.codecDecodeSelfFromArray has 9 return statements (exceeds 4 allowed).
                                    Open

                                    func (x *SimpleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                        var h codecSelfer3232
                                        z, r := codec1978.GenHelper().Decoder(d)
                                        _, _, _ = h, z, r
                                        var yyj18 int
                                    Severity: Major
                                    Found in messages_codec.go - About 55 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if z.IsJSONHandle() {
                                                              z.EncWr().WriteStr("\"payload\"")
                                                          } else {
                                                              r.EncodeString(`payload`)
                                                          }
                                      Severity: Major
                                      Found in messages_codec.go - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if z.IsJSONHandle() {
                                                                z.EncWr().WriteStr("\"rdr\"")
                                                            } else {
                                                                r.EncodeString(`rdr`)
                                                            }
                                        Severity: Major
                                        Found in messages_codec.go - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                              if z.IsJSONHandle() {
                                                                  z.EncWr().WriteStr("\"source\"")
                                                              } else {
                                                                  r.EncodeString(`source`)
                                                              }
                                          Severity: Major
                                          Found in messages_codec.go - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                if z.IsJSONHandle() {
                                                                    z.EncWr().WriteStr("\"rdr\"")
                                                                } else {
                                                                    r.EncodeString(`rdr`)
                                                                }
                                            Severity: Major
                                            Found in messages_codec.go - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                              if yyrl1 <= cap(yyv1) {
                                                                  yyv1 = yyv1[:yyrl1]
                                                              } else {
                                                                  yyv1 = make([][]string, yyrl1)
                                                              }
                                              Severity: Major
                                              Found in messages_codec.go - About 45 mins to fix

                                                Avoid deeply nested control flow statements.
                                                Open

                                                                    if z.IsJSONHandle() {
                                                                        z.EncWr().WriteStr("\"status\"")
                                                                    } else {
                                                                        r.EncodeString(`status`)
                                                                    }
                                                Severity: Major
                                                Found in messages_codec.go - About 45 mins to fix

                                                  Avoid deeply nested control flow statements.
                                                  Open

                                                                      if x.Payload == nil {
                                                                          r.EncodeNil()
                                                                      } else {
                                                                          r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                      } // end block: if x.Payload slice == nil
                                                  Severity: Major
                                                  Found in messages_codec.go - About 45 mins to fix

                                                    Avoid deeply nested control flow statements.
                                                    Open

                                                                        if yyn14 {
                                                                            r.EncodeNil()
                                                                        } else {
                                                                            yy48 := *x.IncludeSpans
                                                                            r.EncodeBool(bool(yy48))
                                                    Severity: Major
                                                    Found in messages_codec.go - About 45 mins to fix

                                                      Avoid deeply nested control flow statements.
                                                      Open

                                                                          if z.IsJSONHandle() {
                                                                              z.EncWr().WriteStr("\"dest\"")
                                                                          } else {
                                                                              r.EncodeString(`dest`)
                                                                          }
                                                      Severity: Major
                                                      Found in messages_codec.go - About 45 mins to fix

                                                        Avoid deeply nested control flow statements.
                                                        Open

                                                                            if yyn9 {
                                                                                r.EncodeNil()
                                                                            } else {
                                                                                yy72 := *x.Status
                                                                                r.EncodeInt(int64(yy72))
                                                        Severity: Major
                                                        Found in messages_codec.go - About 45 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                              if x.PartnerIDs == nil {
                                                                                  r.EncodeNil()
                                                                              } else {
                                                                                  z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                              } // end block: if x.PartnerIDs slice == nil
                                                          Severity: Major
                                                          Found in messages_codec.go - About 45 mins to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                                if z.IsJSONHandle() {
                                                                                    z.EncWr().WriteStr("\"url\"")
                                                                                } else {
                                                                                    r.EncodeString(`url`)
                                                                                }
                                                            Severity: Major
                                                            Found in messages_codec.go - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                                  if yyn10 {
                                                                                      r.EncodeNil()
                                                                                  } else {
                                                                                      yy59 := *x.RequestDeliveryResponse
                                                                                      r.EncodeInt(int64(yy59))
                                                              Severity: Major
                                                              Found in messages_codec.go - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                                    if yyn14 {
                                                                                        r.EncodeNil()
                                                                                    } else {
                                                                                        yy38 := *x.IncludeSpans
                                                                                        r.EncodeBool(bool(yy38))
                                                                Severity: Major
                                                                Found in messages_codec.go - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                                      if x.PartnerIDs == nil {
                                                                                          r.EncodeNil()
                                                                                      } else {
                                                                                          z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                      } // end block: if x.PartnerIDs slice == nil
                                                                  Severity: Major
                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                                        if x.PartnerIDs == nil {
                                                                                            r.EncodeNil()
                                                                                        } else {
                                                                                            z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                        } // end block: if x.PartnerIDs slice == nil
                                                                    Severity: Major
                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                      Avoid deeply nested control flow statements.
                                                                      Open

                                                                                          if z.IsJSONHandle() {
                                                                                              z.EncWr().WriteStr("\"payload\"")
                                                                                          } else {
                                                                                              r.EncodeString(`payload`)
                                                                                          }
                                                                      Severity: Major
                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                        Avoid deeply nested control flow statements.
                                                                        Open

                                                                                            if x.Headers == nil {
                                                                                                r.EncodeNil()
                                                                                            } else {
                                                                                                z.F.EncSliceStringV(x.Headers, e)
                                                                                            } // end block: if x.Headers slice == nil
                                                                        Severity: Major
                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                          Avoid deeply nested control flow statements.
                                                                          Open

                                                                                              if z.IsJSONHandle() {
                                                                                                  z.EncWr().WriteStr("\"dest\"")
                                                                                              } else {
                                                                                                  r.EncodeString(`dest`)
                                                                                              }
                                                                          Severity: Major
                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                            Avoid deeply nested control flow statements.
                                                                            Open

                                                                                                if z.IsJSONHandle() {
                                                                                                    z.EncWr().WriteStr("\"spans\"")
                                                                                                } else {
                                                                                                    r.EncodeString(`spans`)
                                                                                                }
                                                                            Severity: Major
                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                              Avoid deeply nested control flow statements.
                                                                              Open

                                                                                                  if x.Spans == nil {
                                                                                                      r.EncodeNil()
                                                                                                  } else {
                                                                                                      h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                  } // end block: if x.Spans slice == nil
                                                                              Severity: Major
                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                                    if x.PartnerIDs == nil {
                                                                                                        r.EncodeNil()
                                                                                                    } else {
                                                                                                        z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                                    } // end block: if x.PartnerIDs slice == nil
                                                                                Severity: Major
                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                                      if x.Payload == nil {
                                                                                                          r.EncodeNil()
                                                                                                      } else {
                                                                                                          r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                      } // end block: if x.Payload slice == nil
                                                                                  Severity: Major
                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                        if yyn11 {
                                                                                                            r.EncodeNil()
                                                                                                        } else {
                                                                                                            yy37 := *x.IncludeSpans
                                                                                                            r.EncodeBool(bool(yy37))
                                                                                    Severity: Major
                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                          if z.IsJSONHandle() {
                                                                                                              z.EncWr().WriteStr("\"payload\"")
                                                                                                          } else {
                                                                                                              r.EncodeString(`payload`)
                                                                                                          }
                                                                                      Severity: Major
                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                        Avoid deeply nested control flow statements.
                                                                                        Open

                                                                                                            if x.Payload == nil {
                                                                                                                r.EncodeNil()
                                                                                                            } else {
                                                                                                                r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                            } // end block: if x.Payload slice == nil
                                                                                        Severity: Major
                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                              if z.IsJSONHandle() {
                                                                                                                  z.EncWr().WriteStr("\"rdr\"")
                                                                                                              } else {
                                                                                                                  r.EncodeString(`rdr`)
                                                                                                              }
                                                                                          Severity: Major
                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                                if yyn12 {
                                                                                                                    r.EncodeNil()
                                                                                                                } else {
                                                                                                                    yy61 := *x.Status
                                                                                                                    r.EncodeInt(int64(yy61))
                                                                                            Severity: Major
                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                  if z.IsJSONHandle() {
                                                                                                                      z.EncWr().WriteStr("\"status\"")
                                                                                                                  } else {
                                                                                                                      r.EncodeString(`status`)
                                                                                                                  }
                                                                                              Severity: Major
                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                Avoid deeply nested control flow statements.
                                                                                                Open

                                                                                                                    if z.IsJSONHandle() {
                                                                                                                        z.EncWr().WriteStr("\"payload\"")
                                                                                                                    } else {
                                                                                                                        r.EncodeString(`payload`)
                                                                                                                    }
                                                                                                Severity: Major
                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                                      if x.Payload == nil {
                                                                                                                          r.EncodeNil()
                                                                                                                      } else {
                                                                                                                          r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                                      } // end block: if x.Payload slice == nil
                                                                                                  Severity: Major
                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                        if yyn9 {
                                                                                                                            r.EncodeNil()
                                                                                                                        } else {
                                                                                                                            yy62 := *x.Status
                                                                                                                            r.EncodeInt(int64(yy62))
                                                                                                    Severity: Major
                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                          if z.IsJSONHandle() {
                                                                                                                              z.EncWr().WriteStr("\"path\"")
                                                                                                                          } else {
                                                                                                                              r.EncodeString(`path`)
                                                                                                                          }
                                                                                                      Severity: Major
                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                            if yyn10 {
                                                                                                                                r.EncodeNil()
                                                                                                                            } else {
                                                                                                                                yy44 := *x.RequestDeliveryResponse
                                                                                                                                r.EncodeInt(int64(yy44))
                                                                                                        Severity: Major
                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                  z.EncWr().WriteStr("\"spans\"")
                                                                                                                              } else {
                                                                                                                                  r.EncodeString(`spans`)
                                                                                                                              }
                                                                                                          Severity: Major
                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                                if z.IsJSONHandle() {
                                                                                                                                    z.EncWr().WriteStr("\"accept\"")
                                                                                                                                } else {
                                                                                                                                    r.EncodeString(`accept`)
                                                                                                                                }
                                                                                                            Severity: Major
                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                      z.EncWr().WriteStr("\"headers\"")
                                                                                                                                  } else {
                                                                                                                                      r.EncodeString(`headers`)
                                                                                                                                  }
                                                                                                              Severity: Major
                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                    if x.Metadata == nil {
                                                                                                                                        r.EncodeNil()
                                                                                                                                    } else {
                                                                                                                                        z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                    } // end block: if x.Metadata map == nil
                                                                                                                Severity: Major
                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                      if yyn14 {
                                                                                                                                          r.EncodeNil()
                                                                                                                                      } else {
                                                                                                                                          yy64 := *x.IncludeSpans
                                                                                                                                          r.EncodeBool(bool(yy64))
                                                                                                                  Severity: Major
                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                        if yyn13 {
                                                                                                                                            r.EncodeNil()
                                                                                                                                        } else {
                                                                                                                                            yy44 := *x.RequestDeliveryResponse
                                                                                                                                            r.EncodeInt(int64(yy44))
                                                                                                                    Severity: Major
                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                              z.EncWr().WriteStr("\"spans\"")
                                                                                                                                          } else {
                                                                                                                                              r.EncodeString(`spans`)
                                                                                                                                          }
                                                                                                                      Severity: Major
                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                        if yyhl1 {
                                                                                                                                            yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
                                                                                                                                        } else {
                                                                                                                                            yyrl1 = 8
                                                                                                                                        }
                                                                                                                        Severity: Major
                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                          Open

                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                  z.EncWr().WriteStr("\"accept\"")
                                                                                                                                              } else {
                                                                                                                                                  r.EncodeString(`accept`)
                                                                                                                                              }
                                                                                                                          Severity: Major
                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                if z.IsJSONHandle() {
                                                                                                                                                    z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                } else {
                                                                                                                                                    r.EncodeString(`payload`)
                                                                                                                                                }
                                                                                                                            Severity: Major
                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                  if x.Headers == nil {
                                                                                                                                                      r.EncodeNil()
                                                                                                                                                  } else {
                                                                                                                                                      z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                  } // end block: if x.Headers slice == nil
                                                                                                                              Severity: Major
                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                    if x.PartnerIDs == nil {
                                                                                                                                                        r.EncodeNil()
                                                                                                                                                    } else {
                                                                                                                                                        z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                                                                                    } // end block: if x.PartnerIDs slice == nil
                                                                                                                                Severity: Major
                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                              } else if yyl1 != len(yyv1) {
                                                                                                                                                  yyv1 = yyv1[:yyl1]
                                                                                                                                                  yyc1 = true
                                                                                                                                              }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                        if z.IsJSONHandle() {
                                                                                                                                                            z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                        } else {
                                                                                                                                                            r.EncodeString(`headers`)
                                                                                                                                                        }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                          if x.Headers == nil {
                                                                                                                                                              r.EncodeNil()
                                                                                                                                                          } else {
                                                                                                                                                              z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                          } // end block: if x.Headers slice == nil
                                                                                                                                      Severity: Major
                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                            } else {
                                                                                                                                                                r.EncodeString(`rdr`)
                                                                                                                                                            }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                  z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                              } else {
                                                                                                                                                                  r.EncodeString(`headers`)
                                                                                                                                                              }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                if x.Metadata == nil {
                                                                                                                                                                    r.EncodeNil()
                                                                                                                                                                } else {
                                                                                                                                                                    z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                } // end block: if x.Metadata map == nil
                                                                                                                                            Severity: Major
                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                  if x.Spans == nil {
                                                                                                                                                                      r.EncodeNil()
                                                                                                                                                                  } else {
                                                                                                                                                                      h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                                                                                  } // end block: if x.Spans slice == nil
                                                                                                                                              Severity: Major
                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                    if z.IsJSONHandle() {
                                                                                                                                                                        z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                    } else {
                                                                                                                                                                        r.EncodeString(`spans`)
                                                                                                                                                                    }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                      if x.Payload == nil {
                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                      } else {
                                                                                                                                                                          r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                                                                                      } // end block: if x.Payload slice == nil
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                        if x.Headers == nil {
                                                                                                                                                                            r.EncodeNil()
                                                                                                                                                                        } else {
                                                                                                                                                                            z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                                        } // end block: if x.Headers slice == nil
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                                                              z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                          } else {
                                                                                                                                                                              r.EncodeString(`payload`)
                                                                                                                                                                          }
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                            } else {
                                                                                                                                                                                r.EncodeString(`payload`)
                                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                                  z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                              } else {
                                                                                                                                                                                  r.EncodeString(`headers`)
                                                                                                                                                                              }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                if yyn13 {
                                                                                                                                                                                    r.EncodeNil()
                                                                                                                                                                                } else {
                                                                                                                                                                                    yy63 := *x.RequestDeliveryResponse
                                                                                                                                                                                    r.EncodeInt(int64(yy63))
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                                                                      z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                  } else {
                                                                                                                                                                                      r.EncodeString(`metadata`)
                                                                                                                                                                                  }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                    if x.Metadata == nil {
                                                                                                                                                                                        r.EncodeNil()
                                                                                                                                                                                    } else {
                                                                                                                                                                                        z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                    } // end block: if x.Metadata map == nil
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                      if yyn10 {
                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                      } else {
                                                                                                                                                                                          yy74 := *x.RequestDeliveryResponse
                                                                                                                                                                                          r.EncodeInt(int64(yy74))
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                        if z.IsJSONHandle() {
                                                                                                                                                                                            z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                        } else {
                                                                                                                                                                                            r.EncodeString(`headers`)
                                                                                                                                                                                        }
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                                                                              z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                          } else {
                                                                                                                                                                                              r.EncodeString(`metadata`)
                                                                                                                                                                                          }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                            if x.Spans == nil {
                                                                                                                                                                                                r.EncodeNil()
                                                                                                                                                                                            } else {
                                                                                                                                                                                                h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                                                                                                            } // end block: if x.Spans slice == nil
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                                                  z.EncWr().WriteStr("\"source\"")
                                                                                                                                                                                              } else {
                                                                                                                                                                                                  r.EncodeString(`source`)
                                                                                                                                                                                              }
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                if z.IsJSONHandle() {
                                                                                                                                                                                                    z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                } else {
                                                                                                                                                                                                    r.EncodeString(`status`)
                                                                                                                                                                                                }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                                                                                      z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                  } else {
                                                                                                                                                                                                      r.EncodeString(`metadata`)
                                                                                                                                                                                                  }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                    if z.IsJSONHandle() {
                                                                                                                                                                                                        z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                    } else {
                                                                                                                                                                                                        r.EncodeString(`rdr`)
                                                                                                                                                                                                    }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                      if z.IsJSONHandle() {
                                                                                                                                                                                                          z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                      } else {
                                                                                                                                                                                                          r.EncodeString(`metadata`)
                                                                                                                                                                                                      }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                        if z.IsJSONHandle() {
                                                                                                                                                                                                            z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                        } else {
                                                                                                                                                                                                            r.EncodeString(`status`)
                                                                                                                                                                                                        }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                                                                                              z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                          } else {
                                                                                                                                                                                                              r.EncodeString(`metadata`)
                                                                                                                                                                                                          }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                r.EncodeString(`metadata`)
                                                                                                                                                                                                            }
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                                                                  z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                  r.EncodeString(`headers`)
                                                                                                                                                                                                              }
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                if z.IsJSONHandle() {
                                                                                                                                                                                                                    z.EncWr().WriteStr("\"path\"")
                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                    r.EncodeString(`path`)
                                                                                                                                                                                                                }
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                                                                                                      z.EncWr().WriteStr("\"url\"")
                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                      r.EncodeString(`url`)
                                                                                                                                                                                                                  }
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                    if yyn9 {
                                                                                                                                                                                                                        r.EncodeNil()
                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                        yy57 := *x.Status
                                                                                                                                                                                                                        r.EncodeInt(int64(yy57))
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                                      if x.Headers == nil {
                                                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                          z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                                                                                      } // end block: if x.Headers slice == nil
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        if z.IsJSONHandle() {
                                                                                                                                                                                                                            z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                            r.EncodeString(`headers`)
                                                                                                                                                                                                                        }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          if x.Spans == nil {
                                                                                                                                                                                                                              r.EncodeNil()
                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                              h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                                                                                                                                          } // end block: if x.Spans slice == nil
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                            if x.Metadata == nil {
                                                                                                                                                                                                                                r.EncodeNil()
                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                                                            } // end block: if x.Metadata map == nil
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                                                                                  z.EncWr().WriteStr("\"accept\"")
                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                  r.EncodeString(`accept`)
                                                                                                                                                                                                                              }
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                if yyn10 {
                                                                                                                                                                                                                                    r.EncodeNil()
                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                    yy56 := *x.RequestDeliveryResponse
                                                                                                                                                                                                                                    r.EncodeInt(int64(yy56))
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                  if x.Metadata == nil {
                                                                                                                                                                                                                                      r.EncodeNil()
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                      z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                                                                  } // end block: if x.Metadata map == nil
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                    if z.IsJSONHandle() {
                                                                                                                                                                                                                                        z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                        r.EncodeString(`spans`)
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                      if x.Payload == nil {
                                                                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                          r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                                                                                                                                                      } // end block: if x.Payload slice == nil
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                        if x.Metadata == nil {
                                                                                                                                                                                                                                            r.EncodeNil()
                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                            z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                                                                        } // end block: if x.Metadata map == nil
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                                                                                                                              z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                              r.EncodeString(`payload`)
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                            if x.Payload == nil {
                                                                                                                                                                                                                                                r.EncodeNil()
                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                                                                                                                                                            } // end block: if x.Payload slice == nil
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                              if x.PartnerIDs == nil {
                                                                                                                                                                                                                                                  r.EncodeNil()
                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                  z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                                                                                                                                                                              } // end block: if x.PartnerIDs slice == nil
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                if x.Payload == nil {
                                                                                                                                                                                                                                                    r.EncodeNil()
                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                    r.EncodeStringBytesRaw([]byte(x.Payload))
                                                                                                                                                                                                                                                } // end block: if x.Payload slice == nil
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                                                                                                                                      z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                      r.EncodeString(`spans`)
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                    if x.Spans == nil {
                                                                                                                                                                                                                                                        r.EncodeNil()
                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                        h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                                                                                                                                                                    } // end block: if x.Spans slice == nil
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                      if yyn14 {
                                                                                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                          yy79 := *x.IncludeSpans
                                                                                                                                                                                                                                                          r.EncodeBool(bool(yy79))
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                        if x.Headers == nil {
                                                                                                                                                                                                                                                            r.EncodeNil()
                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                            z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                                                                                                                        } // end block: if x.Headers slice == nil
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                          if x.PartnerIDs == nil {
                                                                                                                                                                                                                                                              r.EncodeNil()
                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                              z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                                                                                                                                                                                          } // end block: if x.PartnerIDs slice == nil
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                            if x.PartnerIDs == nil {
                                                                                                                                                                                                                                                                r.EncodeNil()
                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                z.F.EncSliceStringV(x.PartnerIDs, e)
                                                                                                                                                                                                                                                            } // end block: if x.PartnerIDs slice == nil
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                              if x.Headers == nil {
                                                                                                                                                                                                                                                                  r.EncodeNil()
                                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                                  z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                                                                                                                              } // end block: if x.Headers slice == nil
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                    z.EncWr().WriteStr("\"accept\"")
                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                    r.EncodeString(`accept`)
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                  if x.Metadata == nil {
                                                                                                                                                                                                                                                                      r.EncodeNil()
                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                      z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                                                                                                  } // end block: if x.Metadata map == nil
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                    if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                        z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                        r.EncodeString(`status`)
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                      if yyn9 {
                                                                                                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                          yy48 := *x.Status
                                                                                                                                                                                                                                                                          r.EncodeInt(int64(yy48))
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                            z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                            r.EncodeString(`status`)
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                          if yyn11 {
                                                                                                                                                                                                                                                                              r.EncodeNil()
                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                              yy59 := *x.IncludeSpans
                                                                                                                                                                                                                                                                              r.EncodeBool(bool(yy59))
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                            if x.Spans == nil {
                                                                                                                                                                                                                                                                                r.EncodeNil()
                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                                h.encSliceSlicestring(([][]string)(x.Spans), e)
                                                                                                                                                                                                                                                                            } // end block: if x.Spans slice == nil
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                              if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                  z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                                                  r.EncodeString(`headers`)
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                if x.Headers == nil {
                                                                                                                                                                                                                                                                                    r.EncodeNil()
                                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                                                    z.F.EncSliceStringV(x.Headers, e)
                                                                                                                                                                                                                                                                                } // end block: if x.Headers slice == nil
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                  if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                      z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                      r.EncodeString(`metadata`)
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                    if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                        z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                        r.EncodeString(`metadata`)
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                      if x.Metadata == nil {
                                                                                                                                                                                                                                                                                          r.EncodeNil()
                                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                                          z.F.EncMapStringStringV(x.Metadata, e)
                                                                                                                                                                                                                                                                                      } // end block: if x.Metadata map == nil
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        if yyn12 {
                                                                                                                                                                                                                                                                                            r.EncodeNil()
                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            yy48 := *x.Status
                                                                                                                                                                                                                                                                                            r.EncodeInt(int64(yy48))
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                          if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                              z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                                              r.EncodeString(`rdr`)
                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in messages_codec.go - About 45 mins to fix

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *ServiceAlive) CodecEncodeSelf(e *codec1978.Encoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Encoder(e)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            if z.EncBasicHandle().CheckCircularRef {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3210..3257

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 492.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *Unknown) CodecEncodeSelf(e *codec1978.Encoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Encoder(e)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            if z.EncBasicHandle().CheckCircularRef {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3084..3131

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 492.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *Unknown) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            var yyj6 int
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3180..3203

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 268.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *ServiceAlive) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            var yyj6 int
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3306..3329

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 268.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *ServiceAlive) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            var yyhl3 bool = l >= 0
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3284..3304

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 249.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *Unknown) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            var yyhl3 bool = l >= 0
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3158..3178

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 249.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                        z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                        r.EncodeString(`msg_type`)
                                                                                                                                                                                                                                                                                        z.EncWriteMapElemValue()
                                                                                                                                                                                                                                                                                        if yyxt12 := z.Extension(x.Type); yyxt12 != nil {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2939..2960

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 225.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    if z.EncBasicHandle().Canonical {
                                                                                                                                                                                                                                                                                        z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                        r.EncodeString(`msg_type`)
                                                                                                                                                                                                                                                                                        z.EncWriteMapElemValue()
                                                                                                                                                                                                                                                                                        if yyxt9 := z.Extension(x.Type); yyxt9 != nil {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2960..2981

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 225.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *ServiceAlive) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *ServiceRegistration) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *SimpleRequestResponse) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *SimpleEvent) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *Message) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *CRUD) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3259..3282

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        func (x *Unknown) CodecDecodeSelf(d *codec1978.Decoder) {
                                                                                                                                                                                                                                                                            var h codecSelfer3232
                                                                                                                                                                                                                                                                            z, r := codec1978.GenHelper().Decoder(d)
                                                                                                                                                                                                                                                                            _, _, _ = h, z, r
                                                                                                                                                                                                                                                                            yyct2 := r.ContainerType()
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 688..711
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1481..1504
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2026..2049
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2649..2672
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2987..3010
                                                                                                                                                                                                                                                                        messages_codec.go on lines 3133..3156

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 220.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 435..448
                                                                                                                                                                                                                                                                        messages_codec.go on lines 589..602
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1286..1299
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2456..2469
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2556..2569

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 435..448
                                                                                                                                                                                                                                                                        messages_codec.go on lines 589..602
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1286..1299
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1426..1439
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2556..2569

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 589..602
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1286..1299
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1426..1439
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2456..2469
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2556..2569

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 435..448
                                                                                                                                                                                                                                                                        messages_codec.go on lines 589..602
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1286..1299
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1426..1439
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2456..2469

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 435..448
                                                                                                                                                                                                                                                                        messages_codec.go on lines 589..602
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1426..1439
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2456..2469
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2556..2569

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"spans\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 435..448
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1286..1299
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1426..1439
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2456..2469
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2556..2569

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                            return !(x.Type != 0 || x.Source != "" || x.Destination != "" || x.TransactionUUID != "" || x.ContentType != "" || x.Accept != "" || len(x.Headers) != 0 || len(x.Metadata) != 0 || len(x.Spans) != 0 || x.Path != "" || len(x.Payload) != 0 || x.ServiceName != "" || x.URL != "" || len(x.PartnerIDs) != 0 || x.SessionID != "" || x.QualityOfService != 0 || false)
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1738..1738

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[12] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[12] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[12] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[12] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[13] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                            return !(x.Type != 0 || x.Source != "" || x.Destination != "" || x.ContentType != "" || x.Accept != "" || x.TransactionUUID != "" || len(x.Headers) != 0 || len(x.Metadata) != 0 || len(x.Spans) != 0 || len(x.Payload) != 0 || len(x.PartnerIDs) != 0 || false)
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1003..1003

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 372..385
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[13] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"payload\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 7 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 624..637
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1249..1262
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1451..1464
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1903..1916
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1990..2003
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2419..2432
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2619..2632

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[4] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[5] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[8] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[8] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[4] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[5] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[8] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[8] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"headers\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[5] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[5] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2379..2392
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 16 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"metadata\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 15 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 305..318
                                                                                                                                                                                                                                                                        messages_codec.go on lines 330..343
                                                                                                                                                                                                                                                                        messages_codec.go on lines 561..574
                                                                                                                                                                                                                                                                        messages_codec.go on lines 575..588
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1192..1205
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1217..1230
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1398..1411
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1412..1425
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1857..1870
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1871..1884
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1962..1975
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1976..1989
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2354..2367
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2528..2541
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2542..2555

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 117.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[10] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[6] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[7] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"rdr\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2470..2484
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                        if yyq2[9] {
                                                                                                                                                                                                                                                                                            z.EncWriteMapElemKey()
                                                                                                                                                                                                                                                                                            if z.IsJSONHandle() {
                                                                                                                                                                                                                                                                                                z.EncWr().WriteStr("\"status\"")
                                                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in messages_codec.go and 11 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                        messages_codec.go on lines 398..412
                                                                                                                                                                                                                                                                        messages_codec.go on lines 449..463
                                                                                                                                                                                                                                                                        messages_codec.go on lines 531..545
                                                                                                                                                                                                                                                                        messages_codec.go on lines 546..560
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1263..1277
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1300..1314
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1368..1382
                                                                                                                                                                                                                                                                        messages_codec.go on lines 1383..1397
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2433..2447
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2581..2595
                                                                                                                                                                                                                                                                        messages_codec.go on lines 2596..2610

                                                                                                                                                                                                                                                                        Duplicated Code

                                                                                                                                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                                                                                                                                        Category
                                                                                                                                                                                                                                                                        Status