Preparing report...

Report for github.com/go-fed/activity

(v1.0.0)

A+    Excellent!    Found 14 issues across 61 files

Tweet

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!


gofmt96%

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

    • gen.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo85%

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.

    • pub/util.go
    • Line 450: warning: cyclomatic complexity 62 of function normalizeRecipients() is high (> 15) (gocyclo)
    • Line 878: warning: cyclomatic complexity 24 of function remove() is high (> 15) (gocyclo)
    • Line 245: warning: cyclomatic complexity 22 of function wrapInCreate() is high (> 15) (gocyclo)
    • Line 797: warning: cyclomatic complexity 20 of function add() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 17 of function getInboxForwardingValues() is high (> 15) (gocyclo)
    • astool/convert/convert.go
    • Line 580: warning: cyclomatic complexity 30 of function (*Converter).convertType() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 17 of function (*Converter).convertToFiles() is high (> 15) (gocyclo)
    • Line 1015: warning: cyclomatic complexity 16 of function (*Converter).packageFiles() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 16 of function (*Converter).Convert() is high (> 15) (gocyclo)
    • pub/social_wrapped_callbacks.go
    • Line 180: warning: cyclomatic complexity 27 of function (SocialWrappedCallbacks).create() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 20 of function (SocialWrappedCallbacks).callbacks() is high (> 15) (gocyclo)
    • Line 285: warning: cyclomatic complexity 19 of function (SocialWrappedCallbacks).update() is high (> 15) (gocyclo)
    • astool/gen/funcprop.go
    • Line 331: warning: cyclomatic complexity 16 of function (*FunctionalPropertyGenerator).serializationFuncs() is high (> 15) (gocyclo)
    • pub/federating_wrapped_callbacks.go
    • Line 482: warning: cyclomatic complexity 46 of function (FederatingWrappedCallbacks).accept() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 26 of function (FederatingWrappedCallbacks).callbacks() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 24 of function (FederatingWrappedCallbacks).follow() is high (> 15) (gocyclo)
    • Line 715: warning: cyclomatic complexity 20 of function (FederatingWrappedCallbacks).like() is high (> 15) (gocyclo)
    • Line 799: warning: cyclomatic complexity 19 of function (FederatingWrappedCallbacks).announce() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 16 of function (FederatingWrappedCallbacks).create() is high (> 15) (gocyclo)
    • pub/side_effect_actor.go
    • Line 144: warning: cyclomatic complexity 39 of function (*sideEffectActor).InboxForwarding() is high (> 15) (gocyclo)
    • Line 618: warning: cyclomatic complexity 24 of function (*sideEffectActor).prepare() is high (> 15) (gocyclo)
    • Line 530: warning: cyclomatic complexity 20 of function (*sideEffectActor).hasInboxForwardingValues() is high (> 15) (gocyclo)
    • pub/base_actor.go
    • Line 165: warning: cyclomatic complexity 19 of function (*baseActor).PostInbox() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words