Preparing report...

Report for github.com/x899/algorithms

A+    Excellent!    Found 16 issues across 55 files

Tweet

gofmt98%

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!


gocyclo96%

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.


golint92%

Golint is a linter for Go source code.

    • algorithms/golang/hashtable/hashtable.go
    • Line 3: warning: exported type Record should have comment or be unexported (golint)
    • Line 15: warning: exported type HashTable should have comment or be unexported (golint)
    • Line 24: warning: exported function CreateHashTable should have comment or be unexported (golint)
    • Line 54: warning: exported method HashTable.Put should have comment or be unexported (golint)
    • Line 61: warning: exported method HashTable.Get should have comment or be unexported (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 99: warning: exported method HashTable.Del should have comment or be unexported (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words

    • algorithms/golang/linkedlist/linkedlist_test.go
    • Line 37: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 65: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 98: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 138: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 153: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 154: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 155: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 155: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 175: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 219: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 267: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 320: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 364: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 394: warning: "Lenght" is a misspelling of "Length" (misspell)
    • algorithms/golang/doublylinkedlist/doublylinkedlist_test.go
    • Line 39: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 68: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 97: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 112: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 113: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 114: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 114: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 135: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 180: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 227: warning: "Lenght" is a misspelling of "Length" (misspell)
    • Line 280: warning: "Lenght" is a misspelling of "Length" (misspell)