logging/id.go
Function typeName
has 6 return statements (exceeds 4 allowed). Open
Open
func typeName(typ reflect.Type) string {
if typ == nil {
return "nil"
}
name := typ.Name()
Your code does not pass gofmt in 3 places. Go fmt your code! Open
Open
// Copyright 2018 Google Inc.
- Exclude checks
func nameAndId should be nameAndID Open
Open
func nameAndId(thing interface{}) (name string, id ident) {
- Exclude checks
var parentId should be parentID Open
Open
if parentId := nodes[childId].parent; !parentId.zero() {
- Exclude checks
var parentId should be parentID Open
Open
parentName, parentId := nameAndId(parent)
- Exclude checks
var childId should be childID Open
Open
childName, childId := nameAndId(child)
- Exclude checks
var childId should be childID Open
Open
oldName, childId := nameAndId(child)
- Exclude checks
var rootId should be rootID Open
Open
var rootId = identify(Root)
- Exclude checks
var thingId should be thingID Open
Open
thingName, thingId := nameAndId(thing)
- Exclude checks