Preparing report...

Report for github.com/DexterLB/prose

A+    Excellent!    Found 14 issues across 34 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!


gocyclo97%

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.


golint97%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign58%

IneffAssign detects ineffectual assignments in Go code.

    • prose/chunk/chunk.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/DexterLB/prose/tag (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/DexterLB/prose/tag (invalid package name: "") (ineffassign)
    • prose/chunk/chunk_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/DexterLB/prose/tokenize (invalid package name: "") (ineffassign)
    • prose/tag/aptag.go
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 29: warning: cannot find package "." in: (ineffassign)
    • Line 30: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: could not import github.com/DexterLB/prose/internal/model (invalid package name: "") (ineffassign)
    • Line 29: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 30: warning: could not import github.com/montanaflynn/stats (invalid package name: "") (ineffassign)
    • Line 179: warning: undeclared name: shuffle (ineffassign)
    • Line 28: warning: could not import github.com/DexterLB/prose/internal/model (invalid package name: "") (ineffassign)
    • Line 29: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 30: warning: could not import github.com/montanaflynn/stats (invalid package name: "") (ineffassign)
    • Line 179: warning: undeclared name: shuffle (ineffassign)
    • prose/summarize/readability.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • prose/tag/aptag_test.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • prose/cmd/prose/main.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/DexterLB/prose/tag (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • prose/transform/title.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • prose/tokenize/punkt.go
    • Line 28: warning: cannot find package "." in: (ineffassign)
    • Line 29: warning: cannot find package "." in: (ineffassign)
    • Line 28: warning: could not import gopkg.in/neurosnap/sentences.v1 (invalid package name: "") (ineffassign)
    • Line 29: warning: could not import gopkg.in/neurosnap/sentences.v1/data (invalid package name: "") (ineffassign)
    • Line 36: warning: undeclared name: sentences (ineffassign)
    • Line 61: warning: undeclared name: sentences (ineffassign)
    • Line 69: warning: undeclared name: sentences (ineffassign)
    • Line 69: warning: undeclared name: sentences (ineffassign)
    • Line 120: warning: undeclared name: sentences (ineffassign)
    • Line 127: warning: undeclared name: sentences (ineffassign)
    • Line 158: warning: undeclared name: sentences (ineffassign)
    • Line 159: warning: undeclared name: sentences (ineffassign)
    • Line 160: warning: undeclared name: sentences (ineffassign)
    • Line 161: warning: undeclared name: sentences (ineffassign)
    • Line 164: warning: undeclared name: sentences (ineffassign)
    • Line 164: warning: undeclared name: sentences (ineffassign)
    • Line 193: warning: undeclared name: sentences (ineffassign)
    • Line 78: warning: undeclared name: sentences (ineffassign)
    • Line 90: warning: undeclared name: sentences (ineffassign)
    • Line 92: warning: undeclared name: sentences (ineffassign)
    • Line 94: warning: undeclared name: sentences (ineffassign)
    • Line 104: warning: undeclared name: sentences (ineffassign)
    • Line 110: warning: undeclared name: sentences (ineffassign)
    • Line 101: warning: multiPunct declared but not used (ineffassign)
    • Line 122: warning: word.PunctStrings undefined (type *wordTokenizer has no field or method PunctStrings) (ineffassign)
    • Line 211: warning: a.SentStarters undefined (type *multiPunctWordAnnotation has no field or method SentStarters) (ineffassign)
    • Line 245: warning: a.IsInitial undefined (type *multiPunctWordAnnotation has no field or method IsInitial) (ineffassign)
    • Line 269: warning: a.SentStarters undefined (type *multiPunctWordAnnotation has no field or method SentStarters) (ineffassign)
    • Line 28: warning: "gopkg.in/neurosnap/sentences.v1" imported but not used (ineffassign)
    • Line 28: warning: could not import gopkg.in/neurosnap/sentences.v1 (invalid package name: "") (ineffassign)
    • Line 29: warning: could not import gopkg.in/neurosnap/sentences.v1/data (invalid package name: "") (ineffassign)
    • Line 36: warning: undeclared name: sentences (ineffassign)
    • Line 61: warning: undeclared name: sentences (ineffassign)
    • Line 69: warning: undeclared name: sentences (ineffassign)
    • Line 69: warning: undeclared name: sentences (ineffassign)
    • Line 120: warning: undeclared name: sentences (ineffassign)
    • Line 127: warning: undeclared name: sentences (ineffassign)
    • Line 158: warning: undeclared name: sentences (ineffassign)
    • Line 159: warning: undeclared name: sentences (ineffassign)
    • Line 160: warning: undeclared name: sentences (ineffassign)
    • Line 161: warning: undeclared name: sentences (ineffassign)
    • Line 164: warning: undeclared name: sentences (ineffassign)
    • Line 164: warning: undeclared name: sentences (ineffassign)
    • Line 193: warning: undeclared name: sentences (ineffassign)
    • Line 78: warning: undeclared name: sentences (ineffassign)
    • Line 90: warning: undeclared name: sentences (ineffassign)
    • Line 92: warning: undeclared name: sentences (ineffassign)
    • Line 94: warning: undeclared name: sentences (ineffassign)
    • Line 104: warning: undeclared name: sentences (ineffassign)
    • Line 110: warning: undeclared name: sentences (ineffassign)
    • Line 101: warning: multiPunct declared but not used (ineffassign)
    • Line 122: warning: word.PunctStrings undefined (type *wordTokenizer has no field or method PunctStrings) (ineffassign)
    • Line 211: warning: a.SentStarters undefined (type *multiPunctWordAnnotation has no field or method SentStarters) (ineffassign)
    • Line 245: warning: a.IsInitial undefined (type *multiPunctWordAnnotation has no field or method IsInitial) (ineffassign)
    • Line 269: warning: a.SentStarters undefined (type *multiPunctWordAnnotation has no field or method SentStarters) (ineffassign)
    • Line 28: warning: "gopkg.in/neurosnap/sentences.v1" imported but not used (ineffassign)
    • prose/internal/model/load.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 15: warning: undeclared name: Asset (ineffassign)
    • prose/tokenize/pragmatic.go
    • Line 32: warning: cannot find package "." in: (ineffassign)
    • Line 32: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • Line 32: warning: could not import github.com/DexterLB/prose/internal/util (invalid package name: "") (ineffassign)
    • prose/summarize/summarize.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/DexterLB/prose/tokenize (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/montanaflynn/stats (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/DexterLB/prose/tokenize (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/montanaflynn/stats (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!