Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
fiber-go-boilerplate/app/controller/auth.go
- Line 68: warning: exported function GenerateNewAccessToken should have comment or be unexported (golint)
- Line 87: warning: exported function GeneratePasswordHash should have comment or be unexported (golint)
- Line 96: warning: exported function IsValidPassword should have comment or be unexported (golint)
-
fiber-go-boilerplate/app/controller/root.go
- Line 11: warning: exported type TokenResponse should have comment or be unexported (golint)
- Line 16: warning: exported type ErrorResponse should have comment or be unexported (golint)
- Line 20: warning: exported function GetPagination should have comment or be unexported (golint)
-
fiber-go-boilerplate/app/repository/book.go
- Line 11: warning: exported type BookRepo should have comment or be unexported (golint)
- Line 15: warning: exported function NewBookRepo should have comment or be unexported (golint)
- Line 19: warning: exported method BookRepo.Create should have comment or be unexported (golint)
- Line 25: warning: exported method BookRepo.All should have comment or be unexported (golint)
- Line 40: warning: exported method BookRepo.Get should have comment or be unexported (golint)
- Line 48: warning: exported method BookRepo.Update should have comment or be unexported (golint)
- Line 54: warning: exported method BookRepo.Delete should have comment or be unexported (golint)
-
fiber-go-boilerplate/pkg/route/root.go
- Line 9: warning: exported function GeneralRoute should have comment or be unexported (golint)
- Line 33: warning: exported function SwaggerRoute should have comment or be unexported (golint)
- Line 39: warning: exported function NotFoundRoute should have comment or be unexported (golint)
-
fiber-go-boilerplate/app/model/user.go
- Line 22: warning: exported function NewUser should have comment or be unexported (golint)
- Line 26: warning: exported type Auth should have comment or be unexported (golint)
- Line 31: warning: exported type CreateUser should have comment or be unexported (golint)
- Line 41: warning: exported type UpdateUser should have comment or be unexported (golint)
-
fiber-go-boilerplate/app/dto/root.go
- Line 12: warning: exported type User should have comment or be unexported (golint)
- Line 24: warning: exported function ToUser should have comment or be unexported (golint)
- Line 38: warning: exported function ToUsers should have comment or be unexported (golint)
-
fiber-go-boilerplate/app/repository/user.go
- Line 11: warning: exported type UserRepo should have comment or be unexported (golint)
- Line 15: warning: exported function NewUserRepo should have comment or be unexported (golint)
- Line 19: warning: exported method UserRepo.Create should have comment or be unexported (golint)
- Line 25: warning: exported method UserRepo.All should have comment or be unexported (golint)
- Line 40: warning: exported method UserRepo.GetByUsername should have comment or be unexported (golint)
- Line 48: warning: exported method UserRepo.Get should have comment or be unexported (golint)
- Line 56: warning: exported method UserRepo.Exists should have comment or be unexported (golint)
- Line 86: warning: exported method UserRepo.Update should have comment or be unexported (golint)
- Line 92: warning: exported method UserRepo.Delete should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!