Preparing report...

Report for github.com/AkihiroSuda/aspectgo

A+    Excellent!    Found 19 issues across 42 files

Tweet

gofmt95%

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!


gocyclo100%

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.

No problems detected. Good job!


golint54%

Golint is a linter for Go source code.

    • aspectgo/example/detreplay/main_aspect.go
    • Line 12: warning: exported type DetAspect should have comment or be unexported (golint)
    • Line 15: warning: exported method DetAspect.Pointcut should have comment or be unexported (golint)
    • Line 19: warning: exported method DetAspect.Advice should have comment or be unexported (golint)
    • aspectgo/example/hello/main_aspect.go
    • Line 14: warning: comment on exported method ExampleAspect.Pointcut should be of the form "Pointcut ..." (golint)
    • Line 21: warning: comment on exported method ExampleAspect.Advice should be of the form "Advice ..." (golint)
    • aspectgo/example/hello2/main_aspect.go
    • Line 15: warning: comment on exported method ExampleAspect.Pointcut should be of the form "Pointcut ..." (golint)
    • Line 22: warning: comment on exported method ExampleAspect.Advice should be of the form "Advice ..." (golint)
    • Line 35: warning: exported method FmtPrintlnAspect.Pointcut should have comment or be unexported (golint)
    • Line 40: warning: exported method FmtPrintlnAspect.Advice should have comment or be unexported (golint)
    • aspectgo/example/multipointcut/main_aspect.go
    • Line 15: warning: exported method Aspect1.Pointcut should have comment or be unexported (golint)
    • Line 21: warning: exported method Aspect1.Advice should have comment or be unexported (golint)
    • Line 32: warning: exported method Aspect2.Pointcut should have comment or be unexported (golint)
    • Line 38: warning: exported method Aspect2.Advice should have comment or be unexported (golint)
    • aspectgo/example/receiver/main_aspect.go
    • Line 14: warning: exported method SAspect.Pointcut should have comment or be unexported (golint)
    • Line 18: warning: exported method SAspect.Advice should have comment or be unexported (golint)
    • Line 26: warning: exported method IAspect.Pointcut should have comment or be unexported (golint)
    • Line 30: warning: exported method IAspect.Advice should have comment or be unexported (golint)
    • aspectgo/example/receiver2/main_aspect.go
    • Line 10: warning: exported type Pkg1SAspect should have comment or be unexported (golint)
    • Line 13: warning: exported method Pkg1SAspect.Pointcut should have comment or be unexported (golint)
    • Line 17: warning: exported method Pkg1SAspect.Advice should have comment or be unexported (golint)
    • aspectgo/example/hello3/main_aspect.go
    • Line 11: warning: comment on exported method ExampleAspect.Pointcut should be of the form "Pointcut ..." (golint)
    • Line 17: warning: comment on exported method ExampleAspect.Advice should be of the form "Advice ..." (golint)
    • aspectgo/aspect/rt/rt_test.go
    • Line 37: warning: don't use underscores in Go names; var _ag_arg0 should be _agArg0 (golint)
    • Line 39: warning: don't use underscores in Go names; var _ag_res should be _agRes (golint)
    • aspectgo/example/receiver/main.go
    • Line 7: warning: exported type I should have comment or be unexported (golint)
    • Line 11: warning: exported type S should have comment or be unexported (golint)
    • Line 15: warning: exported method S.Foo should have comment or be unexported (golint)
    • aspectgo/compiler/weave/rewrite.go
    • Line 115: warning: don't use underscores in Go names; method _proxy_decl should be _proxyDecl (golint)
    • Line 151: warning: don't use underscores in Go names; method _proxy_body_XArgs should be _proxyBodyXArgs (golint)
    • Line 169: warning: don't use underscores in Go names; method _proxy_body_XFunc should be _proxyBodyXFunc (golint)
    • Line 269: warning: don't use underscores in Go names; method _proxy_body_XReceiver should be _proxyBodyXReceiver (golint)
    • Line 278: warning: don't use underscores in Go names; method _proxy_body_callExpr should be _proxyBodyCallExpr (golint)
    • Line 334: warning: don't use underscores in Go names; method _proxy_body should be _proxyBody (golint)
    • Line 381: warning: don't use underscores in Go names; method _pgen_decl should be _pgenDecl (golint)
    • Line 436: warning: don't use underscores in Go names; method _pgen_body should be _pgenBody (golint)
    • Line 523: warning: don't use underscores in Go names; method _proxy_fix_up should be _proxyFixUp (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!