Preparing report...

Report for github.com/infomark-org/infomark

A+    Excellent!    Found 51 issues across 129 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!


gocyclo93%

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.


golint62%

Golint is a linter for Go source code.

    • infomark/configuration/fs/fs.go
    • Line 36: warning: exported function DirExists should have comment or be unexported (golint)
    • Line 39: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 48: warning: exported function FileExists should have comment or be unexported (golint)
    • Line 51: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 60: warning: exported function IsDirWriteable should have comment or be unexported (golint)
    • infomark/database/oracle.go
    • Line 40: warning: exported var ReflectCaching should have comment or be unexported (golint)
    • Line 42: warning: exported type DB should have comment or be unexported (golint)
    • Line 55: warning: comment on exported var MySQLSyntax should be of the form "MySQLSyntax ..." (golint)
    • Line 62: warning: comment on exported var PostgreSQLSyntax should be of the form "PostgreSQLSyntax ..." (golint)
    • Line 69: warning: comment on exported var SQLiteSyntax should be of the form "SQLiteSyntax ..." (golint)
    • Line 76: warning: exported var DefaultSyntax should have comment or be unexported (golint)
    • Line 212: warning: exported type StatementData should have comment or be unexported (golint)
    • Line 241: warning: don't use underscores in Go names; var null_string should be nullString (golint)
    • Line 275: warning: don't use underscores in Go names; var current_value should be currentValue (golint)
    • Line 342: warning: exported function PackStatementData should have comment or be unexported (golint)
    • Line 347: warning: comment on exported method DatabaseSyntax.InsertStatement should be of the form "InsertStatement ..." (golint)
    • Line 378: warning: don't use underscores in Go names; var current_time should be currentTime (golint)
    • Line 398: warning: don't use underscores in Go names; var column_string should be columnString (golint)
    • Line 399: warning: don't use underscores in Go names; var placeholder_string should be placeholderString (golint)
    • Line 414: warning: exported function InsertStatement should have comment or be unexported (golint)
    • Line 419: warning: exported method DatabaseSyntax.Insert should have comment or be unexported (golint)
    • Line 430: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 448: warning: exported function Insert should have comment or be unexported (golint)
    • Line 452: warning: comment on exported method DatabaseSyntax.UpdateStatement should be of the form "UpdateStatement ..." (golint)
    • Line 486: warning: don't use underscores in Go names; var pairs_string should be pairsString (golint)
    • Line 494: warning: exported function UpdateStatement should have comment or be unexported (golint)
    • Line 498: warning: exported method DatabaseSyntax.Update should have comment or be unexported (golint)
    • Line 509: warning: exported function Update should have comment or be unexported (golint)
    • Line 513: warning: exported method DatabaseSyntax.DeleteStatement should have comment or be unexported (golint)
    • Line 521: warning: exported function DeleteStatement should have comment or be unexported (golint)
    • Line 525: warning: exported method DatabaseSyntax.Delete should have comment or be unexported (golint)
    • Line 532: warning: exported function Delete should have comment or be unexported (golint)
    • infomark/database/task_store.go
    • Line 27: warning: exported type TaskStore should have comment or be unexported (golint)
    • Line 31: warning: exported function NewTaskStore should have comment or be unexported (golint)
    • Line 37: warning: exported method TaskStore.GetAllMissingTasksForUser should have comment or be unexported (golint)
    • Line 56: warning: exported method TaskStore.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method TaskStore.GetAll should have comment or be unexported (golint)
    • Line 68: warning: exported method TaskStore.Create should have comment or be unexported (golint)
    • Line 86: warning: exported method TaskStore.Update should have comment or be unexported (golint)
    • Line 90: warning: exported method TaskStore.Delete should have comment or be unexported (golint)
    • Line 94: warning: exported method TaskStore.TasksOfSheet should have comment or be unexported (golint)
    • Line 118: warning: exported method TaskStore.IdentifyCourseOfTask should have comment or be unexported (golint)
    • Line 139: warning: exported method TaskStore.IdentifySheetOfTask should have comment or be unexported (golint)
    • Line 158: warning: exported method TaskStore.GetAverageRating should have comment or be unexported (golint)
    • Line 170: warning: exported method TaskStore.GetRatingOfTaskByUser should have comment or be unexported (golint)
    • Line 186: warning: exported method TaskStore.GetRating should have comment or be unexported (golint)
    • Line 192: warning: exported method TaskStore.CreateRating should have comment or be unexported (golint)
    • Line 201: warning: exported method TaskStore.UpdateRating should have comment or be unexported (golint)
    • infomark/cmd/console/user_cmd.go
    • Line 39: warning: exported var UserCmd should have comment or be unexported (golint)
    • Line 44: warning: exported var UserFindCmd should have comment or be unexported (golint)
    • Line 83: warning: exported var UserConfirmCmd should have comment or be unexported (golint)
    • Line 113: warning: exported var UserSetEmailCmd should have comment or be unexported (golint)
    • infomark/api/app/course_responses.go
    • Line 99: warning: comment on exported type GroupBidsResponse should be of the form "GroupBidsResponse ..." (with optional leading article) (golint)
    • Line 133: warning: comment on exported type EnrollmentResponse should be of the form "EnrollmentResponse ..." (with optional leading article) (golint)
    • infomark/symbol/symbol.go
    • Line 53: warning: exported type TestingResult should have comment or be unexported (golint)
    • Line 56: warning: exported const TestingResultSuccess should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported method TestingResult.AsInt64 should have comment or be unexported (golint)
    • infomark/docs/generate.go
    • Line 19: warning: exported type Routes should have comment or be unexported (golint)
    • Line 24: warning: exported function EmptyHandler should have comment or be unexported (golint)
    • Line 30: warning: exported function GetAllRoutes should have comment or be unexported (golint)
    • infomark/cmd/console/configuration_cmd.go
    • Line 47: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 66: warning: exported function DurationFromString should have comment or be unexported (golint)
    • Line 74: warning: exported function ByteFromString should have comment or be unexported (golint)
    • Line 82: warning: exported function GenerateExampleConfiguration should have comment or be unexported (golint)
    • Line 82: warning: don't use underscores in Go names; func parameter root_path should be rootPath (golint)
    • Line 154: warning: exported var CreateConfiguration should have comment or be unexported (golint)
    • Line 167: warning: don't use underscores in Go names; var serialized_config should be serializedConfig (golint)
    • Line 185: warning: exported var TestConfiguration should have comment or be unexported (golint)
    • Line 194: warning: don't use underscores in Go names; var status_code should be statusCode (golint)
    • Line 310: warning: exported var CreateDockercompose should have comment or be unexported (golint)
    • Line 320: warning: don't use underscores in Go names; var docker_compose should be dockerCompose (golint)
    • infomark/api/app/exam_requests.go
    • Line 45: warning: exported method ExamRequest.Validate should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type UserExamRequest should be of the form "UserExamRequest ..." (with optional leading article) (golint)
    • Line 74: warning: exported method UserExamRequest.Validate should have comment or be unexported (golint)
    • infomark/api/app/user_requests.go
    • Line 54: warning: exported method UserRequest.Validate should have comment or be unexported (golint)
    • Line 122: warning: exported method UserMeRequest.Validate should have comment or be unexported (golint)
    • infomark/model/exam.go
    • Line 24: warning: comment on exported type Exam should be of the form "Exam ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type UserExam should be of the form "UserExam ..." (with optional leading article) (golint)
    • infomark/configuration/bytefmt/bytefmt.go
    • Line 28: warning: exported type ByteSize should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function FromString should be of the form "FromString ..." (golint)
    • Line 69: warning: exported const ByteUnit should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported const Byte should have comment (or a comment on this block) or be unexported (golint)
    • Line 88: warning: error var invalidByteQuantityError should have name of the form errFoo (golint)
    • Line 90: warning: comment on exported function ToString should be of the form "ToString ..." (golint)
    • Line 126: warning: exported method ByteSize.MarshalYAML should have comment or be unexported (golint)
    • Line 130: warning: exported method ByteSize.UnmarshalYAML should have comment or be unexported (golint)
    • Line 130: warning: receiver name f should be consistent with previous receiver name t for ByteSize (golint)
    • infomark/email/email.go
    • Line 225: warning: exported var ConfirmEmailTemplateEN should have comment or be unexported (golint)
    • Line 226: warning: exported var RequestPasswordTokenTemailTemplateEN should have comment or be unexported (golint)
    • infomark/database/grade_store.go
    • Line 28: warning: exported type GradeStore should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGradeStore should have comment or be unexported (golint)
    • Line 44: warning: exported method GradeStore.Get should have comment or be unexported (golint)
    • Line 63: warning: exported method GradeStore.Create should have comment or be unexported (golint)
    • Line 71: warning: exported method GradeStore.UpdatePrivateTestInfo should have comment or be unexported (golint)
    • Line 84: warning: exported method GradeStore.UpdatePublicTestInfo should have comment or be unexported (golint)
    • Line 97: warning: exported method GradeStore.GetForSubmission should have comment or be unexported (golint)
    • Line 103: warning: exported method GradeStore.GetOverviewGrades should have comment or be unexported (golint)
    • Line 145: warning: exported method GradeStore.GetAllMissingGrades should have comment or be unexported (golint)
    • Line 176: warning: exported method GradeStore.Update should have comment or be unexported (golint)
    • Line 180: warning: exported method GradeStore.GetFiltered should have comment or be unexported (golint)
    • Line 252: warning: exported method GradeStore.IdentifyCourseOfGrade should have comment or be unexported (golint)
    • Line 275: warning: exported method GradeStore.IdentifyTaskOfGrade should have comment or be unexported (golint)
    • infomark/api/app/submission.go
    • Line 282: warning: don't use underscores in Go names; var course_role should be courseRole (golint)
    • Line 297: warning: don't use underscores in Go names; var requested_user_id should be requestedUserID (golint)
    • infomark/api/app/course_requests.go
    • Line 50: warning: exported method CourseRequest.Validate should have comment or be unexported (golint)
    • Line 79: warning: exported type ChangeRoleInCourseRequest should have comment or be unexported (golint)
    • Line 83: warning: exported method ChangeRoleInCourseRequest.Bind should have comment or be unexported (golint)
    • infomark/migration/migrate.go
    • Line 33: warning: exported function UpdateDatabase should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; var database_schema_version should be databaseSchemaVersion (golint)
    • infomark/configuration/configuration.go
    • Line 33: warning: exported type RabbitMQConfiguration should have comment or be unexported (golint)
    • Line 41: warning: exported method RabbitMQConfiguration.URL should have comment or be unexported (golint)
    • Line 45: warning: exported type AuthenticationConfiguration should have comment or be unexported (golint)
    • Line 69: warning: exported method ServerConfigurationSchema.URL should have comment or be unexported (golint)
    • Line 82: warning: exported method ServerConfigurationSchema.ExternalURL should have comment or be unexported (golint)
    • Line 92: warning: exported type PathsConfiguration should have comment or be unexported (golint)
    • Line 98: warning: exported type ServerConfigurationSchema should have comment or be unexported (golint)
    • Line 157: warning: exported method ServerConfigurationSchema.SendEmail should have comment or be unexported (golint)
    • Line 161: warning: exported method ServerConfigurationSchema.PostgresURL should have comment or be unexported (golint)
    • Line 171: warning: exported method ServerConfigurationSchema.RedisURL should have comment or be unexported (golint)
    • Line 179: warning: exported method ServerConfigurationSchema.HTTPAddr should have comment or be unexported (golint)
    • Line 182: warning: exported method ServerConfigurationSchema.CronjobsZipSubmissionsIntervall should have comment or be unexported (golint)
    • Line 187: warning: exported type WorkerConfigurationSchema should have comment or be unexported (golint)
    • Line 200: warning: exported type ConfigurationSchema should have comment or be unexported (golint)
    • Line 205: warning: exported var Configuration should have comment or be unexported (golint)
    • Line 207: warning: exported function ParseConfiguration should have comment or be unexported (golint)
    • Line 218: warning: exported function MustFindAndReadConfiguration should have comment or be unexported (golint)
    • Line 219: warning: don't use underscores in Go names; var config_filename should be configFilename (golint)
    • Line 234: warning: exported method ConfigurationSchema.UnmarshalYAML should have comment or be unexported (golint)
    • infomark/database/course_store.go
    • Line 29: warning: exported type CourseStore should have comment or be unexported (golint)
    • Line 33: warning: exported function NewCourseStore should have comment or be unexported (golint)
    • Line 39: warning: exported method CourseStore.Get should have comment or be unexported (golint)
    • Line 45: warning: exported method CourseStore.GetAll should have comment or be unexported (golint)
    • Line 51: warning: exported method CourseStore.Create should have comment or be unexported (golint)
    • Line 59: warning: exported method CourseStore.Update should have comment or be unexported (golint)
    • Line 63: warning: exported method CourseStore.UpdateRole should have comment or be unexported (golint)
    • Line 76: warning: exported method CourseStore.Delete should have comment or be unexported (golint)
    • Line 106: warning: exported method CourseStore.Enroll should have comment or be unexported (golint)
    • Line 119: warning: exported method CourseStore.Disenroll should have comment or be unexported (golint)
    • Line 130: warning: exported method CourseStore.GetUserEnrollment should have comment or be unexported (golint)
    • Line 156: warning: exported method CourseStore.FindEnrolledUsers should have comment or be unexported (golint)
    • Line 196: warning: exported method CourseStore.EnrolledUsers should have comment or be unexported (golint)
    • Line 272: warning: exported method CourseStore.RoleInCourse should have comment or be unexported (golint)
    • Line 273: warning: don't use underscores in Go names; var role_int should be roleInt (golint)
    • Line 289: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • infomark/database/user_store.go
    • Line 27: warning: exported type UserStore should have comment or be unexported (golint)
    • Line 31: warning: exported function NewUserStore should have comment or be unexported (golint)
    • Line 37: warning: exported method UserStore.Get should have comment or be unexported (golint)
    • Line 43: warning: exported method UserStore.FindByEmail should have comment or be unexported (golint)
    • Line 49: warning: exported method UserStore.Find should have comment or be unexported (golint)
    • Line 65: warning: exported method UserStore.GetAll should have comment or be unexported (golint)
    • Line 71: warning: exported method UserStore.Create should have comment or be unexported (golint)
    • Line 79: warning: exported method UserStore.Update should have comment or be unexported (golint)
    • Line 83: warning: exported method UserStore.Delete should have comment or be unexported (golint)
    • Line 87: warning: exported method UserStore.GetEnrollments should have comment or be unexported (golint)
    • infomark/cmd/console/database_cmd.go
    • Line 34: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 46: warning: exported var DatabaseCmd should have comment or be unexported (golint)
    • Line 51: warning: exported var DatabaseRunCmd should have comment or be unexported (golint)
    • Line 79: warning: exported var DatabaseRestoreCmd should have comment or be unexported (golint)
    • Line 156: warning: exported var DatabaseBackupCmd should have comment or be unexported (golint)
    • Line 219: warning: exported var DatabaseMigrateCmd should have comment or be unexported (golint)
    • infomark/cmd/console/helper.go
    • Line 37: warning: exported function ConnectAndStores should have comment or be unexported (golint)
    • Line 52: warning: exported function MustConnectAndStores should have comment or be unexported (golint)
    • Line 59: warning: exported function MustInt64Parameter should have comment or be unexported (golint)
    • Line 68: warning: exported function MustIntParameter should have comment or be unexported (golint)
    • infomark/api/app/group_requests.go
    • Line 54: warning: exported method GroupRequest.Validate should have comment or be unexported (golint)
    • Line 74: warning: exported type GroupBidRequest should have comment or be unexported (golint)
    • Line 83: warning: exported method GroupBidRequest.Validate should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type GroupEnrollmentRequest should be of the form "GroupEnrollmentRequest ..." (with optional leading article) (golint)
    • Line 107: warning: exported method GroupEnrollmentRequest.Validate should have comment or be unexported (golint)
    • infomark/api/app/router.go
    • Line 66: warning: exported function RunInit should have comment or be unexported (golint)
    • Line 77: warning: exported function LoggingMiddleware should have comment or be unexported (golint)
    • Line 95: warning: exported function BasicAuthMiddleware should have comment or be unexported (golint)
    • infomark/api/app/grade_responses.go
    • Line 227: warning: comment on exported type SheetInfo should be of the form "SheetInfo ..." (with optional leading article) (golint)
    • Line 233: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 241: warning: exported type AchievementInfo should have comment or be unexported (golint)
    • infomark/docs/swagger/endpoints.go
    • Line 30: warning: exported type Response should have comment or be unexported (golint)
    • Line 35: warning: exported function ParseResponse should have comment or be unexported (golint)
    • Line 48: warning: exported function ParseParameter should have comment or be unexported (golint)
    • Line 59: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 67: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 72: warning: exported type EndpointDetails should have comment or be unexported (golint)
    • Line 84: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 177: warning: comment on exported function GetEndpoints should be of the form "GetEndpoints ..." (golint)
    • infomark/database/group_store.go
    • Line 28: warning: exported type GroupStore should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGroupStore should have comment or be unexported (golint)
    • Line 38: warning: exported method GroupStore.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method GroupStore.GetAll should have comment or be unexported (golint)
    • Line 50: warning: exported method GroupStore.Create should have comment or be unexported (golint)
    • Line 60: warning: exported method GroupStore.Update should have comment or be unexported (golint)
    • Line 64: warning: exported method GroupStore.Delete should have comment or be unexported (golint)
    • Line 68: warning: exported method GroupStore.GroupsOfCourse should have comment or be unexported (golint)
    • Line 89: warning: exported method GroupStore.GetMembers should have comment or be unexported (golint)
    • Line 104: warning: exported method GroupStore.GetInCourseWithUser should have comment or be unexported (golint)
    • Line 131: warning: exported method GroupStore.EnrolledUsers should have comment or be unexported (golint)
    • Line 182: warning: exported method GroupStore.GetGroupEnrollmentOfUserInCourse should have comment or be unexported (golint)
    • Line 197: warning: exported method GroupStore.CreateGroupEnrollmentOfUserInCourse should have comment or be unexported (golint)
    • Line 213: warning: exported method GroupStore.ChangeGroupEnrollmentOfUserInCourse should have comment or be unexported (golint)
    • Line 217: warning: exported method GroupStore.GetOfTutor should have comment or be unexported (golint)
    • Line 240: warning: exported method GroupStore.IdentifyCourseOfGroup should have comment or be unexported (golint)
    • Line 259: warning: exported method GroupStore.GetBidOfUserForGroup should have comment or be unexported (golint)
    • Line 271: warning: exported method GroupStore.InsertBidOfUserForGroup should have comment or be unexported (golint)
    • Line 282: warning: exported method GroupStore.UpdateBidOfUserForGroup should have comment or be unexported (golint)
    • Line 300: warning: exported method GroupStore.GetBidsForCourseForUser should have comment or be unexported (golint)
    • Line 318: warning: exported method GroupStore.GetBidsForCourse should have comment or be unexported (golint)
    • infomark/database/sheet_store.go
    • Line 27: warning: exported type SheetStore should have comment or be unexported (golint)
    • Line 31: warning: exported function NewSheetStore should have comment or be unexported (golint)
    • Line 37: warning: exported method SheetStore.Get should have comment or be unexported (golint)
    • Line 43: warning: exported method SheetStore.GetAll should have comment or be unexported (golint)
    • Line 49: warning: exported method SheetStore.Create should have comment or be unexported (golint)
    • Line 71: warning: exported method SheetStore.Update should have comment or be unexported (golint)
    • Line 75: warning: exported method SheetStore.Delete should have comment or be unexported (golint)
    • Line 79: warning: exported method SheetStore.SheetsOfCourse should have comment or be unexported (golint)
    • Line 98: warning: exported method SheetStore.IdentifyCourseOfSheet should have comment or be unexported (golint)
    • infomark/database/submission_store.go
    • Line 27: warning: exported type SubmissionStore should have comment or be unexported (golint)
    • Line 31: warning: exported function NewSubmissionStore should have comment or be unexported (golint)
    • Line 37: warning: exported method SubmissionStore.Get should have comment or be unexported (golint)
    • Line 43: warning: exported method SubmissionStore.GetByUserAndTask should have comment or be unexported (golint)
    • Line 59: warning: exported method SubmissionStore.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method SubmissionStore.GetFiltered should have comment or be unexported (golint)
    • infomark/tape/tape.go
    • Line 51: warning: exported type RequestModifier should have comment or be unexported (golint)
    • Line 256: warning: exported method Tape.Upload should have comment or be unexported (golint)
    • Line 260: warning: exported method Tape.UploadWithParameters should have comment or be unexported (golint)
    • infomark/auth/authenticate/claims.go
    • Line 38: warning: exported function NewAccessClaims should have comment or be unexported (golint)
    • Line 53: warning: exported function NewRefreshClaims should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method RefreshClaims.ParseRefreshClaimsFromToken should be of the form "ParseRefreshClaimsFromToken ..." (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 88: warning: comment on exported method AccessClaims.ParseAccessClaimsFromToken should be of the form "ParseAccessClaimsFromToken ..." (golint)
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 117: warning: comment on exported method AccessClaims.ParseRefreshClaimsFromSession should be of the form "ParseRefreshClaimsFromSession ..." (golint)
    • Line 137: warning: exported method AccessClaims.WriteToSession should have comment or be unexported (golint)
    • Line 154: warning: exported method AccessClaims.UpdateSession should have comment or be unexported (golint)
    • Line 165: warning: exported method AccessClaims.DestroyInSession should have comment or be unexported (golint)
    • infomark/cmd/console/group_cmd.go
    • Line 47: warning: exported var GroupCmd should have comment or be unexported (golint)
    • Line 58: warning: exported var GroupLocate should have comment or be unexported (golint)
    • Line 98: warning: exported var GroupList should have comment or be unexported (golint)
    • Line 137: warning: exported var GroupEnroll should have comment or be unexported (golint)
    • Line 207: warning: exported var GroupUserBids should have comment or be unexported (golint)
    • Line 258: warning: exported var GroupReadBids should have comment or be unexported (golint)
    • Line 415: warning: exported var GroupParseBidsSolution should have comment or be unexported (golint)
    • infomark/service/docker.go
    • Line 41: warning: exported function NewDockerServiceWithTimeout should have comment or be unexported (golint)
    • Line 127: warning: don't use underscores in Go names; var cpu_maximum should be cpuMaximum (golint)
    • infomark/docs/swagger/swagger.go
    • Line 29: warning: exported function SwaggerStructs should have comment or be unexported (golint)
    • Line 138: warning: exported function SwaggerStructsWithSuffix should have comment or be unexported (golint)
    • Line 166: warning: exported function SwaggerResponsesWithSuffix should have comment or be unexported (golint)
    • infomark/auth/authorize/roles.go
    • Line 31: warning: exported type CourseRole should have comment or be unexported (golint)
    • Line 34: warning: exported const NOCOURSEROLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported method CourseRole.ToInt should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function RequiresAtLeastCourseRole should be of the form "RequiresAtLeastCourseRole ..." (golint)
    • Line 69: warning: exported function HasAtLeastRole should have comment or be unexported (golint)
    • infomark/database/exam_store.go
    • Line 25: warning: exported type ExamStore should have comment or be unexported (golint)
    • Line 29: warning: exported function NewExamStore should have comment or be unexported (golint)
    • Line 35: warning: exported method ExamStore.Get should have comment or be unexported (golint)
    • Line 41: warning: exported method ExamStore.ExamsOfCourse should have comment or be unexported (golint)
    • Line 47: warning: exported method ExamStore.GetAll should have comment or be unexported (golint)
    • Line 53: warning: exported method ExamStore.Create should have comment or be unexported (golint)
    • Line 61: warning: exported method ExamStore.Update should have comment or be unexported (golint)
    • Line 65: warning: exported method ExamStore.Delete should have comment or be unexported (golint)
    • Line 69: warning: exported method ExamStore.Enroll should have comment or be unexported (golint)
    • Line 82: warning: exported method ExamStore.Disenroll should have comment or be unexported (golint)
    • Line 93: warning: exported method ExamStore.GetEnrollmentsOfUser should have comment or be unexported (golint)
    • Line 114: warning: exported method ExamStore.GetEnrollmentOfUser should have comment or be unexported (golint)
    • Line 138: warning: exported method ExamStore.UpdateUserExam should have comment or be unexported (golint)
    • Line 143: warning: exported method ExamStore.GetEnrollmentsInCourseOfExam should have comment or be unexported (golint)
    • infomark/auth/authenticate/middleware.go
    • Line 41: warning: comment on exported function RequiredValidAccessClaims should be of the form "RequiredValidAccessClaims ..." (golint)
    • Line 91: warning: exported type LoginLimiterKey should have comment or be unexported (golint)
    • Line 95: warning: exported type LoginLimiter should have comment or be unexported (golint)
    • Line 102: warning: exported type LoginLimiterKeyFromIP should have comment or be unexported (golint)
    • Line 106: warning: exported function NewLoginLimiterKeyFromIP should have comment or be unexported (golint)
    • Line 110: warning: exported method LoginLimiterKeyFromIP.Key should have comment or be unexported (golint)
    • Line 121: warning: exported function NewLoginLimiter should have comment or be unexported (golint)
    • Line 148: warning: exported method LoginLimiter.Get should have comment or be unexported (golint)
    • Line 159: warning: exported method LoginLimiter.WriteHeaders should have comment or be unexported (golint)
    • Line 165: warning: comment on exported function RateLimitMiddleware should be of the form "RateLimitMiddleware ..." (golint)
    • infomark/cmd/console/admin_cmd.go
    • Line 35: warning: exported var AdminCmd should have comment or be unexported (golint)
    • Line 40: warning: exported var AdminAddCmd should have comment or be unexported (golint)
    • Line 68: warning: exported var AdminRemoveCmd should have comment or be unexported (golint)
    • infomark/api/app/auth_requests.go
    • Line 48: warning: comment on exported type ResetPasswordRequest should be of the form "ResetPasswordRequest ..." (with optional leading article) (golint)
    • Line 55: warning: exported method ResetPasswordRequest.Bind should have comment or be unexported (golint)
    • infomark/cmd/console.go
    • Line 60: warning: exported var UtilsCmd should have comment or be unexported (golint)
    • Line 65: warning: exported var UtilsCompletionCmd should have comment or be unexported (golint)
    • Line 90: warning: exported var UtilsDocCmd should have comment or be unexported (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!