Preparing report...

Report for github.com/thomas-bouvier/insapp-go

A+    Excellent!    Found 17 issues across 24 files

Tweet

gofmt95%

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!


gocyclo91%

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.


golint50%

Golint is a linter for Go source code.

    • insapp-go/comment.go
    • Line 22: warning: exported type Tag should have comment or be unexported (golint)
    • Line 28: warning: exported type Tags should have comment or be unexported (golint)
    • Line 69: warning: exported function CommentEvent should have comment or be unexported (golint)
    • Line 86: warning: exported function UncommentEvent should have comment or be unexported (golint)
    • Line 104: warning: exported function ReportComment should have comment or be unexported (golint)
    • Line 129: warning: exported function GetComment should have comment or be unexported (golint)
    • Line 139: warning: exported function GetCommentForEvent should have comment or be unexported (golint)
    • Line 173: warning: exported function DeleteCommentsForUser should have comment or be unexported (golint)
    • Line 183: warning: exported function DeleteCommentsForUserOnEvents should have comment or be unexported (golint)
    • Line 193: warning: exported function DeleteTagsForUserOnEvents should have comment or be unexported (golint)
    • Line 217: warning: exported function DeleteTagsForUser should have comment or be unexported (golint)
    • insapp-go/eventController.go
    • Line 49: warning: exported function GetEventsForAssociationController should have comment or be unexported (golint)
    • Line 95: warning: exported function AddAttendeeController should have comment or be unexported (golint)
    • Line 105: warning: comment on exported function ChangeAttendeeStatusController should be of the form "ChangeAttendeeStatusController ..." (golint)
    • insapp-go/notificationController.go
    • Line 11: warning: exported function UpdateNotificationUserController should have comment or be unexported (golint)
    • Line 21: warning: exported function GetNotificationController should have comment or be unexported (golint)
    • Line 30: warning: exported function DeleteNotificationController should have comment or be unexported (golint)
    • insapp-go/userController.go
    • Line 11: warning: exported function GetAssociationUserController should have comment or be unexported (golint)
    • Line 63: warning: exported function GetAllUserController should have comment or be unexported (golint)
    • Line 107: warning: exported function ReportUserController should have comment or be unexported (golint)
    • insapp-go/utils.go
    • Line 11: warning: exported function GeneratePassword should have comment or be unexported (golint)
    • Line 21: warning: exported function RandomString should have comment or be unexported (golint)
    • Line 66: warning: exported function GetMD5Hash should have comment or be unexported (golint)
    • insapp-go/association.go
    • Line 204: warning: exported function AddPostToAssociation should have comment or be unexported (golint)
    • Line 221: warning: exported function RemovePostFromAssociation should have comment or be unexported (golint)
    • insapp-go/notification.go
    • Line 30: warning: exported type Notifications should have comment or be unexported (golint)
    • Line 32: warning: exported function GetNotificationUserForUser should have comment or be unexported (golint)
    • Line 43: warning: exported function CreateOrUpdateNotificationUser should have comment or be unexported (golint)
    • Line 64: warning: exported function AddNotification should have comment or be unexported (golint)
    • Line 76: warning: exported function GetNotificationsForUser should have comment or be unexported (golint)
    • Line 87: warning: exported function GetUnreadNotificationsForUser should have comment or be unexported (golint)
    • Line 97: warning: exported function ReadNotificationForUser should have comment or be unexported (golint)
    • Line 107: warning: exported function DeleteNotificationsForUser should have comment or be unexported (golint)
    • Line 115: warning: exported function DeleteNotificationsForComment should have comment or be unexported (golint)
    • Line 123: warning: exported function DeleteNotificationsForPost should have comment or be unexported (golint)
    • Line 131: warning: exported function DeleteNotificationsForEvent should have comment or be unexported (golint)
    • Line 139: warning: exported function DeleteNotificationTokenForUser should have comment or be unexported (golint)
    • insapp-go/searchController.go
    • Line 9: warning: exported type Search should have comment or be unexported (golint)
    • Line 13: warning: exported function SearchUserController should have comment or be unexported (golint)
    • Line 21: warning: exported function SearchPostController should have comment or be unexported (golint)
    • Line 29: warning: exported function SearchEventController should have comment or be unexported (golint)
    • Line 37: warning: exported function SearchAssociationController should have comment or be unexported (golint)
    • Line 45: warning: exported function SearchUniversalController should have comment or be unexported (golint)
    • insapp-go/user.go
    • Line 242: warning: exported function SearchUser should have comment or be unexported (golint)
    • Line 256: warning: exported function ReportUser should have comment or be unexported (golint)
    • insapp-go/event.go
    • Line 168: warning: exported function AddAttendeeToMaybeList should have comment or be unexported (golint)
    • Line 189: warning: exported function AddAttendeeToNotGoingList should have comment or be unexported (golint)
    • Line 229: warning: exported function SearchEvent should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/google.golang.org/grpc@v1.21.1/internal/channelz/types_linux.go
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/api/transport/grpc); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/api/transport/grpc); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 26: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by google.golang.org/api/transport/grpc); to add: (ineffassign)
    • Line 26: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)

misspell95%

Misspell Finds commonly misspelled English words