Preparing report...

Report for github.com/GoesToEleven/golang-web-dev

A    Great!    Found 427 issues across 1166 files

Tweet

gofmt93%

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!


golint68%

Golint is a linter for Go source code.

    • golang-web-dev/046_mongodb/16_go-mongo/books/handlers.go
    • Line 8: warning: exported function Index should have comment or be unexported (golint)
    • Line 23: warning: exported function Show should have comment or be unexported (golint)
    • Line 38: warning: exported function Create should have comment or be unexported (golint)
    • Line 42: warning: exported function CreateProcess should have comment or be unexported (golint)
    • Line 57: warning: exported function Update should have comment or be unexported (golint)
    • Line 72: warning: exported function UpdateProcess should have comment or be unexported (golint)
    • Line 87: warning: exported function DeleteProcess should have comment or be unexported (golint)
    • golang-web-dev/042_mongodb/09_solution/controllers/user.go
    • Line 12: warning: exported type UserController should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUserController should have comment or be unexported (golint)
    • Line 20: warning: exported method UserController.GetUser should have comment or be unexported (golint)
    • Line 37: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 59: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/042_mongodb/05_mongodb/01_update-user-controller/controllers/user.go
    • Line 12: warning: comment on exported type UserController should be of the form "UserController ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported function NewUserController should be of the form "NewUserController ..." (golint)
    • Line 22: warning: exported method UserController.GetUser should have comment or be unexported (golint)
    • Line 39: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 56: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/045-code-organization/02_two-packages/models/books.go
    • Line 9: warning: exported type Book should have comment or be unexported (golint)
    • Line 16: warning: exported function AllBooks should have comment or be unexported (golint)
    • Line 38: warning: exported function OneBook should have comment or be unexported (golint)
    • Line 55: warning: exported function PutBook should have comment or be unexported (golint)
    • Line 83: warning: exported function UpdateBook should have comment or be unexported (golint)
    • Line 110: warning: exported function DeleteBook should have comment or be unexported (golint)
    • golang-web-dev/042_mongodb/06_hands-on/starting-code/controllers/user.go
    • Line 13: warning: exported type UserController should have comment or be unexported (golint)
    • Line 17: warning: exported function NewUserController should have comment or be unexported (golint)
    • Line 21: warning: exported method UserController.GetUser should have comment or be unexported (golint)
    • Line 51: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 69: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/042_mongodb/05_mongodb/02_update-user-model/controllers/user.go
    • Line 12: warning: exported type UserController should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUserController should have comment or be unexported (golint)
    • Line 20: warning: exported method UserController.GetUser should have comment or be unexported (golint)
    • Line 38: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 55: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/046_mongodb/15_postgres/books/models.go
    • Line 10: warning: exported type Book should have comment or be unexported (golint)
    • Line 17: warning: exported function AllBooks should have comment or be unexported (golint)
    • Line 39: warning: exported function OneBook should have comment or be unexported (golint)
    • Line 56: warning: exported function PutBook should have comment or be unexported (golint)
    • Line 84: warning: exported function UpdateBook should have comment or be unexported (golint)
    • Line 111: warning: exported function DeleteBook should have comment or be unexported (golint)
    • golang-web-dev/000_temp/34_test/go-testing-applications/6-go-testing-applications-m6-exercise-files/src/pack/math.go
    • Line 1: warning: package comment should be of the form "Package pack ..." (golint)
    • Line 8: warning: exported type Integrator should have comment or be unexported (golint)
    • Line 12: warning: exported type XYFunc should have comment or be unexported (golint)
    • Line 14: warning: exported type PolyIntegrator should have comment or be unexported (golint)
    • Line 16: warning: exported method PolyIntegrator.Integrate should have comment or be unexported (golint)
    • Line 27: warning: exported function CalcPoly should have comment or be unexported (golint)
    • Line 37: warning: exported type RiemannIntegrator should have comment or be unexported (golint)
    • Line 39: warning: exported method RiemannIntegrator.IntegrateRiemann should have comment or be unexported (golint)
    • Line 53: warning: exported method RiemannIntegrator.Integrate should have comment or be unexported (golint)
    • Line 57: warning: exported function QuickSort should have comment or be unexported (golint)
    • golang-web-dev/999_old-code/060_twitter/15_memcache-home/main.go
    • Line 17: warning: exported type User should have comment or be unexported (golint)
    • Line 38: warning: exported function Home should have comment or be unexported (golint)
    • Line 54: warning: exported function Login should have comment or be unexported (golint)
    • Line 58: warning: exported function Signup should have comment or be unexported (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • golang-web-dev/045-code-organization/03_multiple-packages/books/handlers.go
    • Line 9: warning: exported function Index should have comment or be unexported (golint)
    • Line 24: warning: exported function Show should have comment or be unexported (golint)
    • Line 43: warning: exported function Create should have comment or be unexported (golint)
    • Line 47: warning: exported function CreateProcess should have comment or be unexported (golint)
    • Line 62: warning: exported function Update should have comment or be unexported (golint)
    • Line 81: warning: exported function UpdateProcess should have comment or be unexported (golint)
    • Line 96: warning: exported function DeleteProcess should have comment or be unexported (golint)
    • golang-web-dev/999_old-code/060_twitter/17_memcache-templates/main.go
    • Line 14: warning: exported type User should have comment or be unexported (golint)
    • Line 35: warning: exported function Home should have comment or be unexported (golint)
    • Line 39: warning: exported function Login should have comment or be unexported (golint)
    • Line 43: warning: exported function Signup should have comment or be unexported (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • golang-web-dev/042_mongodb/07_solution/controllers/user.go
    • Line 12: warning: exported type UserController should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUserController should have comment or be unexported (golint)
    • Line 20: warning: exported method UserController.GetUser should have comment or be unexported (golint)
    • Line 37: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 58: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/046_mongodb/16_go-mongo/books/models.go
    • Line 11: warning: exported type Book should have comment or be unexported (golint)
    • Line 20: warning: exported function AllBooks should have comment or be unexported (golint)
    • Line 29: warning: exported function OneBook should have comment or be unexported (golint)
    • Line 42: warning: exported function PutBook should have comment or be unexported (golint)
    • Line 70: warning: exported function UpdateBook should have comment or be unexported (golint)
    • Line 97: warning: exported function DeleteBook should have comment or be unexported (golint)
    • golang-web-dev/046_mongodb/15_postgres/books/handlers.go
    • Line 11: warning: exported function Index should have comment or be unexported (golint)
    • Line 26: warning: exported function Show should have comment or be unexported (golint)
    • Line 45: warning: exported function Create should have comment or be unexported (golint)
    • Line 49: warning: exported function CreateProcess should have comment or be unexported (golint)
    • Line 64: warning: exported function Update should have comment or be unexported (golint)
    • Line 83: warning: exported function UpdateProcess should have comment or be unexported (golint)
    • Line 98: warning: exported function DeleteProcess should have comment or be unexported (golint)
    • Line 113: warning: exported function ShowJSON should have comment or be unexported (golint)
    • golang-web-dev/042_mongodb/11_solution/session/session.go
    • Line 11: warning: exported const Length should have comment or be unexported (golint)
    • Line 13: warning: exported var Users should have comment or be unexported (golint)
    • Line 14: warning: exported var Sessions should have comment or be unexported (golint)
    • Line 15: warning: exported var LastCleaned should have comment or be unexported (golint)
    • Line 17: warning: exported function GetUser should have comment or be unexported (golint)
    • Line 41: warning: exported function AlreadyLoggedIn should have comment or be unexported (golint)
    • Line 58: warning: exported function Clean should have comment or be unexported (golint)
    • Line 71: warning: comment on exported function Show should be of the form "Show ..." (golint)
    • golang-web-dev/999_old-code/060_twitter/14_code-review/main.go
    • Line 17: warning: exported type User should have comment or be unexported (golint)
    • Line 38: warning: exported function Home should have comment or be unexported (golint)
    • Line 42: warning: exported function Login should have comment or be unexported (golint)
    • Line 46: warning: exported function Signup should have comment or be unexported (golint)
    • Line 64: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • golang-web-dev/042_mongodb/04_controllers/controllers/user.go
    • Line 11: warning: exported type UserController should have comment or be unexported (golint)
    • Line 13: warning: exported function NewUserController should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method UserController.GetUser should be of the form "GetUser ..." (golint)
    • Line 36: warning: exported method UserController.CreateUser should have comment or be unexported (golint)
    • Line 53: warning: exported method UserController.DeleteUser should have comment or be unexported (golint)
    • golang-web-dev/045-code-organization/03_multiple-packages/books/models.go
    • Line 10: warning: exported type Book should have comment or be unexported (golint)
    • Line 17: warning: exported function AllBooks should have comment or be unexported (golint)
    • Line 39: warning: exported function OneBook should have comment or be unexported (golint)
    • Line 56: warning: exported function PutBook should have comment or be unexported (golint)
    • Line 84: warning: exported function UpdateBook should have comment or be unexported (golint)
    • Line 111: warning: exported function DeleteBook should have comment or be unexported (golint)

gocyclo99%

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.


license0%

Checks whether your project has a LICENSE file.


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!