Preparing report...

Report for github.com/piotrkowalczuk/charon

A    Great!    Found 53 issues across 126 files

Tweet

gofmt73%

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!


golint84%

Golint is a linter for Go source code.

    • charon/internal/model/schema.pqt.go
    • Line 26: warning: error var RetryTransaction should have name of the form ErrFoo (golint)
    • Line 28: warning: exported function RunInTransaction should have comment or be unexported (golint)
    • Line 103: warning: exported const TableUserConstraintPrimaryKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported const TableUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 128: warning: exported var TableUserColumns should have comment or be unexported (golint)
    • Line 188: warning: exported method UserEntity.Prop should have comment or be unexported (golint)
    • Line 226: warning: exported method UserEntity.Props should have comment or be unexported (golint)
    • Line 282: warning: exported method UserIterator.Next should have comment or be unexported (golint)
    • Line 286: warning: exported method UserIterator.Close should have comment or be unexported (golint)
    • Line 290: warning: exported method UserIterator.Err should have comment or be unexported (golint)
    • Line 311: warning: exported method UserIterator.User should have comment or be unexported (golint)
    • Line 343: warning: exported type UserCriteria should have comment or be unexported (golint)
    • Line 363: warning: exported function UserOperand should have comment or be unexported (golint)
    • Line 383: warning: exported function UserOr should have comment or be unexported (golint)
    • Line 387: warning: exported function UserAnd should have comment or be unexported (golint)
    • Line 391: warning: exported type UserFindExpr should have comment or be unexported (golint)
    • Line 400: warning: exported type UserJoin should have comment or be unexported (golint)
    • Line 408: warning: exported type UserCountExpr should have comment or be unexported (golint)
    • Line 414: warning: exported type UserPatch should have comment or be unexported (golint)
    • Line 431: warning: exported type UserRepositoryBase should have comment or be unexported (golint)
    • Line 438: warning: exported method UserRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 445: warning: exported method UserRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 453: warning: exported method UserRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 463: warning: exported method UserRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 805: warning: exported method UserRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 809: warning: exported function UserCriteriaWhereClause should have comment or be unexported (golint)
    • Line 1002: warning: exported method UserRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 1183: warning: exported method UserRepositoryBase.Find should have comment or be unexported (golint)
    • Line 1215: warning: exported method UserRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 1259: warning: exported method UserRepositoryBase.FindOneByID should have comment or be unexported (golint)
    • Line 1298: warning: exported method UserRepositoryBase.FindOneByUsername should have comment or be unexported (golint)
    • Line 1302: warning: exported method UserRepositoryBase.UpdateOneByIDQuery should have comment or be unexported (golint)
    • Line 1635: warning: exported method UserRepositoryBase.UpdateOneByID should have comment or be unexported (golint)
    • Line 1639: warning: exported method UserRepositoryBase.FindOneByIDAndUpdate should have comment or be unexported (golint)
    • Line 1697: warning: exported method UserRepositoryBase.UpdateOneByUsernameQuery should have comment or be unexported (golint)
    • Line 2031: warning: exported method UserRepositoryBase.UpdateOneByUsername should have comment or be unexported (golint)
    • Line 2035: warning: exported method UserRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 2674: warning: exported method UserRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 2708: warning: exported method UserRepositoryBase.Count should have comment or be unexported (golint)
    • Line 2737: warning: exported method UserRepositoryBase.DeleteOneByID should have comment or be unexported (golint)
    • Line 2741: warning: exported type UserRepositoryBaseTx should have comment or be unexported (golint)
    • Line 2746: warning: exported method UserRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 2750: warning: exported method UserRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 2754: warning: exported method UserRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 2758: warning: exported method UserRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 2762: warning: exported method UserRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 2766: warning: exported method UserRepositoryBaseTx.FindOneByID should have comment or be unexported (golint)
    • Line 2770: warning: exported method UserRepositoryBaseTx.UpdateOneByID should have comment or be unexported (golint)
    • Line 2774: warning: exported method UserRepositoryBaseTx.UpdateOneByUsername should have comment or be unexported (golint)
    • Line 2778: warning: exported method UserRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 2782: warning: exported method UserRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 2786: warning: exported method UserRepositoryBaseTx.DeleteOneByID should have comment or be unexported (golint)
    • Line 2791: warning: exported const TableGroupConstraintNameUnique should have comment (or a comment on this block) or be unexported (golint)
    • Line 2798: warning: exported const TableGroup should have comment (or a comment on this block) or be unexported (golint)
    • Line 2808: warning: exported var TableGroupColumns should have comment or be unexported (golint)
    • Line 2844: warning: exported method GroupEntity.Prop should have comment or be unexported (golint)
    • Line 2866: warning: exported method GroupEntity.Props should have comment or be unexported (golint)
    • Line 2914: warning: exported method GroupIterator.Next should have comment or be unexported (golint)
    • Line 2918: warning: exported method GroupIterator.Close should have comment or be unexported (golint)
    • Line 2922: warning: exported method GroupIterator.Err should have comment or be unexported (golint)
    • Line 2943: warning: exported method GroupIterator.Group should have comment or be unexported (golint)
    • Line 2975: warning: exported type GroupCriteria should have comment or be unexported (golint)
    • Line 2987: warning: exported function GroupOperand should have comment or be unexported (golint)
    • Line 3007: warning: exported function GroupOr should have comment or be unexported (golint)
    • Line 3011: warning: exported function GroupAnd should have comment or be unexported (golint)
    • Line 3015: warning: exported type GroupFindExpr should have comment or be unexported (golint)
    • Line 3024: warning: exported type GroupJoin should have comment or be unexported (golint)
    • Line 3032: warning: exported type GroupCountExpr should have comment or be unexported (golint)
    • Line 3038: warning: exported type GroupPatch should have comment or be unexported (golint)
    • Line 3047: warning: exported type GroupRepositoryBase should have comment or be unexported (golint)
    • Line 3054: warning: exported method GroupRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 3061: warning: exported method GroupRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 3069: warning: exported method GroupRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 3079: warning: exported method GroupRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 3255: warning: exported method GroupRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 3259: warning: exported function GroupCriteriaWhereClause should have comment or be unexported (golint)
    • Line 3322: warning: exported method GroupRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 3503: warning: exported method GroupRepositoryBase.Find should have comment or be unexported (golint)
    • Line 3535: warning: exported method GroupRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 3579: warning: exported method GroupRepositoryBase.FindOneByID should have comment or be unexported (golint)
    • Line 3618: warning: exported method GroupRepositoryBase.FindOneByName should have comment or be unexported (golint)
    • Line 3622: warning: exported method GroupRepositoryBase.UpdateOneByIDQuery should have comment or be unexported (golint)
    • Line 3803: warning: exported method GroupRepositoryBase.UpdateOneByID should have comment or be unexported (golint)
    • Line 3807: warning: exported method GroupRepositoryBase.FindOneByIDAndUpdate should have comment or be unexported (golint)
    • Line 3865: warning: exported method GroupRepositoryBase.UpdateOneByNameQuery should have comment or be unexported (golint)
    • Line 4047: warning: exported method GroupRepositoryBase.UpdateOneByName should have comment or be unexported (golint)
    • Line 4051: warning: exported method GroupRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 4372: warning: exported method GroupRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 4406: warning: exported method GroupRepositoryBase.Count should have comment or be unexported (golint)
    • Line 4435: warning: exported method GroupRepositoryBase.DeleteOneByID should have comment or be unexported (golint)
    • Line 4439: warning: exported type GroupRepositoryBaseTx should have comment or be unexported (golint)
    • Line 4444: warning: exported method GroupRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 4448: warning: exported method GroupRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 4452: warning: exported method GroupRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 4456: warning: exported method GroupRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 4460: warning: exported method GroupRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 4464: warning: exported method GroupRepositoryBaseTx.FindOneByID should have comment or be unexported (golint)
    • Line 4468: warning: exported method GroupRepositoryBaseTx.UpdateOneByID should have comment or be unexported (golint)
    • Line 4472: warning: exported method GroupRepositoryBaseTx.UpdateOneByName should have comment or be unexported (golint)
    • Line 4476: warning: exported method GroupRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 4480: warning: exported method GroupRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 4484: warning: exported method GroupRepositoryBaseTx.DeleteOneByID should have comment or be unexported (golint)
    • Line 4489: warning: exported const TablePermissionConstraintSubsystemModuleActionUnique should have comment (or a comment on this block) or be unexported (golint)
    • Line 4494: warning: exported const TablePermission should have comment (or a comment on this block) or be unexported (golint)
    • Line 4503: warning: exported var TablePermissionColumns should have comment or be unexported (golint)
    • Line 4532: warning: exported method PermissionEntity.Prop should have comment or be unexported (golint)
    • Line 4552: warning: exported method PermissionEntity.Props should have comment or be unexported (golint)
    • Line 4599: warning: exported method PermissionIterator.Next should have comment or be unexported (golint)
    • Line 4603: warning: exported method PermissionIterator.Close should have comment or be unexported (golint)
    • Line 4607: warning: exported method PermissionIterator.Err should have comment or be unexported (golint)
    • Line 4628: warning: exported method PermissionIterator.Permission should have comment or be unexported (golint)
    • Line 4645: warning: exported type PermissionCriteria should have comment or be unexported (golint)
    • Line 4656: warning: exported function PermissionOperand should have comment or be unexported (golint)
    • Line 4676: warning: exported function PermissionOr should have comment or be unexported (golint)
    • Line 4680: warning: exported function PermissionAnd should have comment or be unexported (golint)
    • Line 4684: warning: exported type PermissionFindExpr should have comment or be unexported (golint)
    • Line 4691: warning: exported type PermissionJoin should have comment or be unexported (golint)
    • Line 4697: warning: exported type PermissionCountExpr should have comment or be unexported (golint)
    • Line 4701: warning: exported type PermissionPatch should have comment or be unexported (golint)
    • Line 4709: warning: exported type PermissionRepositoryBase should have comment or be unexported (golint)
    • Line 4716: warning: exported method PermissionRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 4723: warning: exported method PermissionRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 4731: warning: exported method PermissionRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 4741: warning: exported method PermissionRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 4897: warning: exported method PermissionRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 4901: warning: exported function PermissionCriteriaWhereClause should have comment or be unexported (golint)
    • Line 4962: warning: exported method PermissionRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 5094: warning: exported method PermissionRepositoryBase.Find should have comment or be unexported (golint)
    • Line 5126: warning: exported method PermissionRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 5170: warning: exported method PermissionRepositoryBase.FindOneByID should have comment or be unexported (golint)
    • Line 5219: warning: exported method PermissionRepositoryBase.FindOneBySubsystemAndModuleAndAction should have comment or be unexported (golint)
    • Line 5223: warning: exported method PermissionRepositoryBase.UpdateOneByIDQuery should have comment or be unexported (golint)
    • Line 5385: warning: exported method PermissionRepositoryBase.UpdateOneByID should have comment or be unexported (golint)
    • Line 5389: warning: exported method PermissionRepositoryBase.FindOneByIDAndUpdate should have comment or be unexported (golint)
    • Line 5447: warning: exported method PermissionRepositoryBase.UpdateOneBySubsystemAndModuleAndActionQuery should have comment or be unexported (golint)
    • Line 5620: warning: exported method PermissionRepositoryBase.UpdateOneBySubsystemAndModuleAndAction should have comment or be unexported (golint)
    • Line 5624: warning: exported method PermissionRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 5906: warning: exported method PermissionRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 5937: warning: exported method PermissionRepositoryBase.Count should have comment or be unexported (golint)
    • Line 5966: warning: exported method PermissionRepositoryBase.DeleteOneByID should have comment or be unexported (golint)
    • Line 5970: warning: exported type PermissionRepositoryBaseTx should have comment or be unexported (golint)
    • Line 5975: warning: exported method PermissionRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 5979: warning: exported method PermissionRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 5983: warning: exported method PermissionRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 5987: warning: exported method PermissionRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 5991: warning: exported method PermissionRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 5995: warning: exported method PermissionRepositoryBaseTx.FindOneByID should have comment or be unexported (golint)
    • Line 5999: warning: exported method PermissionRepositoryBaseTx.UpdateOneByID should have comment or be unexported (golint)
    • Line 6003: warning: exported method PermissionRepositoryBaseTx.UpdateOneBySubsystemAndModuleAndAction should have comment or be unexported (golint)
    • Line 6007: warning: exported method PermissionRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 6011: warning: exported method PermissionRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 6015: warning: exported method PermissionRepositoryBaseTx.DeleteOneByID should have comment or be unexported (golint)
    • Line 6020: warning: exported const TableUserGroupsConstraintUserIDForeignKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 6028: warning: exported const TableUserGroups should have comment (or a comment on this block) or be unexported (golint)
    • Line 6037: warning: exported var TableUserGroupsColumns should have comment or be unexported (golint)
    • Line 6070: warning: exported method UserGroupsEntity.Prop should have comment or be unexported (golint)
    • Line 6090: warning: exported method UserGroupsEntity.Props should have comment or be unexported (golint)
    • Line 6137: warning: exported method UserGroupsIterator.Next should have comment or be unexported (golint)
    • Line 6141: warning: exported method UserGroupsIterator.Close should have comment or be unexported (golint)
    • Line 6145: warning: exported method UserGroupsIterator.Err should have comment or be unexported (golint)
    • Line 6166: warning: exported method UserGroupsIterator.UserGroups should have comment or be unexported (golint)
    • Line 6212: warning: exported type UserGroupsCriteria should have comment or be unexported (golint)
    • Line 6223: warning: exported function UserGroupsOperand should have comment or be unexported (golint)
    • Line 6243: warning: exported function UserGroupsOr should have comment or be unexported (golint)
    • Line 6247: warning: exported function UserGroupsAnd should have comment or be unexported (golint)
    • Line 6251: warning: exported type UserGroupsFindExpr should have comment or be unexported (golint)
    • Line 6262: warning: exported type UserGroupsJoin should have comment or be unexported (golint)
    • Line 6272: warning: exported type UserGroupsCountExpr should have comment or be unexported (golint)
    • Line 6280: warning: exported type UserGroupsPatch should have comment or be unexported (golint)
    • Line 6289: warning: exported type UserGroupsRepositoryBase should have comment or be unexported (golint)
    • Line 6296: warning: exported method UserGroupsRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 6303: warning: exported method UserGroupsRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 6311: warning: exported method UserGroupsRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 6321: warning: exported method UserGroupsRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 6496: warning: exported method UserGroupsRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 6500: warning: exported function UserGroupsCriteriaWhereClause should have comment or be unexported (golint)
    • Line 6561: warning: exported method UserGroupsRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 6790: warning: exported method UserGroupsRepositoryBase.Find should have comment or be unexported (golint)
    • Line 6822: warning: exported method UserGroupsRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 6866: warning: exported method UserGroupsRepositoryBase.FindOneByUserIDAndGroupID should have comment or be unexported (golint)
    • Line 6870: warning: exported method UserGroupsRepositoryBase.UpdateOneByUserIDAndGroupIDQuery should have comment or be unexported (golint)
    • Line 7057: warning: exported method UserGroupsRepositoryBase.UpdateOneByUserIDAndGroupID should have comment or be unexported (golint)
    • Line 7061: warning: exported method UserGroupsRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 7381: warning: exported method UserGroupsRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 7417: warning: exported method UserGroupsRepositoryBase.Count should have comment or be unexported (golint)
    • Line 7421: warning: exported type UserGroupsRepositoryBaseTx should have comment or be unexported (golint)
    • Line 7426: warning: exported method UserGroupsRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 7430: warning: exported method UserGroupsRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 7434: warning: exported method UserGroupsRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 7438: warning: exported method UserGroupsRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 7442: warning: exported method UserGroupsRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 7446: warning: exported method UserGroupsRepositoryBaseTx.UpdateOneByUserIDAndGroupID should have comment or be unexported (golint)
    • Line 7450: warning: exported method UserGroupsRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 7454: warning: exported method UserGroupsRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 7459: warning: exported const TableGroupPermissionsConstraintGroupIDForeignKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 7467: warning: exported const TableGroupPermissions should have comment (or a comment on this block) or be unexported (golint)
    • Line 7478: warning: exported var TableGroupPermissionsColumns should have comment or be unexported (golint)
    • Line 7515: warning: exported method GroupPermissionsEntity.Prop should have comment or be unexported (golint)
    • Line 7539: warning: exported method GroupPermissionsEntity.Props should have comment or be unexported (golint)
    • Line 7588: warning: exported method GroupPermissionsIterator.Next should have comment or be unexported (golint)
    • Line 7592: warning: exported method GroupPermissionsIterator.Close should have comment or be unexported (golint)
    • Line 7596: warning: exported method GroupPermissionsIterator.Err should have comment or be unexported (golint)
    • Line 7617: warning: exported method GroupPermissionsIterator.GroupPermissions should have comment or be unexported (golint)
    • Line 7656: warning: exported type GroupPermissionsCriteria should have comment or be unexported (golint)
    • Line 7669: warning: exported function GroupPermissionsOperand should have comment or be unexported (golint)
    • Line 7689: warning: exported function GroupPermissionsOr should have comment or be unexported (golint)
    • Line 7693: warning: exported function GroupPermissionsAnd should have comment or be unexported (golint)
    • Line 7697: warning: exported type GroupPermissionsFindExpr should have comment or be unexported (golint)
    • Line 7707: warning: exported type GroupPermissionsJoin should have comment or be unexported (golint)
    • Line 7716: warning: exported type GroupPermissionsCountExpr should have comment or be unexported (golint)
    • Line 7723: warning: exported type GroupPermissionsPatch should have comment or be unexported (golint)
    • Line 7734: warning: exported type GroupPermissionsRepositoryBase should have comment or be unexported (golint)
    • Line 7741: warning: exported method GroupPermissionsRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 7748: warning: exported method GroupPermissionsRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 7756: warning: exported method GroupPermissionsRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 7766: warning: exported method GroupPermissionsRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 7981: warning: exported method GroupPermissionsRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 7985: warning: exported function GroupPermissionsCriteriaWhereClause should have comment or be unexported (golint)
    • Line 8050: warning: exported method GroupPermissionsRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 8255: warning: exported method GroupPermissionsRepositoryBase.Find should have comment or be unexported (golint)
    • Line 8287: warning: exported method GroupPermissionsRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 8341: warning: exported method GroupPermissionsRepositoryBase.FindOneByGroupIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 8345: warning: exported method GroupPermissionsRepositoryBase.UpdateOneByGroupIDAndPermissionSubsystemAndPermissionModuleAndPermissionActionQuery should have comment or be unexported (golint)
    • Line 8580: warning: exported method GroupPermissionsRepositoryBase.UpdateOneByGroupIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 8584: warning: exported method GroupPermissionsRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 8982: warning: exported method GroupPermissionsRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 9017: warning: exported method GroupPermissionsRepositoryBase.Count should have comment or be unexported (golint)
    • Line 9021: warning: exported type GroupPermissionsRepositoryBaseTx should have comment or be unexported (golint)
    • Line 9026: warning: exported method GroupPermissionsRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 9030: warning: exported method GroupPermissionsRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 9034: warning: exported method GroupPermissionsRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 9038: warning: exported method GroupPermissionsRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 9042: warning: exported method GroupPermissionsRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 9046: warning: exported method GroupPermissionsRepositoryBaseTx.UpdateOneByGroupIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 9050: warning: exported method GroupPermissionsRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 9054: warning: exported method GroupPermissionsRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 9059: warning: exported const TableUserPermissionsConstraintUserIDForeignKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 9067: warning: exported const TableUserPermissions should have comment (or a comment on this block) or be unexported (golint)
    • Line 9078: warning: exported var TableUserPermissionsColumns should have comment or be unexported (golint)
    • Line 9115: warning: exported method UserPermissionsEntity.Prop should have comment or be unexported (golint)
    • Line 9139: warning: exported method UserPermissionsEntity.Props should have comment or be unexported (golint)
    • Line 9188: warning: exported method UserPermissionsIterator.Next should have comment or be unexported (golint)
    • Line 9192: warning: exported method UserPermissionsIterator.Close should have comment or be unexported (golint)
    • Line 9196: warning: exported method UserPermissionsIterator.Err should have comment or be unexported (golint)
    • Line 9217: warning: exported method UserPermissionsIterator.UserPermissions should have comment or be unexported (golint)
    • Line 9256: warning: exported type UserPermissionsCriteria should have comment or be unexported (golint)
    • Line 9269: warning: exported function UserPermissionsOperand should have comment or be unexported (golint)
    • Line 9289: warning: exported function UserPermissionsOr should have comment or be unexported (golint)
    • Line 9293: warning: exported function UserPermissionsAnd should have comment or be unexported (golint)
    • Line 9297: warning: exported type UserPermissionsFindExpr should have comment or be unexported (golint)
    • Line 9307: warning: exported type UserPermissionsJoin should have comment or be unexported (golint)
    • Line 9316: warning: exported type UserPermissionsCountExpr should have comment or be unexported (golint)
    • Line 9323: warning: exported type UserPermissionsPatch should have comment or be unexported (golint)
    • Line 9334: warning: exported type UserPermissionsRepositoryBase should have comment or be unexported (golint)
    • Line 9341: warning: exported method UserPermissionsRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 9348: warning: exported method UserPermissionsRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 9356: warning: exported method UserPermissionsRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 9366: warning: exported method UserPermissionsRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 9581: warning: exported method UserPermissionsRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 9585: warning: exported function UserPermissionsCriteriaWhereClause should have comment or be unexported (golint)
    • Line 9650: warning: exported method UserPermissionsRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 9855: warning: exported method UserPermissionsRepositoryBase.Find should have comment or be unexported (golint)
    • Line 9887: warning: exported method UserPermissionsRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 9941: warning: exported method UserPermissionsRepositoryBase.FindOneByUserIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 9945: warning: exported method UserPermissionsRepositoryBase.UpdateOneByUserIDAndPermissionSubsystemAndPermissionModuleAndPermissionActionQuery should have comment or be unexported (golint)
    • Line 10180: warning: exported method UserPermissionsRepositoryBase.UpdateOneByUserIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 10184: warning: exported method UserPermissionsRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 10582: warning: exported method UserPermissionsRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 10617: warning: exported method UserPermissionsRepositoryBase.Count should have comment or be unexported (golint)
    • Line 10621: warning: exported type UserPermissionsRepositoryBaseTx should have comment or be unexported (golint)
    • Line 10626: warning: exported method UserPermissionsRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 10630: warning: exported method UserPermissionsRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 10634: warning: exported method UserPermissionsRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 10638: warning: exported method UserPermissionsRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 10642: warning: exported method UserPermissionsRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 10646: warning: exported method UserPermissionsRepositoryBaseTx.UpdateOneByUserIDAndPermissionSubsystemAndPermissionModuleAndPermissionAction should have comment or be unexported (golint)
    • Line 10650: warning: exported method UserPermissionsRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 10654: warning: exported method UserPermissionsRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 10659: warning: exported const TableRefreshTokenConstraintTokenUnique should have comment (or a comment on this block) or be unexported (golint)
    • Line 10666: warning: exported const TableRefreshToken should have comment (or a comment on this block) or be unexported (golint)
    • Line 10679: warning: exported var TableRefreshTokenColumns should have comment or be unexported (golint)
    • Line 10722: warning: exported method RefreshTokenEntity.Prop should have comment or be unexported (golint)
    • Line 10750: warning: exported method RefreshTokenEntity.Props should have comment or be unexported (golint)
    • Line 10801: warning: exported method RefreshTokenIterator.Next should have comment or be unexported (golint)
    • Line 10805: warning: exported method RefreshTokenIterator.Close should have comment or be unexported (golint)
    • Line 10809: warning: exported method RefreshTokenIterator.Err should have comment or be unexported (golint)
    • Line 10830: warning: exported method RefreshTokenIterator.RefreshToken should have comment or be unexported (golint)
    • Line 10869: warning: exported type RefreshTokenCriteria should have comment or be unexported (golint)
    • Line 10884: warning: exported function RefreshTokenOperand should have comment or be unexported (golint)
    • Line 10904: warning: exported function RefreshTokenOr should have comment or be unexported (golint)
    • Line 10908: warning: exported function RefreshTokenAnd should have comment or be unexported (golint)
    • Line 10912: warning: exported type RefreshTokenFindExpr should have comment or be unexported (golint)
    • Line 10922: warning: exported type RefreshTokenJoin should have comment or be unexported (golint)
    • Line 10931: warning: exported type RefreshTokenCountExpr should have comment or be unexported (golint)
    • Line 10938: warning: exported type RefreshTokenPatch should have comment or be unexported (golint)
    • Line 10951: warning: exported type RefreshTokenRepositoryBase should have comment or be unexported (golint)
    • Line 10958: warning: exported method RefreshTokenRepositoryBase.Tx should have comment or be unexported (golint)
    • Line 10965: warning: exported method RefreshTokenRepositoryBase.BeginTx should have comment or be unexported (golint)
    • Line 10973: warning: exported method RefreshTokenRepositoryBase.RunInTransaction should have comment or be unexported (golint)
    • Line 10983: warning: exported method RefreshTokenRepositoryBase.InsertQuery should have comment or be unexported (golint)
    • Line 11242: warning: exported method RefreshTokenRepositoryBase.Insert should have comment or be unexported (golint)
    • Line 11246: warning: exported function RefreshTokenCriteriaWhereClause should have comment or be unexported (golint)
    • Line 11335: warning: exported method RefreshTokenRepositoryBase.FindQuery should have comment or be unexported (golint)
    • Line 11540: warning: exported method RefreshTokenRepositoryBase.Find should have comment or be unexported (golint)
    • Line 11572: warning: exported method RefreshTokenRepositoryBase.FindIter should have comment or be unexported (golint)
    • Line 11611: warning: exported method RefreshTokenRepositoryBase.FindOneByToken should have comment or be unexported (golint)
    • Line 11615: warning: exported method RefreshTokenRepositoryBase.UpdateOneByTokenQuery should have comment or be unexported (golint)
    • Line 11873: warning: exported method RefreshTokenRepositoryBase.UpdateOneByToken should have comment or be unexported (golint)
    • Line 11877: warning: exported method RefreshTokenRepositoryBase.UpsertQuery should have comment or be unexported (golint)
    • Line 12357: warning: exported method RefreshTokenRepositoryBase.Upsert should have comment or be unexported (golint)
    • Line 12392: warning: exported method RefreshTokenRepositoryBase.Count should have comment or be unexported (golint)
    • Line 12396: warning: exported type RefreshTokenRepositoryBaseTx should have comment or be unexported (golint)
    • Line 12401: warning: exported method RefreshTokenRepositoryBaseTx.Commit should have comment or be unexported (golint)
    • Line 12405: warning: exported method RefreshTokenRepositoryBaseTx.Rollback should have comment or be unexported (golint)
    • Line 12409: warning: exported method RefreshTokenRepositoryBaseTx.Insert should have comment or be unexported (golint)
    • Line 12413: warning: exported method RefreshTokenRepositoryBaseTx.Find should have comment or be unexported (golint)
    • Line 12417: warning: exported method RefreshTokenRepositoryBaseTx.FindIter should have comment or be unexported (golint)
    • Line 12421: warning: exported method RefreshTokenRepositoryBaseTx.UpdateOneByToken should have comment or be unexported (golint)
    • Line 12425: warning: exported method RefreshTokenRepositoryBaseTx.Upsert should have comment or be unexported (golint)
    • Line 12429: warning: exported method RefreshTokenRepositoryBaseTx.Count should have comment or be unexported (golint)
    • Line 12434: warning: exported const JoinInner should have comment (or a comment on this block) or be unexported (golint)
    • Line 12441: warning: exported type JoinType should have comment or be unexported (golint)
    • Line 12482: warning: exported type RowOrder should have comment or be unexported (golint)
    • Line 12487: warning: exported type NullInt64Array should have comment or be unexported (golint)
    • Line 12492: warning: exported method NullInt64Array.Scan should have comment or be unexported (golint)
    • Line 12501: warning: exported type NullFloat64Array should have comment or be unexported (golint)
    • Line 12506: warning: exported method NullFloat64Array.Scan should have comment or be unexported (golint)
    • Line 12515: warning: exported type NullBoolArray should have comment or be unexported (golint)
    • Line 12520: warning: exported method NullBoolArray.Scan should have comment or be unexported (golint)
    • Line 12529: warning: exported type NullStringArray should have comment or be unexported (golint)
    • Line 12534: warning: exported method NullStringArray.Scan should have comment or be unexported (golint)
    • Line 12543: warning: exported type NullByteaArray should have comment or be unexported (golint)
    • Line 12548: warning: exported method NullByteaArray.Scan should have comment or be unexported (golint)
    • Line 12847: warning: exported method Composer.WriteAlias should have comment or be unexported (golint)
    • Line 12877: warning: exported function QueryInt64WhereClause should have comment or be unexported (golint)
    • Line 13140: warning: exported function QueryFloat64WhereClause should have comment or be unexported (golint)
    • Line 13403: warning: exported function QueryStringWhereClause should have comment or be unexported (golint)
    • Line 13681: warning: exported function QueryTimestampWhereClause should have comment or be unexported (golint)
    • Line 13946: warning: exported const SQL should have comment or be unexported (golint)
    • charon/internal/session/actor_provider.go
    • Line 19: warning: exported type ActorProvider should have comment or be unexported (golint)
    • Line 23: warning: exported type MnemosyneActorProvider should have comment or be unexported (golint)
    • Line 29: warning: exported method MnemosyneActorProvider.Actor should have comment or be unexported (golint)
    • charon/internal/charond/rpc_test.go
    • Line 64: warning: context.Context should be the first parameter of a function (golint)
    • Line 78: warning: context.Context should be the first parameter of a function (golint)
    • Line 92: warning: context.Context should be the first parameter of a function (golint)
    • Line 101: warning: context.Context should be the first parameter of a function (golint)
    • Line 110: warning: context.Context should be the first parameter of a function (golint)
    • charon/permission.go
    • Line 9: warning: exported const UserCanCreate should have comment (or a comment on this block) or be unexported (golint)
    • charon/internal/grpcerr/grpc.go
    • Line 10: warning: exported function UnaryServerInterceptor should have comment or be unexported (golint)
    • Line 17: warning: exported function StreamServerInterceptor should have comment or be unexported (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • charon/internal/service/user_finder.go
    • Line 15: warning: exported type UserFinder should have comment or be unexported (golint)
    • Line 19: warning: exported type UserFinderFactory should have comment or be unexported (golint)
    • Line 25: warning: exported method UserFinderFactory.ByUsernameAndPassword should have comment or be unexported (golint)
    • Line 34: warning: exported method UserFinderFactory.ByRefreshToken should have comment or be unexported (golint)
    • charon/internal/charonctl/console.go
    • Line 12: warning: exported type ConsoleOpts should have comment or be unexported (golint)
    • Line 18: warning: exported type Console should have comment or be unexported (golint)
    • Line 24: warning: exported function NewConsole should have comment or be unexported (golint)
    • charon/internal/mapping/refresh_token.go
    • Line 11: warning: exported function ReverseRefreshToken should have comment or be unexported (golint)
    • Line 50: warning: exported function ReverseRefreshTokens should have comment or be unexported (golint)
    • Line 63: warning: exported function RefreshTokenQuery should have comment or be unexported (golint)
    • charon/internal/model/permission.go
    • Line 122: warning: exported method PermissionRepository.InsertMissing should have comment or be unexported (golint)
    • Line 153: warning: exported var ErrEmptySliceOfPermissions should have comment or be unexported (golint)

gocyclo95%

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.

    • charon/internal/model/schema.pqt.go
    • Line 2035: warning: cyclomatic complexity 186 of function (*UserRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 11877: warning: cyclomatic complexity 137 of function (*RefreshTokenRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 10184: warning: cyclomatic complexity 111 of function (*UserPermissionsRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 8584: warning: cyclomatic complexity 111 of function (*GroupPermissionsRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 13403: warning: cyclomatic complexity 108 of function QueryStringWhereClause() is high (> 15) (gocyclo)
    • Line 12877: warning: cyclomatic complexity 102 of function QueryInt64WhereClause() is high (> 15) (gocyclo)
    • Line 13140: warning: cyclomatic complexity 102 of function QueryFloat64WhereClause() is high (> 15) (gocyclo)
    • Line 13681: warning: cyclomatic complexity 101 of function QueryTimestampWhereClause() is high (> 15) (gocyclo)
    • Line 463: warning: cyclomatic complexity 93 of function (*UserRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 1697: warning: cyclomatic complexity 91 of function (*UserRepositoryBase).UpdateOneByUsernameQuery() is high (> 15) (gocyclo)
    • Line 1302: warning: cyclomatic complexity 91 of function (*UserRepositoryBase).UpdateOneByIDQuery() is high (> 15) (gocyclo)
    • Line 4051: warning: cyclomatic complexity 87 of function (*GroupRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 7061: warning: cyclomatic complexity 87 of function (*UserGroupsRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 5624: warning: cyclomatic complexity 75 of function (*PermissionRepositoryBase).UpsertQuery() is high (> 15) (gocyclo)
    • Line 6561: warning: cyclomatic complexity 69 of function (*UserGroupsRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 10983: warning: cyclomatic complexity 68 of function (*RefreshTokenRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 11615: warning: cyclomatic complexity 67 of function (*RefreshTokenRepositoryBase).UpdateOneByTokenQuery() is high (> 15) (gocyclo)
    • Line 8050: warning: cyclomatic complexity 58 of function (*GroupPermissionsRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 9650: warning: cyclomatic complexity 58 of function (*UserPermissionsRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 11335: warning: cyclomatic complexity 58 of function (*RefreshTokenRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 9945: warning: cyclomatic complexity 55 of function (*UserPermissionsRepositoryBase).UpdateOneByUserIDAndPermissionSubsystemAndPermissionModuleAndPermissionActionQuery() is high (> 15) (gocyclo)
    • Line 8345: warning: cyclomatic complexity 55 of function (*GroupPermissionsRepositoryBase).UpdateOneByGroupIDAndPermissionSubsystemAndPermissionModuleAndPermissionActionQuery() is high (> 15) (gocyclo)
    • Line 9366: warning: cyclomatic complexity 54 of function (*UserPermissionsRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 7766: warning: cyclomatic complexity 54 of function (*GroupPermissionsRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 1002: warning: cyclomatic complexity 47 of function (*UserRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 3322: warning: cyclomatic complexity 47 of function (*GroupRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 3622: warning: cyclomatic complexity 43 of function (*GroupRepositoryBase).UpdateOneByIDQuery() is high (> 15) (gocyclo)
    • Line 3865: warning: cyclomatic complexity 43 of function (*GroupRepositoryBase).UpdateOneByNameQuery() is high (> 15) (gocyclo)
    • Line 6870: warning: cyclomatic complexity 43 of function (*UserGroupsRepositoryBase).UpdateOneByUserIDAndGroupIDQuery() is high (> 15) (gocyclo)
    • Line 6321: warning: cyclomatic complexity 42 of function (*UserGroupsRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 3079: warning: cyclomatic complexity 42 of function (*GroupRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 854: warning: cyclomatic complexity 41 of function _UserCriteriaWhereClause() is high (> 15) (gocyclo)
    • Line 5447: warning: cyclomatic complexity 37 of function (*PermissionRepositoryBase).UpdateOneBySubsystemAndModuleAndActionQuery() is high (> 15) (gocyclo)
    • Line 5223: warning: cyclomatic complexity 37 of function (*PermissionRepositoryBase).UpdateOneByIDQuery() is high (> 15) (gocyclo)
    • Line 4741: warning: cyclomatic complexity 36 of function (*PermissionRepositoryBase).InsertQuery() is high (> 15) (gocyclo)
    • Line 6713: warning: cyclomatic complexity 27 of function (*UserGroupsRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 4962: warning: cyclomatic complexity 25 of function (*PermissionRepositoryBase).FindQuery() is high (> 15) (gocyclo)
    • Line 11470: warning: cyclomatic complexity 23 of function (*RefreshTokenRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 9785: warning: cyclomatic complexity 23 of function (*UserPermissionsRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 8185: warning: cyclomatic complexity 23 of function (*GroupPermissionsRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 6166: warning: cyclomatic complexity 20 of function (*UserGroupsIterator).UserGroups() is high (> 15) (gocyclo)
    • Line 3440: warning: cyclomatic complexity 19 of function (*GroupRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 1120: warning: cyclomatic complexity 19 of function (*UserRepositoryBase).find() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 17 of function (*UserEntity).Prop() is high (> 15) (gocyclo)
    • Line 9217: warning: cyclomatic complexity 16 of function (*UserPermissionsIterator).UserPermissions() is high (> 15) (gocyclo)
    • Line 10830: warning: cyclomatic complexity 16 of function (*RefreshTokenIterator).RefreshToken() is high (> 15) (gocyclo)
    • Line 7617: warning: cyclomatic complexity 16 of function (*GroupPermissionsIterator).GroupPermissions() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words