Preparing report...

Report for github.com/comdiv/golang_course_comdiv

A+    Excellent!    Found 17 issues across 68 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.


golint75%

Golint is a linter for Go source code.

    • golang_course_comdiv/internal/sortedintlistgentest/GenericBenchmrks.go
    • Line 9: warning: exported const DEFAULT_BENCH_DATA_SIZE should have comment or be unexported (golint)
    • Line 10: warning: exported const DEFAULT_BENCH_DATA_SEED should have comment or be unexported (golint)
    • Line 12: warning: exported function GenericBenchmarkSorted_InsertRandom should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; func GenericBenchmarkSorted_InsertRandom should be GenericBenchmarkSortedInsertRandom (golint)
    • Line 21: warning: exported function GenericBenchmarkSorted_InsertAscNoDups should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; func GenericBenchmarkSorted_InsertAscNoDups should be GenericBenchmarkSortedInsertAscNoDups (golint)
    • Line 33: warning: exported function GenericBenchmarkSorted_InsertDescNoDups should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; func GenericBenchmarkSorted_InsertDescNoDups should be GenericBenchmarkSortedInsertDescNoDups (golint)
    • Line 45: warning: exported function GenericBenchmarkSorted_InsertManyDups should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; func GenericBenchmarkSorted_InsertManyDups should be GenericBenchmarkSortedInsertManyDups (golint)
    • Line 57: warning: exported function GenericBenchmarkSorted_Delete should have comment or be unexported (golint)
    • Line 57: warning: don't use underscores in Go names; func GenericBenchmarkSorted_Delete should be GenericBenchmarkSortedDelete (golint)
    • Line 71: warning: exported function GenericBenchmarkSorted_GetAll should have comment or be unexported (golint)
    • Line 71: warning: don't use underscores in Go names; func GenericBenchmarkSorted_GetAll should be GenericBenchmarkSortedGetAll (golint)
    • Line 84: warning: exported function GenericBenchmarkSorted_GetUnique should have comment or be unexported (golint)
    • Line 84: warning: don't use underscores in Go names; func GenericBenchmarkSorted_GetUnique should be GenericBenchmarkSortedGetUnique (golint)
    • golang_course_comdiv/internal/sortedintlistgentest/GenericSortedListTests.go
    • Line 11: warning: exported function GenericTestSorted_GetUnique should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; func GenericTestSorted_GetUnique should be GenericTestSortedGetUnique (golint)
    • Line 18: warning: exported function GenericTestSorted_GetAll should have comment or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; func GenericTestSorted_GetAll should be GenericTestSortedGetAll (golint)
    • Line 25: warning: exported function GenericTestSorted_Size should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func GenericTestSorted_Size should be GenericTestSortedSize (golint)
    • Line 30: warning: exported function GenericTestSorted_UniqueSize should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; func GenericTestSorted_UniqueSize should be GenericTestSortedUniqueSize (golint)
    • Line 35: warning: exported function GenericTestSorted_InsertList should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func GenericTestSorted_InsertList should be GenericTestSortedInsertList (golint)
    • Line 50: warning: exported function GenericTestSorted_InsertSet should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; func GenericTestSorted_InsertSet should be GenericTestSortedInsertSet (golint)
    • Line 65: warning: exported function GenericTestSorted_DeleteList should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; func GenericTestSorted_DeleteList should be GenericTestSortedDeleteList (golint)
    • Line 93: warning: exported function GenericTestSorted_DeleteSet should have comment or be unexported (golint)
    • Line 93: warning: don't use underscores in Go names; func GenericTestSorted_DeleteSet should be GenericTestSortedDeleteSet (golint)
    • Line 122: warning: exported function GenericTestSorted_MinMax should have comment or be unexported (golint)
    • Line 122: warning: don't use underscores in Go names; func GenericTestSorted_MinMax should be GenericTestSortedMinMax (golint)
    • golang_course_comdiv/internal/sortedintlist/repl/SortidIntListRepl.go
    • Line 12: warning: exported type SortedIntListRepl should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCustom should have comment or be unexported (golint)
    • Line 37: warning: exported method SortedIntListRepl.PrintHelp should have comment or be unexported (golint)
    • Line 51: warning: exported method SortedIntListRepl.Execute should have comment or be unexported (golint)
    • Line 73: warning: exported method SortedIntListRepl.ExecuteCommand should have comment or be unexported (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • golang_course_comdiv/internal/sortedintlist/slices/SortedIntListSliced.go
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method SortedIntListSliced.IsIntRangeInitialized should have comment or be unexported (golint)
    • Line 28: warning: exported method SortedIntListSliced.GetMin should have comment or be unexported (golint)
    • Line 35: warning: exported method SortedIntListSliced.GetMax should have comment or be unexported (golint)
    • Line 42: warning: exported function NewSortedIntListSlicedWithData should have comment or be unexported (golint)
    • Line 52: warning: exported method SortedIntListSliced.Insert should have comment or be unexported (golint)
    • Line 84: warning: exported method SortedIntListSliced.Delete should have comment or be unexported (golint)
    • Line 106: warning: exported const LAST_NOT_FOUND should have comment (or a comment on this block) or be unexported (golint)
    • Line 176: warning: exported method SortedIntListSliced.Size should have comment or be unexported (golint)
    • Line 180: warning: exported method SortedIntListSliced.UniqueSize should have comment or be unexported (golint)
    • Line 184: warning: exported method SortedIntListSliced.GetAll should have comment or be unexported (golint)
    • Line 198: warning: exported method SortedIntListSliced.GetUnique should have comment or be unexported (golint)
    • golang_course_comdiv/cmd/lesson_002/lesson_002_1_5___16.go
    • Line 6: warning: exported const MAX_DEG should have comment or be unexported (golint)
    • Line 7: warning: exported const HOUR_PER_ROUND should have comment or be unexported (golint)
    • Line 8: warning: exported const MINUTES_PER_HOUR should have comment or be unexported (golint)
    • Line 9: warning: exported const MINUTES_PER_ROUND should have comment or be unexported (golint)
    • Line 10: warning: exported const DEGREES_PER_HOUR should have comment or be unexported (golint)
    • Line 12: warning: comment on exported const MINUTES_IN_DEGREE should be of the form "MINUTES_IN_DEGREE ..." (golint)
    • golang_course_comdiv/internal/sortedintlist/linked/SortedLinkedList.go
    • Line 27: warning: exported method SortedLinkedList.IsIntRangeInitialized should have comment or be unexported (golint)
    • Line 31: warning: exported method SortedLinkedList.GetMin should have comment or be unexported (golint)
    • Line 38: warning: exported method SortedLinkedList.GetMax should have comment or be unexported (golint)
    • Line 76: warning: exported method SortedLinkedList.GetAll should have comment or be unexported (golint)
    • Line 89: warning: exported const FOUND_TYPE_NOT_FOUND should have comment (or a comment on this block) or be unexported (golint)
    • Line 95: warning: exported method SortedLinkedList.FindItemFor should have comment or be unexported (golint)
    • Line 181: 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!


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!