Preparing report...

Report for github.com/stashapp/stash-box

(v0.0.3)

A+    Excellent!    Found 83 issues across 144 files

Tweet

gofmt97%

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!


gocyclo90%

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.

    • pkg/api/performer_edit_integration_test.go
    • Line 196: warning: cyclomatic complexity 70 of function (*performerEditTestRunner).verifyPerformerEdit() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 41 of function (*performerEditTestRunner).verifyPerformerEditDetails() is high (> 15) (gocyclo)
    • pkg/api/resolver_mutation_edit.go
    • Line 21: warning: cyclomatic complexity 18 of function (*mutationResolver).TagEdit() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 18 of function (*mutationResolver).PerformerEdit() is high (> 15) (gocyclo)
    • pkg/models/extension_edit_details.go
    • Line 73: warning: cyclomatic complexity 95 of function (PerformerEditDetailsInput).PerformerEditFromDiff() is high (> 15) (gocyclo)
    • Line 250: warning: cyclomatic complexity 18 of function (PerformerEditDetailsInput).PerformerEditFromCreate() is high (> 15) (gocyclo)
    • pkg/models/model_performer.go
    • Line 493: warning: cyclomatic complexity 35 of function (*Performer).ValidateModifyEdit() is high (> 15) (gocyclo)
    • Line 404: warning: cyclomatic complexity 33 of function (*Performer).CopyFromPerformerEdit() is high (> 15) (gocyclo)
    • pkg/sqlx/sql.go
    • Line 246: warning: cyclomatic complexity 32 of function sqlGenKeys() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 22 of function sqlGenKeysCreate() is high (> 15) (gocyclo)
    • pkg/manager/edit/performer.go
    • Line 201: warning: cyclomatic complexity 25 of function BodyModCompare() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 19 of function MergePerformerEdit() is high (> 15) (gocyclo)
    • pkg/sqlx/querybuilder_performer.go
    • Line 636: warning: cyclomatic complexity 23 of function (*performerQueryBuilder).ApplyEdit() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 21 of function (*performerQueryBuilder).ApplyModifyEdit() is high (> 15) (gocyclo)
    • Line 204: warning: cyclomatic complexity 18 of function (*performerQueryBuilder).Query() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • pkg/logger/progress_formatter.go
    • Line 7: warning: exported type ProgressFormatter should have comment or be unexported (golint)
    • Line 9: warning: exported method ProgressFormatter.Format should have comment or be unexported (golint)
    • pkg/models/extension_query_spec.go
    • Line 3: warning: exported method QuerySpec.GetSort should have comment or be unexported (golint)
    • Line 13: warning: exported method QuerySpec.GetDirection should have comment or be unexported (golint)
    • pkg/models/image.go
    • Line 7: warning: exported type ImageRepo should have comment or be unexported (golint)
    • Line 21: warning: exported type ImageCreator should have comment or be unexported (golint)
    • Line 25: warning: exported type ImageFinder should have comment or be unexported (golint)
    • Line 33: warning: exported type ImageDestroyer should have comment or be unexported (golint)
    • pkg/api/urlbuilders/s3image.go
    • Line 11: warning: exported type S3ImageURLBuilder should have comment or be unexported (golint)
    • Line 15: warning: exported function NewS3ImageURLBuilder should have comment or be unexported (golint)
    • Line 21: warning: exported method S3ImageURLBuilder.GetImageURL should have comment or be unexported (golint)
    • pkg/manager/manager.go
    • Line 28: warning: exported function GetInstance should have comment or be unexported (golint)
    • Line 33: warning: exported function Initialize should have comment or be unexported (golint)
    • pkg/models/model_image.go
    • Line 10: warning: exported type Image should have comment or be unexported (golint)
    • Line 18: warning: exported method Image.GetID should have comment or be unexported (golint)
    • Line 22: warning: exported type Images should have comment or be unexported (golint)
    • Line 24: warning: exported method Images.Each should have comment or be unexported (golint)
    • Line 30: warning: exported method Images.ToURLSlice should have comment or be unexported (golint)
    • Line 38: warning: exported method Images.OrderLandscape should have comment or be unexported (golint)
    • Line 51: warning: exported method Images.OrderPortrait should have comment or be unexported (golint)
    • Line 64: warning: exported method Images.Add should have comment or be unexported (golint)
    • Line 68: warning: exported method Image.IsEditTarget should have comment or be unexported (golint)
    • Line 71: warning: exported method Image.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 75: warning: exported method Image.CopyFromUpdateInput should have comment or be unexported (golint)
    • pkg/models/sqlite_date.go
    • Line 11: warning: exported type SQLiteDate should have comment or be unexported (golint)
    • Line 46: warning: exported method SQLiteDate.IsValid should have comment or be unexported (golint)
    • pkg/api/urlbuilders/image.go
    • Line 3: warning: exported type ImageURLBuilder should have comment or be unexported (golint)
    • Line 8: warning: exported function NewImageURLBuilder should have comment or be unexported (golint)
    • Line 15: warning: exported method ImageURLBuilder.GetImageURL should have comment or be unexported (golint)
    • pkg/logger/logger.go
    • Line 13: warning: exported type LogItem should have comment or be unexported (golint)
    • Line 25: warning: exported var LogCache should have comment or be unexported (golint)
    • Line 71: warning: exported function SetLogLevel should have comment or be unexported (golint)
    • Line 100: warning: exported function GetLogCache should have comment or be unexported (golint)
    • Line 111: warning: exported function SubscribeToLog should have comment or be unexported (golint)
    • Line 183: warning: exported function Progressf should have comment or be unexported (golint)
    • Line 193: warning: exported function Trace should have comment or be unexported (golint)
    • Line 197: warning: exported function Debug should have comment or be unexported (golint)
    • Line 206: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 215: warning: exported function Info should have comment or be unexported (golint)
    • Line 224: warning: exported function Infof should have comment or be unexported (golint)
    • Line 233: warning: exported function Warn should have comment or be unexported (golint)
    • Line 242: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 251: warning: exported function Error should have comment or be unexported (golint)
    • Line 260: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 269: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 273: warning: exported function Fatalf should have comment or be unexported (golint)
    • pkg/user/apikey.go
    • Line 12: warning: exported var ErrInvalidToken should have comment or be unexported (golint)
    • Line 14: warning: exported const APIKeySubject should have comment or be unexported (golint)
    • Line 16: warning: exported type APIKeyClaims should have comment or be unexported (golint)
    • Line 21: warning: exported function GenerateAPIKey should have comment or be unexported (golint)
    • pkg/utils/string_collections.go
    • Line 5: warning: exported function StrIndex should have comment or be unexported (golint)
    • Line 14: warning: exported function StrInclude should have comment or be unexported (golint)
    • Line 18: warning: exported function StrFilter should have comment or be unexported (golint)
    • Line 28: warning: exported function StrMap should have comment or be unexported (golint)
    • pkg/email/email.go
    • Line 12: warning: exported type Manager should have comment or be unexported (golint)
    • Line 16: warning: exported function NewManager should have comment or be unexported (golint)
    • Line 53: warning: exported method Manager.Send should have comment or be unexported (golint)
    • pkg/models/json_time.go
    • Line 10: warning: exported type JSONTime should have comment or be unexported (golint)
    • Line 14: warning: exported method JSONTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method JSONTime.MarshalJSON should have comment or be unexported (golint)
    • pkg/utils/crypto.go
    • Line 12: warning: exported function MD5FromBytes should have comment or be unexported (golint)
    • Line 17: warning: exported function MD5FromString should have comment or be unexported (golint)
    • Line 22: warning: exported function MD5FromFilePath should have comment or be unexported (golint)
    • Line 38: warning: exported function GenerateRandomPassword should have comment or be unexported (golint)
    • Line 50: warning: exported function GenerateRandomKey should have comment or be unexported (golint)
    • pkg/manager/config/config.go
    • Line 13: warning: exported type S3Config should have comment or be unexported (golint)
    • Line 67: warning: exported var JWTSignKey should have comment or be unexported (golint)
    • Line 68: warning: exported var SessionStoreKey should have comment or be unexported (golint)
    • Line 69: warning: exported var Database should have comment or be unexported (golint)
    • Line 71: warning: exported type ImageBackendType should have comment or be unexported (golint)
    • Line 74: warning: exported const FileBackend should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported var C should have comment or be unexported (golint)
    • Line 89: warning: exported function GetDatabasePath should have comment or be unexported (golint)
    • Line 93: warning: exported function GetHost should have comment or be unexported (golint)
    • Line 97: warning: exported function GetPort should have comment or be unexported (golint)
    • Line 101: warning: exported function GetJWTSignKey should have comment or be unexported (golint)
    • Line 105: warning: exported function GetSessionStoreKey should have comment or be unexported (golint)
    • Line 109: warning: exported function GetHTTPUpgrade should have comment or be unexported (golint)
    • Line 113: warning: exported function GetIsProduction should have comment or be unexported (golint)
    • Line 158: warning: exported function GetEmailHost should have comment or be unexported (golint)
    • Line 162: warning: exported function GetEmailPort should have comment or be unexported (golint)
    • Line 166: warning: exported function GetEmailUser should have comment or be unexported (golint)
    • Line 170: warning: exported function GetEmailPassword should have comment or be unexported (golint)
    • Line 174: warning: exported function GetEmailFrom should have comment or be unexported (golint)
    • Line 178: warning: exported function GetHostURL should have comment or be unexported (golint)
    • Line 192: warning: exported function GetS3Config should have comment or be unexported (golint)
    • Line 238: warning: exported function GetPHashDistance should have comment or be unexported (golint)
    • Line 242: warning: exported function InitializeDefaults should have comment or be unexported (golint)
    • Line 269: warning: comment on exported function Initialize should be of the form "Initialize ..." (golint)
    • Line 274: warning: exported function GetMissingEmailSettings should have comment or be unexported (golint)
    • pkg/manager/paths/paths.go
    • Line 7: warning: exported function GetConfigDirectory should have comment or be unexported (golint)
    • Line 11: warning: exported function GetDefaultDatabaseFilePath should have comment or be unexported (golint)
    • Line 15: warning: exported function GetConfigName should have comment or be unexported (golint)
    • Line 19: warning: exported function GetDefaultConfigFilePath should have comment or be unexported (golint)
    • Line 23: warning: exported function GetSSLKey should have comment or be unexported (golint)
    • Line 27: warning: exported function GetSSLCert should have comment or be unexported (golint)
    • pkg/user/activation.go
    • Line 15: warning: exported var ErrInvalidActivationKey should have comment or be unexported (golint)
    • Line 145: warning: exported function ClearExpiredActivations should have comment or be unexported (golint)
    • Line 161: warning: exported function ActivateNewUser should have comment or be unexported (golint)
    • Line 310: warning: exported function ActivateResetPassword should have comment or be unexported (golint)
    • pkg/models/model_joins.go
    • Line 9: warning: exported type PerformerScene should have comment or be unexported (golint)
    • Line 15: warning: exported type PerformersScenes should have comment or be unexported (golint)
    • Line 17: warning: exported method PerformersScenes.Each should have comment or be unexported (golint)
    • Line 23: warning: exported method PerformersScenes.Add should have comment or be unexported (golint)
    • Line 27: warning: exported type SceneTag should have comment or be unexported (golint)
    • Line 32: warning: exported type ScenesTags should have comment or be unexported (golint)
    • Line 34: warning: exported method ScenesTags.Each should have comment or be unexported (golint)
    • Line 40: warning: exported method ScenesTags.Add should have comment or be unexported (golint)
    • Line 44: warning: exported type SceneImage should have comment or be unexported (golint)
    • Line 49: warning: exported type ScenesImages should have comment or be unexported (golint)
    • Line 51: warning: exported method ScenesImages.Each should have comment or be unexported (golint)
    • Line 57: warning: exported method ScenesImages.Add should have comment or be unexported (golint)
    • Line 61: warning: exported type PerformerImage should have comment or be unexported (golint)
    • Line 66: warning: exported method PerformerImage.ID should have comment or be unexported (golint)
    • Line 70: warning: exported type PerformersImages should have comment or be unexported (golint)
    • Line 72: warning: exported method PerformersImages.Each should have comment or be unexported (golint)
    • Line 78: warning: exported method PerformersImages.Add should have comment or be unexported (golint)
    • Line 82: warning: exported method PerformersImages.EachPtr should have comment or be unexported (golint)
    • Line 88: warning: exported method PerformersImages.Remove should have comment or be unexported (golint)
    • Line 98: warning: exported type StudioImage should have comment or be unexported (golint)
    • Line 103: warning: exported type StudiosImages should have comment or be unexported (golint)
    • Line 105: warning: exported method StudiosImages.Each should have comment or be unexported (golint)
    • Line 111: warning: exported method StudiosImages.Add should have comment or be unexported (golint)
    • Line 115: warning: exported type URL should have comment or be unexported (golint)
    • Line 120: warning: exported type URLInput should have comment or be unexported (golint)
    • pkg/models/model_tag_category.go
    • Line 9: warning: exported type TagCategory should have comment or be unexported (golint)
    • Line 18: warning: exported method TagCategory.GetID should have comment or be unexported (golint)
    • Line 22: warning: exported type TagCategories should have comment or be unexported (golint)
    • Line 24: warning: exported method TagCategories.Each should have comment or be unexported (golint)
    • Line 30: warning: exported method TagCategories.Add should have comment or be unexported (golint)
    • Line 34: warning: exported method TagCategory.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 38: warning: exported method TagCategory.CopyFromUpdateInput should have comment or be unexported (golint)
    • pkg/api/server.go
    • Line 36: warning: exported const APIKeyHeader should have comment or be unexported (golint)
    • Line 106: warning: exported function Start should have comment or be unexported (golint)
    • Line 234: warning: exported function GetVersion should have comment or be unexported (golint)
    • Line 266: warning: exported var BaseURLCtxKey should have comment or be unexported (golint)
    • Line 269: warning: exported function BaseURLMiddleware should have comment or be unexported (golint)
    • pkg/image/file.go
    • Line 13: warning: exported type FileBackend should have comment or be unexported (golint)
    • Line 15: warning: exported method FileBackend.WriteFile should have comment or be unexported (golint)
    • Line 40: warning: exported method FileBackend.DestroyFile should have comment or be unexported (golint)
    • pkg/models/model_pending_activation.go
    • Line 8: warning: exported const PendingActivationTypeNewUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type PendingActivation should have comment or be unexported (golint)
    • Line 20: warning: exported method PendingActivation.GetID should have comment or be unexported (golint)
    • Line 24: warning: exported type PendingActivations should have comment or be unexported (golint)
    • Line 26: warning: exported method PendingActivations.Each should have comment or be unexported (golint)
    • Line 32: warning: exported method PendingActivations.Add should have comment or be unexported (golint)
    • pkg/database/databasetest/database_test_utils.go
    • Line 26: warning: exported type DatabasePopulater should have comment or be unexported (golint)
    • Line 101: warning: exported function TestWithDatabase should have comment or be unexported (golint)
    • Line 106: warning: exported function WithTransientTransaction should have comment or be unexported (golint)
    • Line 123: warning: exported function Repo should have comment or be unexported (golint)
    • pkg/image/utils.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 80: warning: exported function GetImagePath should have comment or be unexported (golint)
    • pkg/manager/edit/performer.go
    • Line 12: warning: exported function ModifyPerformerEdit should have comment or be unexported (golint)
    • Line 73: warning: exported function MergePerformerEdit should have comment or be unexported (golint)
    • Line 161: warning: exported function CreatePerformerEdit should have comment or be unexported (golint)
    • Line 187: warning: exported function DestroyPerformerEdit should have comment or be unexported (golint)
    • Line 201: warning: exported function BodyModCompare should have comment or be unexported (golint)
    • Line 246: warning: exported function URLCompare should have comment or be unexported (golint)
    • pkg/user/invite.go
    • Line 12: warning: exported var ErrNoInviteTokens should have comment or be unexported (golint)
    • Line 14: warning: exported type UserFinder should have comment or be unexported (golint)
    • Line 18: warning: exported type UserFinderUpdater should have comment or be unexported (golint)
    • pkg/image/s3.go
    • Line 16: warning: exported type S3Backend should have comment or be unexported (golint)
    • Line 18: warning: exported method S3Backend.WriteFile should have comment or be unexported (golint)
    • Line 55: warning: exported method S3Backend.DestroyFile should have comment or be unexported (golint)
    • pkg/models/invite_key.go
    • Line 9: warning: exported type InviteKeyRepo should have comment or be unexported (golint)
    • Line 15: warning: exported type InviteKeyCreator should have comment or be unexported (golint)
    • Line 19: warning: exported type InviteKeyFinder should have comment or be unexported (golint)
    • Line 24: warning: exported type InviteKeyDestroyer should have comment or be unexported (golint)
    • pkg/models/sqlite_timestamp.go
    • Line 8: warning: exported type SQLiteTimestamp should have comment or be unexported (golint)
    • Line 23: warning: exported method SQLiteTimestamp.IsValid should have comment or be unexported (golint)
    • pkg/api/resolver.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 16: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 22: warning: exported method Resolver.Mutation should have comment or be unexported (golint)
    • Line 25: warning: exported method Resolver.Edit should have comment or be unexported (golint)
    • Line 28: warning: exported method Resolver.EditComment should have comment or be unexported (golint)
    • Line 31: warning: exported method Resolver.Performer should have comment or be unexported (golint)
    • Line 34: warning: exported method Resolver.PerformerEdit should have comment or be unexported (golint)
    • Line 37: warning: exported method Resolver.Tag should have comment or be unexported (golint)
    • Line 40: warning: exported method Resolver.TagCategory should have comment or be unexported (golint)
    • Line 43: warning: exported method Resolver.Image should have comment or be unexported (golint)
    • Line 46: warning: exported method Resolver.Studio should have comment or be unexported (golint)
    • Line 49: warning: exported method Resolver.Scene should have comment or be unexported (golint)
    • Line 52: warning: exported method Resolver.User should have comment or be unexported (golint)
    • Line 55: warning: exported method Resolver.Query should have comment or be unexported (golint)
    • pkg/manager/edit/tag.go
    • Line 17: warning: exported function ModifyTagEdit should have comment or be unexported (golint)
    • Line 49: warning: exported function MergeTagEdit should have comment or be unexported (golint)
    • Line 105: warning: exported function CreateTagEdit should have comment or be unexported (golint)
    • Line 116: warning: exported function DestroyTagEdit should have comment or be unexported (golint)
    • pkg/models/extension_edit_details.go
    • Line 7: warning: exported method TagEditDetailsInput.TagEditFromDiff should have comment or be unexported (golint)
    • Line 43: warning: exported method TagEditDetailsInput.TagEditFromMerge should have comment or be unexported (golint)
    • Line 50: warning: exported method TagEditDetailsInput.TagEditFromCreate should have comment or be unexported (golint)
    • Line 73: warning: exported method PerformerEditDetailsInput.PerformerEditFromDiff should have comment or be unexported (golint)
    • Line 243: warning: exported method PerformerEditDetailsInput.PerformerEditFromMerge should have comment or be unexported (golint)
    • Line 250: warning: exported method PerformerEditDetailsInput.PerformerEditFromCreate should have comment or be unexported (golint)
    • Line 341: warning: exported type EditSliceValue should have comment or be unexported (golint)
    • Line 345: warning: exported type EditSlice should have comment or be unexported (golint)
    • Line 352: warning: exported function ProcessSlice should have comment or be unexported (golint)
    • pkg/models/model_studio.go
    • Line 7: warning: exported type Studio should have comment or be unexported (golint)
    • Line 16: warning: exported method Studio.GetID should have comment or be unexported (golint)
    • Line 20: warning: exported type Studios should have comment or be unexported (golint)
    • Line 22: warning: exported method Studios.Each should have comment or be unexported (golint)
    • Line 28: warning: exported method Studios.Add should have comment or be unexported (golint)
    • Line 32: warning: exported type StudioURL should have comment or be unexported (golint)
    • Line 38: warning: exported method StudioURL.ToURL should have comment or be unexported (golint)
    • Line 46: warning: exported type PerformerStudio should have comment or be unexported (golint)
    • Line 51: warning: exported type StudioURLs should have comment or be unexported (golint)
    • Line 53: warning: exported method StudioURLs.Each should have comment or be unexported (golint)
    • Line 59: warning: exported method StudioURLs.Add should have comment or be unexported (golint)
    • Line 63: warning: exported function CreateStudioURLs should have comment or be unexported (golint)
    • Line 77: warning: exported method Studio.IsEditTarget should have comment or be unexported (golint)
    • Line 80: warning: exported method Studio.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 91: warning: exported method Studio.CopyFromUpdateInput should have comment or be unexported (golint)
    • Line 104: warning: exported function CreateStudioImages should have comment or be unexported (golint)
    • pkg/utils/date.go
    • Line 10: warning: exported function GetYMDFromDatabaseDate should have comment or be unexported (golint)
    • Line 15: warning: exported function ParseDateStringAsFormat should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseDateStringAsTime should have comment or be unexported (golint)
    • pkg/utils/enum.go
    • Line 22: warning: exported function ResolveEnum should have comment or be unexported (golint)
    • Line 33: warning: exported function ResolveEnumString should have comment or be unexported (golint)
    • pkg/image/image_service.go
    • Line 9: warning: exported type ImageService should have comment or be unexported (golint)
    • Line 16: warning: exported function GetService should have comment or be unexported (golint)
    • pkg/utils/natural_sort.go
    • Line 63: warning: exported function NaturalSort should have comment or be unexported (golint)
    • Line 67: warning: exported function NaturalCompare should have comment or be unexported (golint)
    • pkg/image/service.go
    • Line 13: warning: exported type Service should have comment or be unexported (golint)
    • Line 18: warning: exported method Service.Create should have comment or be unexported (golint)
    • Line 99: warning: exported method Service.Destroy should have comment or be unexported (golint)
    • pkg/models/activation.go
    • Line 9: warning: exported type PendingActivationRepo should have comment or be unexported (golint)
    • Line 18: warning: exported type PendingActivationFinder should have comment or be unexported (golint)
    • Line 24: warning: exported type PendingActivationCreator should have comment or be unexported (golint)
    • pkg/models/models_invite_key.go
    • Line 7: warning: exported type InviteKey should have comment or be unexported (golint)
    • Line 13: warning: exported method InviteKey.GetID should have comment or be unexported (golint)
    • Line 17: warning: exported type InviteKeys should have comment or be unexported (golint)
    • Line 19: warning: exported method InviteKeys.Each should have comment or be unexported (golint)
    • Line 25: warning: exported method InviteKeys.Add should have comment or be unexported (golint)
    • pkg/sqlx/postgres/postgres.go
    • Line 6: warning: exported method Dialect.FieldQuote should have comment or be unexported (golint)
    • Line 10: warning: exported method Dialect.NullsLast should have comment or be unexported (golint)
    • pkg/dataloader/loaders.go
    • Line 18: warning: exported type Loaders should have comment or be unexported (golint)
    • Line 38: warning: exported function Middleware should have comment or be unexported (golint)
    • Line 48: warning: exported function For should have comment or be unexported (golint)
    • Line 52: warning: exported function GetLoadersKey should have comment or be unexported (golint)
    • Line 55: warning: exported function GetLoaders should have comment or be unexported (golint)
    • pkg/models/model_performer.go
    • Line 11: warning: exported type Performer should have comment or be unexported (golint)
    • Line 35: warning: exported method Performer.GetID should have comment or be unexported (golint)
    • Line 39: warning: exported type Performers should have comment or be unexported (golint)
    • Line 41: warning: exported method Performers.Each should have comment or be unexported (golint)
    • Line 47: warning: exported method Performers.Add should have comment or be unexported (golint)
    • Line 51: warning: exported type PerformerRedirect should have comment or be unexported (golint)
    • Line 56: warning: exported type PerformerRedirects should have comment or be unexported (golint)
    • Line 58: warning: exported method PerformerRedirects.Add should have comment or be unexported (golint)
    • Line 62: warning: exported method PerformerRedirects.Each should have comment or be unexported (golint)
    • Line 68: warning: exported type PerformerAlias should have comment or be unexported (golint)
    • Line 73: warning: exported method PerformerAlias.ID should have comment or be unexported (golint)
    • Line 77: warning: exported type PerformerAliases should have comment or be unexported (golint)
    • Line 79: warning: exported method PerformerAliases.Each should have comment or be unexported (golint)
    • Line 85: warning: exported method PerformerAliases.EachPtr should have comment or be unexported (golint)
    • Line 91: warning: exported method PerformerAliases.Add should have comment or be unexported (golint)
    • Line 95: warning: exported method PerformerAliases.ToAliases should have comment or be unexported (golint)
    • Line 104: warning: exported method PerformerAliases.Remove should have comment or be unexported (golint)
    • Line 114: warning: exported method PerformerAliases.AddAliases should have comment or be unexported (golint)
    • Line 130: warning: exported method PerformerAliases.RemoveAliases should have comment or be unexported (golint)
    • Line 146: warning: exported function CreatePerformerAliases should have comment or be unexported (golint)
    • Line 156: warning: exported type PerformerURL should have comment or be unexported (golint)
    • Line 162: warning: exported method PerformerURL.ToURL should have comment or be unexported (golint)
    • Line 170: warning: exported method PerformerURL.ID should have comment or be unexported (golint)
    • Line 174: warning: exported type PerformerURLs should have comment or be unexported (golint)
    • Line 176: warning: exported method PerformerURLs.Each should have comment or be unexported (golint)
    • Line 182: warning: exported method PerformerURLs.EachPtr should have comment or be unexported (golint)
    • Line 188: warning: exported method PerformerURLs.Add should have comment or be unexported (golint)
    • Line 192: warning: exported method PerformerURLs.Remove should have comment or be unexported (golint)
    • Line 202: warning: exported function CreatePerformerURLs should have comment or be unexported (golint)
    • Line 216: warning: exported type BodyModification should have comment or be unexported (golint)
    • Line 221: warning: exported type BodyModificationInput should have comment or be unexported (golint)
    • Line 223: warning: exported type PerformerBodyMod should have comment or be unexported (golint)
    • Line 229: warning: exported method PerformerBodyMod.ToBodyModification should have comment or be unexported (golint)
    • Line 240: warning: exported method PerformerBodyMod.ID should have comment or be unexported (golint)
    • Line 244: warning: exported type PerformerBodyMods should have comment or be unexported (golint)
    • Line 246: warning: exported method PerformerBodyMods.Each should have comment or be unexported (golint)
    • Line 252: warning: exported method PerformerBodyMods.EachPtr should have comment or be unexported (golint)
    • Line 258: warning: exported method PerformerBodyMods.Add should have comment or be unexported (golint)
    • Line 262: warning: exported method PerformerBodyMods.Remove should have comment or be unexported (golint)
    • Line 272: warning: exported method PerformerBodyMods.ToBodyModifications should have comment or be unexported (golint)
    • Line 281: warning: exported function CreatePerformerBodyMods should have comment or be unexported (golint)
    • Line 301: warning: exported method Performer.IsEditTarget should have comment or be unexported (golint)
    • Line 309: warning: exported method Performer.ResolveBirthdate should have comment or be unexported (golint)
    • Line 340: warning: exported method Performer.ResolveMeasurements should have comment or be unexported (golint)
    • Line 362: warning: exported method Performer.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 376: warning: exported method Performer.CopyFromUpdateInput should have comment or be unexported (golint)
    • Line 390: warning: exported function CreatePerformerImages should have comment or be unexported (golint)
    • Line 404: warning: exported method Performer.CopyFromPerformerEdit should have comment or be unexported (golint)
    • Line 493: warning: exported method Performer.ValidateModifyEdit should have comment or be unexported (golint)
    • pkg/database/postgres.go
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 26: warning: exported type PostgresProvider should have comment or be unexported (golint)
    • Line 28: warning: exported method PostgresProvider.Open should have comment or be unexported (golint)
    • pkg/user/user.go
    • Line 27: warning: exported var ErrUserNotExist should have comment or be unexported (golint)
    • Line 51: warning: exported function ValidateCreate should have comment or be unexported (golint)
    • Line 73: warning: exported function ValidateUpdate should have comment or be unexported (golint)
    • Line 119: warning: exported function ValidateDestroy should have comment or be unexported (golint)
    • Line 207: warning: exported function Create should have comment or be unexported (golint)
    • Line 253: warning: exported function Update should have comment or be unexported (golint)
    • Line 287: warning: exported function Destroy should have comment or be unexported (golint)
    • Line 352: warning: exported function Get should have comment or be unexported (golint)
    • Line 358: warning: exported function GetRoles should have comment or be unexported (golint)
    • Line 392: warning: exported function RegenerateAPIKey should have comment or be unexported (golint)
    • Line 421: warning: exported function ChangePassword should have comment or be unexported (golint)
    • pkg/models/model_scene.go
    • Line 9: warning: exported type Scene should have comment or be unexported (golint)
    • Line 22: warning: exported method Scene.GetID should have comment or be unexported (golint)
    • Line 26: warning: exported type Scenes should have comment or be unexported (golint)
    • Line 28: warning: exported method Scenes.Each should have comment or be unexported (golint)
    • Line 34: warning: exported method Scenes.Add should have comment or be unexported (golint)
    • Line 38: warning: exported type SceneFingerprint should have comment or be unexported (golint)
    • Line 48: warning: exported type SceneURL should have comment or be unexported (golint)
    • Line 54: warning: exported method SceneURL.ToURL should have comment or be unexported (golint)
    • Line 62: warning: exported type SceneURLs should have comment or be unexported (golint)
    • Line 64: warning: exported method SceneURLs.Each should have comment or be unexported (golint)
    • Line 70: warning: exported method SceneURLs.Add should have comment or be unexported (golint)
    • Line 74: warning: exported function CreateSceneURLs should have comment or be unexported (golint)
    • Line 88: warning: exported method SceneFingerprint.ToFingerprint should have comment or be unexported (golint)
    • Line 99: warning: exported type SceneFingerprints should have comment or be unexported (golint)
    • Line 101: warning: exported method SceneFingerprints.Each should have comment or be unexported (golint)
    • Line 107: warning: exported method SceneFingerprints.Add should have comment or be unexported (golint)
    • Line 111: warning: exported method SceneFingerprints.ToFingerprints should have comment or be unexported (golint)
    • Line 120: warning: exported function CreateSceneFingerprints should have comment or be unexported (golint)
    • Line 140: warning: exported function CreateSubmittedSceneFingerprints should have comment or be unexported (golint)
    • Line 157: warning: exported function CreateSceneTags should have comment or be unexported (golint)
    • Line 171: warning: exported function CreateSceneImages should have comment or be unexported (golint)
    • Line 185: warning: exported function CreateScenePerformers should have comment or be unexported (golint)
    • Line 204: warning: exported method Scene.IsEditTarget should have comment or be unexported (golint)
    • Line 211: warning: exported method Scene.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 219: warning: exported method Scene.CopyFromUpdateInput should have comment or be unexported (golint)
    • pkg/models/model_tag.go
    • Line 11: warning: exported type Tag should have comment or be unexported (golint)
    • Line 21: warning: exported method Tag.GetID should have comment or be unexported (golint)
    • Line 25: warning: exported type Tags should have comment or be unexported (golint)
    • Line 27: warning: exported method Tags.Each should have comment or be unexported (golint)
    • Line 33: warning: exported method Tags.Add should have comment or be unexported (golint)
    • Line 37: warning: exported type TagRedirect should have comment or be unexported (golint)
    • Line 42: warning: exported type TagAlias should have comment or be unexported (golint)
    • Line 47: warning: exported type TagAliases should have comment or be unexported (golint)
    • Line 49: warning: exported method TagAliases.Each should have comment or be unexported (golint)
    • Line 55: warning: exported method TagAliases.Add should have comment or be unexported (golint)
    • Line 59: warning: exported method TagAliases.Remove should have comment or be unexported (golint)
    • Line 68: warning: exported method TagAliases.AddAliases should have comment or be unexported (golint)
    • Line 84: warning: exported method TagAliases.RemoveAliases should have comment or be unexported (golint)
    • Line 100: warning: exported method TagAliases.ToAliases should have comment or be unexported (golint)
    • Line 109: warning: exported function CreateTagAliases should have comment or be unexported (golint)
    • Line 119: warning: exported method Tag.IsEditTarget should have comment or be unexported (golint)
    • Line 122: warning: exported method Tag.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 133: warning: exported method Tag.CopyFromUpdateInput should have comment or be unexported (golint)
    • Line 146: warning: exported method Tag.CopyFromTagEdit should have comment or be unexported (golint)
    • Line 163: warning: exported method Tag.ValidateModifyEdit should have comment or be unexported (golint)
    • pkg/models/models_user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 24: warning: exported method User.GetID should have comment or be unexported (golint)
    • Line 28: warning: exported type Users should have comment or be unexported (golint)
    • Line 30: warning: exported method Users.Each should have comment or be unexported (golint)
    • Line 36: warning: exported method Users.Add should have comment or be unexported (golint)
    • Line 40: warning: exported type UserRole should have comment or be unexported (golint)
    • Line 45: warning: exported type UserRoles should have comment or be unexported (golint)
    • Line 47: warning: exported method UserRoles.Each should have comment or be unexported (golint)
    • Line 53: warning: exported method UserRoles.Add should have comment or be unexported (golint)
    • Line 57: warning: exported method UserRoles.ToRoles should have comment or be unexported (golint)
    • Line 66: warning: exported function CreateUserRoles should have comment or be unexported (golint)
    • Line 79: warning: exported method User.SetPasswordHash should have comment or be unexported (golint)
    • Line 92: warning: exported method User.IsPasswordCorrect should have comment or be unexported (golint)
    • Line 97: warning: exported method User.CopyFromCreateInput should have comment or be unexported (golint)
    • Line 109: warning: exported method User.CopyFromUpdateInput should have comment or be unexported (golint)
    • pkg/models/model_edit.go
    • Line 12: warning: exported type Edit should have comment or be unexported (golint)
    • Line 25: warning: exported type EditComment should have comment or be unexported (golint)
    • Line 33: warning: exported function NewEdit should have comment or be unexported (golint)
    • Line 49: warning: exported function NewEditComment should have comment or be unexported (golint)
    • Line 63: warning: exported method Edit.GetID should have comment or be unexported (golint)
    • Line 67: warning: exported method Edit.ImmediateAccept should have comment or be unexported (golint)
    • Line 73: warning: exported method Edit.ImmediateReject should have comment or be unexported (golint)
    • Line 78: warning: exported method Edit.SetData should have comment or be unexported (golint)
    • Line 90: warning: exported method Edit.GetData should have comment or be unexported (golint)
    • Line 99: warning: exported method Edit.GetTagData should have comment or be unexported (golint)
    • Line 105: warning: exported method Edit.GetPerformerData should have comment or be unexported (golint)
    • Line 111: warning: exported type Edits should have comment or be unexported (golint)
    • Line 113: warning: exported method Edits.Each should have comment or be unexported (golint)
    • Line 119: warning: exported method Edits.Add should have comment or be unexported (golint)
    • Line 123: warning: exported type EditTag should have comment or be unexported (golint)
    • Line 128: warning: exported type EditTags should have comment or be unexported (golint)
    • Line 130: warning: exported method EditTags.Each should have comment or be unexported (golint)
    • Line 136: warning: exported method EditTags.Add should have comment or be unexported (golint)
    • Line 140: warning: exported type EditPerformer should have comment or be unexported (golint)
    • Line 145: warning: exported type EditPerformers should have comment or be unexported (golint)
    • Line 147: warning: exported method EditPerformers.Each should have comment or be unexported (golint)
    • Line 153: warning: exported method EditPerformers.Add should have comment or be unexported (golint)
    • Line 182: warning: exported type TagEdit should have comment or be unexported (golint)
    • Line 190: warning: exported method TagEdit.IsEditDetails should have comment or be unexported (golint)
    • Line 192: warning: exported type TagEditData should have comment or be unexported (golint)
    • Line 198: warning: exported method PerformerEdit.IsEditDetails should have comment or be unexported (golint)
    • Line 200: warning: exported type PerformerEdit should have comment or be unexported (golint)
    • Line 230: warning: exported type PerformerEditData should have comment or be unexported (golint)
    • Line 238: warning: exported type EditData should have comment or be unexported (golint)
    • Line 244: warning: exported type EditComments should have comment or be unexported (golint)
    • Line 246: warning: exported method EditComments.Each should have comment or be unexported (golint)
    • Line 252: warning: exported method EditComments.Add should have comment or be unexported (golint)

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!


misspell99%

Misspell Finds commonly misspelled English words

    • pkg/utils/password_blacklist.go
    • Line 131: warning: "christin" is a misspelling of "christian" (misspell)
    • Line 2182: warning: "millenium" is a misspelling of "millennium" (misspell)
    • Line 3939: warning: "Christin" is a misspelling of "Christian" (misspell)
    • Line 6384: warning: "uncencored" is a misspelling of "uncensored" (misspell)
    • Line 6992: warning: "navigato" is a misspelling of "navigation" (misspell)