Preparing report...

Report for github.com/gleke/hexya

A+    Excellent!    Found 13 issues across 153 files

Tweet

gofmt99%

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


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!


gocyclo92%

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.


golint98%

Golint is a linter for Go source code.

    • hexya/src/tests/testmodule/models.go
    • Line 44: warning: don't use underscores in Go names; var fields_User should be fieldsUser (golint)
    • Line 70: warning: don't use underscores in Go names; func user_DecorateEmail should be userDecorateEmail (golint)
    • Line 74: warning: don't use underscores in Go names; func user_OnChangeName should be userOnChangeName (golint)
    • Line 78: warning: don't use underscores in Go names; func user_ComputeDecoratedName should be userComputeDecoratedName (golint)
    • Line 82: warning: don't use underscores in Go names; func user_ComputeAge should be userComputeAge (golint)
    • Line 86: warning: don't use underscores in Go names; func user_PrefixedUser should be userPrefixedUser (golint)
    • Line 94: warning: don't use underscores in Go names; func user_ext_DecorateEmail should be userExtDecorateEmail (golint)
    • Line 99: warning: don't use underscores in Go names; func user_RecursiveMethod should be userRecursiveMethod (golint)
    • Line 106: warning: don't use underscores in Go names; func user_ext_RecursiveMethod should be userExtRecursiveMethod (golint)
    • Line 112: warning: don't use underscores in Go names; func user_SubSetSuper should be userSubSetSuper (golint)
    • Line 120: warning: don't use underscores in Go names; func user_ext_SubSetSuper should be userExtSubSetSuper (golint)
    • Line 129: warning: don't use underscores in Go names; func user_InverseSetAge should be userInverseSetAge (golint)
    • Line 133: warning: don't use underscores in Go names; func user_ext_PrefixedUser should be userExtPrefixedUser (golint)
    • Line 141: warning: don't use underscores in Go names; func user_UpdateCity should be userUpdateCity (golint)
    • Line 145: warning: don't use underscores in Go names; func user_Aggregates should be userAggregates (golint)
    • Line 149: warning: don't use underscores in Go names; var fields_Profile should be fieldsProfile (golint)
    • Line 160: warning: don't use underscores in Go names; func profile_PrintAddress should be profilePrintAddress (golint)
    • Line 165: warning: don't use underscores in Go names; func profile_ext_PrintAddress should be profileExtPrintAddress (golint)
    • Line 170: warning: don't use underscores in Go names; var fields_Post should be fieldsPost (golint)
    • Line 184: warning: don't use underscores in Go names; func post_Create should be postCreate (golint)
    • Line 189: warning: don't use underscores in Go names; func post_Search should be postSearch (golint)
    • Line 194: warning: don't use underscores in Go names; var fields_Comment should be fieldsComment (golint)
    • Line 201: warning: don't use underscores in Go names; var fields_Tag should be fieldsTag (golint)
    • Line 210: warning: don't use underscores in Go names; func tag_CheckNameDescription should be tagCheckNameDescription (golint)
    • Line 216: warning: don't use underscores in Go names; func tag_CheckRate should be tagCheckRate (golint)
    • Line 222: warning: don't use underscores in Go names; var fields_Resume should be fieldsResume (golint)
    • Line 229: warning: don't use underscores in Go names; func resume_Create should be resumeCreate (golint)
    • Line 233: warning: don't use underscores in Go names; func resume_ComputeOther should be resumeComputeOther (golint)
    • Line 237: warning: don't use underscores in Go names; var fields_AddressMixIn should be fieldsAddressMixIn (golint)
    • Line 243: warning: don't use underscores in Go names; func addressMixIn_SayHello should be addressMixInSayHello (golint)
    • Line 247: warning: don't use underscores in Go names; func addressMixIn_PrintAddress should be addressMixInPrintAddress (golint)
    • Line 251: warning: don't use underscores in Go names; func addressMixIn_ext_PrintAddress should be addressMixInExtPrintAddress (golint)
    • Line 256: warning: don't use underscores in Go names; var fields_ActiveMixin should be fieldsActiveMixin (golint)
    • Line 260: warning: don't use underscores in Go names; func activeMixIn_IsActivated should be activeMixInIsActivated (golint)
    • Line 264: warning: don't use underscores in Go names; var fields_UserView should be fieldsUserView (golint)
    • hexya/src/tools/xmlutils/xml.go
    • Line 91: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 96: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 100: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 105: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!