Preparing report...

Report for github.com/mikioh/stun

A+    Excellent!    Found 10 issues across 22 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo90%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint68%

Golint is a linter for Go source code.

    • stun/attr_turn.go
    • Line 46: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 159: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 179: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 187: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • stun/const.go
    • Line 35: warning: don't use underscores in Go names; const attrMAPPED_ADDRESS should be attrMAPPEDADDRESS (golint)
    • Line 36: warning: don't use underscores in Go names; const attrCHANGE_REQUEST should be attrCHANGEREQUEST (golint)
    • Line 38: warning: don't use underscores in Go names; const attrMESSAGE_INTEGRITY should be attrMESSAGEINTEGRITY (golint)
    • Line 39: warning: don't use underscores in Go names; const attrERROR_CODE should be attrERRORCODE (golint)
    • Line 40: warning: don't use underscores in Go names; const attrUNKNOWN_ATTRIBUTES should be attrUNKNOWNATTRIBUTES (golint)
    • Line 41: warning: don't use underscores in Go names; const attrCHANNEL_NUMBER should be attrCHANNELNUMBER (golint)
    • Line 43: warning: don't use underscores in Go names; const attrXOR_PEER_ADDRESS should be attrXORPEERADDRESS (golint)
    • Line 47: warning: don't use underscores in Go names; const attrXOR_RELAYED_ADDRESS should be attrXORRELAYEDADDRESS (golint)
    • Line 48: warning: don't use underscores in Go names; const attrREQUESTED_ADDRESS_FAMILY should be attrREQUESTEDADDRESSFAMILY (golint)
    • Line 49: warning: don't use underscores in Go names; const attrEVEN_PORT should be attrEVENPORT (golint)
    • Line 50: warning: don't use underscores in Go names; const attrREQUESTED_TRANSPORT should be attrREQUESTEDTRANSPORT (golint)
    • Line 51: warning: don't use underscores in Go names; const attrDONT_FRAGMENT should be attrDONTFRAGMENT (golint)
    • Line 52: warning: don't use underscores in Go names; const attrACCESS_TOKEN should be attrACCESSTOKEN (golint)
    • Line 53: warning: don't use underscores in Go names; const attrXOR_MAPPED_ADDRESS should be attrXORMAPPEDADDRESS (golint)
    • Line 54: warning: don't use underscores in Go names; const attrRESERVATION_TOKEN should be attrRESERVATIONTOKEN (golint)
    • Line 56: warning: don't use underscores in Go names; const attrUSE_CANDIDATE should be attrUSECANDIDATE (golint)
    • Line 58: warning: don't use underscores in Go names; const attrRESPONSE_PORT should be attrRESPONSEPORT (golint)
    • Line 59: warning: don't use underscores in Go names; const attrCONNECTION_ID should be attrCONNECTIONID (golint)
    • Line 61: warning: don't use underscores in Go names; const attrALTERNATE_SERVER should be attrALTERNATESERVER (golint)
    • Line 62: warning: don't use underscores in Go names; const attrTRANSACTION_TRANSMIT_COUNTER should be attrTRANSACTIONTRANSMITCOUNTER (golint)
    • Line 63: warning: don't use underscores in Go names; const attrCACHE_TIMEOUT should be attrCACHETIMEOUT (golint)
    • Line 65: warning: don't use underscores in Go names; const attrICE_CONTROLLED should be attrICECONTROLLED (golint)
    • Line 66: warning: don't use underscores in Go names; const attrICE_CONTROLLING should be attrICECONTROLLING (golint)
    • Line 67: warning: don't use underscores in Go names; const attrRESPONSE_ORIGIN should be attrRESPONSEORIGIN (golint)
    • Line 68: warning: don't use underscores in Go names; const attrOTHER_ADDRESS should be attrOTHERADDRESS (golint)
    • Line 69: warning: don't use underscores in Go names; const attrECN_CHECK_STUN should be attrECNCHECKSTUN (golint)
    • Line 70: warning: don't use underscores in Go names; const attrTHIRD_PARTY_AUTHORIZATION should be attrTHIRDPARTYAUTHORIZATION (golint)
    • Line 71: warning: don't use underscores in Go names; const attrMOBILITY_TICKET should be attrMOBILITYTICKET (golint)
    • Line 72: warning: don't use underscores in Go names; const attrCISCO_STUN_FLOWDATA should be attrCISCOSTUNFLOWDATA (golint)
    • Line 73: warning: don't use underscores in Go names; const attrENF_FLOW_DESCRIPTION should be attrENFFLOWDESCRIPTION (golint)
    • Line 74: warning: don't use underscores in Go names; const attrENF_NETWORK_STATUS should be attrENFNETWORKSTATUS (golint)
    • stun/const_tram.go
    • Line 8: warning: don't use underscores in Go names; const attrMESSAGE_INTEGRITY_SHA256 should be attrMESSAGEINTEGRITYSHA256 (golint)
    • Line 9: warning: don't use underscores in Go names; const attrPASSWORD_ALGORITHM should be attrPASSWORDALGORITHM (golint)
    • Line 11: warning: don't use underscores in Go names; const attrPASSWORD_ALGORITHMS should be attrPASSWORDALGORITHMS (golint)
    • Line 12: warning: don't use underscores in Go names; const attrALTERNATE_DOMAIN should be attrALTERNATEDOMAIN (golint)
    • stun/message.go
    • Line 43: warning: exported const ClassRequest should have comment (or a comment on this block) or be unexported (golint)
    • stun/attr_ice.go
    • Line 13: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 21: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 41: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 49: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • stun/attr_integrity.go
    • Line 15: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 28: warning: receiver name should not be an underscore, omit the name if it is unused (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!