Preparing report...

Report for github.com/gogits/gogs

A+    Excellent!    Found 171 issues across 256 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo81%

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.

    • gogs/internal/tool/tool.go
    • Line 252: warning: cyclomatic complexity 17 of function timeSince() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 16 of function computeTimeDiff() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 16 of function Subtract() is high (> 15) (gocyclo)
    • gogs/internal/db/issue.go
    • Line 655: warning: cyclomatic complexity 23 of function newIssue() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 22 of function (*Issue).loadAttributes() is high (> 15) (gocyclo)
    • Line 904: warning: cyclomatic complexity 20 of function buildIssuesQuery() is high (> 15) (gocyclo)
    • gogs/internal/db/action.go
    • Line 318: warning: cyclomatic complexity 31 of function UpdateIssuesCommit() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 29 of function CommitRepoAction() is high (> 15) (gocyclo)
    • gogs/internal/db/repo.go
    • Line 1270: warning: cyclomatic complexity 29 of function TransferOwnership() is high (> 15) (gocyclo)
    • Line 1527: warning: cyclomatic complexity 26 of function DeleteRepository() is high (> 15) (gocyclo)
    • Line 1452: warning: cyclomatic complexity 19 of function updateRepository() is high (> 15) (gocyclo)
    • gogs/internal/context/auth.go
    • Line 31: warning: cyclomatic complexity 26 of function Toggle() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 16 of function authenticatedUserID() is high (> 15) (gocyclo)
    • gogs/internal/route/repo/issue.go
    • Line 495: warning: cyclomatic complexity 42 of function viewIssue() is high (> 15) (gocyclo)
    • Line 828: warning: cyclomatic complexity 24 of function NewComment() is high (> 15) (gocyclo)
    • Line 90: warning: cyclomatic complexity 22 of function issues() is high (> 15) (gocyclo)

golint37%

Golint is a linter for Go source code.

    • gogs/internal/db/webhook.go
    • Line 30: warning: exported var HookQueue should have comment or be unexported (golint)
    • Line 32: warning: exported type HookContentType should have comment or be unexported (golint)
    • Line 35: warning: exported const JSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported method HookContentType.Name should have comment or be unexported (golint)
    • Line 65: warning: exported type HookEvents should have comment or be unexported (golint)
    • Line 85: warning: exported type HookStatus should have comment or be unexported (golint)
    • Line 88: warning: exported const HOOK_STATUS_NONE should have comment (or a comment on this block) or be unexported (golint)
    • Line 115: warning: exported method Webhook.BeforeInsert should have comment or be unexported (golint)
    • Line 120: warning: exported method Webhook.BeforeUpdate should have comment or be unexported (golint)
    • Line 124: warning: exported method Webhook.AfterSet should have comment or be unexported (golint)
    • Line 139: warning: exported method Webhook.SlackMeta should have comment or be unexported (golint)
    • Line 212: warning: exported method Webhook.EventsArray should have comment or be unexported (golint)
    • Line 240: warning: exported type ErrWebhookNotExist should have comment or be unexported (golint)
    • Line 244: warning: exported function IsErrWebhookNotExist should have comment or be unexported (golint)
    • Line 253: warning: exported method ErrWebhookNotExist.NotFound should have comment or be unexported (golint)
    • Line 365: warning: exported type HookTaskType should have comment or be unexported (golint)
    • Line 368: warning: exported const GOGS should have comment (or a comment on this block) or be unexported (golint)
    • Line 386: warning: exported method HookTaskType.Name should have comment or be unexported (golint)
    • Line 406: warning: exported type HookEventType should have comment or be unexported (golint)
    • Line 409: warning: exported const HOOK_EVENT_CREATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 457: warning: exported method HookTask.BeforeUpdate should have comment or be unexported (golint)
    • Line 466: warning: exported method HookTask.AfterSet should have comment or be unexported (golint)
    • Line 494: warning: exported method HookTask.ToJSON should have comment or be unexported (golint)
    • Line 523: warning: exported type ErrHookTaskNotExist should have comment or be unexported (golint)
    • Line 527: warning: exported function IsHookTaskNotExist should have comment or be unexported (golint)
    • Line 536: warning: exported method ErrHookTaskNotExist.NotFound should have comment or be unexported (golint)
    • Line 807: warning: exported function InitDeliverHooks should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/milestone.go
    • Line 17: warning: exported function ListMilestones should have comment or be unexported (golint)
    • Line 31: warning: exported function GetMilestone should have comment or be unexported (golint)
    • Line 40: warning: exported function CreateMilestone should have comment or be unexported (golint)
    • Line 60: warning: exported function EditMilestone should have comment or be unexported (golint)
    • Line 90: warning: exported function DeleteMilestone should have comment or be unexported (golint)
    • gogs/internal/route/user/auth.go
    • Line 25: warning: exported const LOGIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported function Login should have comment or be unexported (golint)
    • Line 149: warning: exported function LoginPost should have comment or be unexported (golint)
    • Line 196: warning: exported function LoginTwoFactor should have comment or be unexported (golint)
    • Line 206: warning: exported function LoginTwoFactorPost should have comment or be unexported (golint)
    • Line 249: warning: exported function LoginTwoFactorRecoveryCode should have comment or be unexported (golint)
    • Line 259: warning: exported function LoginTwoFactorRecoveryCodePost should have comment or be unexported (golint)
    • Line 284: warning: exported function SignOut should have comment or be unexported (golint)
    • Line 293: warning: exported function SignUp should have comment or be unexported (golint)
    • Line 307: warning: exported function SignUpPost should have comment or be unexported (golint)
    • Line 385: warning: exported function Activate should have comment or be unexported (golint)
    • Line 437: warning: exported function ActivateEmail should have comment or be unexported (golint)
    • Line 454: warning: exported function ForgotPasswd should have comment or be unexported (golint)
    • Line 467: warning: exported function ForgotPasswdPost should have comment or be unexported (golint)
    • Line 514: warning: exported function ResetPasswd should have comment or be unexported (golint)
    • Line 527: warning: exported function ResetPasswdPost should have comment or be unexported (golint)
    • gogs/internal/db/two_factor.go
    • Line 100: warning: exported type ErrTwoFactorRecoveryCodeNotFound should have comment or be unexported (golint)
    • Line 104: warning: exported function IsTwoFactorRecoveryCodeNotFound should have comment or be unexported (golint)
    • gogs/internal/db/two_factors.go
    • Line 38: warning: exported var TwoFactors should have comment or be unexported (golint)
    • Line 40: warning: comment on exported method TwoFactor.BeforeCreate should be of the form "BeforeCreate ..." (golint)
    • Line 48: warning: comment on exported method TwoFactor.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 87: warning: exported type ErrTwoFactorNotFound should have comment or be unexported (golint)
    • Line 91: warning: exported function IsErrTwoFactorNotFound should have comment or be unexported (golint)
    • Line 100: warning: exported method ErrTwoFactorNotFound.NotFound should have comment or be unexported (golint)
    • gogs/internal/auth/auth.go
    • Line 13: warning: exported type Type should have comment or be unexported (golint)
    • Line 39: warning: exported type ErrBadCredentials should have comment or be unexported (golint)
    • Line 43: warning: exported function IsErrBadCredentials should have comment or be unexported (golint)
    • Line 52: warning: exported method ErrBadCredentials.NotFound should have comment or be unexported (golint)
    • gogs/internal/markup/markup.go
    • Line 32: warning: exported const ISSUE_NAME_STYLE_NUMERIC should have comment (or a comment on this block) or be unexported (golint)
    • Line 315: warning: exported type Type should have comment or be unexported (golint)
    • Line 318: warning: exported const UNRECOGNIZED should have comment (or a comment on this block) or be unexported (golint)
    • gogs/internal/route/api/v1/repo/key.go
    • Line 23: warning: comment on exported function ListDeployKeys should be of the form "ListDeployKeys ..." (golint)
    • Line 44: warning: comment on exported function GetDeployKey should be of the form "GetDeployKey ..." (golint)
    • Line 61: warning: exported function HandleCheckKeyStringError should have comment or be unexported (golint)
    • Line 69: warning: exported function HandleAddKeyError should have comment or be unexported (golint)
    • Line 80: warning: comment on exported function CreateDeployKey should be of the form "CreateDeployKey ..." (golint)
    • Line 99: warning: comment on exported function DeleteDeploykey should be of the form "DeleteDeploykey ..." (golint)
    • gogs/internal/route/user/home.go
    • Line 21: warning: exported const DASHBOARD should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: exported function Dashboard should have comment or be unexported (golint)
    • Line 167: warning: exported function Issues should have comment or be unexported (golint)
    • Line 347: warning: exported function ShowSSHKeys should have comment or be unexported (golint)
    • Line 417: warning: exported function Email2User should have comment or be unexported (golint)
    • gogs/internal/route/repo/view.go
    • Line 31: warning: exported const BARE should have comment (or a comment on this block) or be unexported (golint)
    • Line 231: warning: exported function Home should have comment or be unexported (golint)
    • Line 312: warning: exported function RenderUserCards should have comment or be unexported (golint)
    • Line 330: warning: exported function Watchers should have comment or be unexported (golint)
    • Line 337: warning: exported function Stars should have comment or be unexported (golint)
    • Line 344: warning: exported function Forks should have comment or be unexported (golint)
    • gogs/internal/db/repos_test.go
    • Line 47: warning: don't use underscores in Go names; func test_repos_create should be testReposCreate (golint)
    • Line 85: warning: don't use underscores in Go names; func test_repos_GetByName should be testReposGetByName (golint)
    • gogs/internal/route/api/v1/admin/org_repo.go
    • Line 12: warning: exported function GetRepositoryByParams should have comment or be unexported (golint)
    • Line 21: warning: exported function AddTeamRepository should have comment or be unexported (golint)
    • Line 34: warning: exported function RemoveTeamRepository should have comment or be unexported (golint)
    • gogs/internal/template/template.go
    • Line 139: warning: exported function Safe should have comment or be unexported (golint)
    • Line 143: warning: exported function Str2HTML should have comment or be unexported (golint)
    • Line 152: warning: exported function Sha1 should have comment or be unexported (golint)
    • Line 156: warning: error should be the last type when returning multiple items (golint)
    • Line 156: warning: exported function ToUTF8WithErr should have comment or be unexported (golint)
    • Line 204: warning: exported type Actioner should have comment or be unexported (golint)
    • Line 252: warning: exported function ActionContent2Commits should have comment or be unexported (golint)
    • Line 260: warning: comment on exported function EscapePound should be of the form "EscapePound ..." (golint)
    • Line 265: warning: exported function DiffFileTypeToStr should have comment or be unexported (golint)
    • Line 274: warning: exported function DiffLineTypeToStr should have comment or be unexported (golint)
    • gogs/internal/route/repo/issue.go
    • Line 28: warning: exported const ISSUES should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported var ErrFileTypeForbidden should have comment or be unexported (golint)
    • Line 52: warning: exported function MustEnableIssues should have comment or be unexported (golint)
    • Line 64: warning: exported function MustAllowPulls should have comment or be unexported (golint)
    • Line 77: warning: exported function RetrieveLabels should have comment or be unexported (golint)
    • Line 247: warning: exported function Issues should have comment or be unexported (golint)
    • Line 251: warning: exported function Pulls should have comment or be unexported (golint)
    • Line 263: warning: exported function RetrieveRepoMilestonesAndAssignees should have comment or be unexported (golint)
    • Line 283: warning: exported function RetrieveRepoMetas should have comment or be unexported (golint)
    • Line 333: warning: exported function NewIssue should have comment or be unexported (golint)
    • Line 351: warning: exported function ValidateRepoMetas should have comment or be unexported (golint)
    • Line 405: warning: exported function NewIssuePost should have comment or be unexported (golint)
    • Line 486: warning: exported function UploadIssueAttachment should have comment or be unexported (golint)
    • Line 667: warning: exported function ViewIssue should have comment or be unexported (golint)
    • Line 671: warning: exported function ViewPull should have comment or be unexported (golint)
    • Line 691: warning: exported function UpdateIssueTitle should have comment or be unexported (golint)
    • Line 718: warning: exported function UpdateIssueContent should have comment or be unexported (golint)
    • Line 740: warning: exported function UpdateIssueLabel should have comment or be unexported (golint)
    • Line 777: warning: exported function UpdateIssueMilestone should have comment or be unexported (golint)
    • Line 804: warning: exported function UpdateIssueAssignee should have comment or be unexported (golint)
    • Line 828: warning: exported function NewComment should have comment or be unexported (golint)
    • Line 919: warning: exported function UpdateCommentContent should have comment or be unexported (golint)
    • Line 952: warning: exported function DeleteComment should have comment or be unexported (golint)
    • Line 975: warning: exported function Labels should have comment or be unexported (golint)
    • Line 984: warning: exported function InitializeLabels should have comment or be unexported (golint)
    • Line 1011: warning: exported function NewLabel should have comment or be unexported (golint)
    • Line 1033: warning: exported function UpdateLabel should have comment or be unexported (golint)
    • Line 1049: warning: exported function DeleteLabel should have comment or be unexported (golint)
    • Line 1061: warning: exported function Milestones should have comment or be unexported (golint)
    • Line 1109: warning: exported function NewMilestone should have comment or be unexported (golint)
    • Line 1118: warning: exported function NewMilestonePost should have comment or be unexported (golint)
    • Line 1154: warning: exported function EditMilestone should have comment or be unexported (golint)
    • Line 1174: warning: exported function EditMilestonePost should have comment or be unexported (golint)
    • Line 1213: warning: exported function ChangeMilestonStatus should have comment or be unexported (golint)
    • Line 1247: warning: exported function DeleteMilestone should have comment or be unexported (golint)
    • gogs/internal/db/two_factors_test.go
    • Line 48: warning: don't use underscores in Go names; func test_twoFactors_Create should be testTwoFactorsCreate (golint)
    • Line 71: warning: don't use underscores in Go names; func test_twoFactors_GetByUserID should be testTwoFactorsGetByUserID (golint)
    • Line 90: warning: don't use underscores in Go names; func test_twoFactors_IsUserEnabled should be testTwoFactorsIsUserEnabled (golint)
    • gogs/internal/route/api/v1/repo/hook.go
    • Line 21: warning: comment on exported function ListHooks should be of the form "ListHooks ..." (golint)
    • Line 36: warning: comment on exported function CreateHook should be of the form "CreateHook ..." (golint)
    • Line 107: warning: comment on exported function EditHook should be of the form "EditHook ..." (golint)
    • Line 176: warning: exported function DeleteHook should have comment or be unexported (golint)
    • gogs/internal/route/org/members.go
    • Line 17: warning: exported const MEMBERS should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function Members should have comment or be unexported (golint)
    • Line 35: warning: exported function MembersAction should have comment or be unexported (golint)
    • Line 93: warning: exported function Invitation should have comment or be unexported (golint)
    • gogs/internal/gitutil/mocks.go
    • Line 15: warning: exported type MockModuleStore should have comment or be unexported (golint)
    • Line 27: warning: exported method MockModuleStore.RepoAddRemote should have comment or be unexported (golint)
    • Line 31: warning: exported method MockModuleStore.RepoDiffNameOnly should have comment or be unexported (golint)
    • Line 35: warning: exported method MockModuleStore.RepoLog should have comment or be unexported (golint)
    • Line 39: warning: exported method MockModuleStore.RepoMergeBase should have comment or be unexported (golint)
    • Line 43: warning: exported method MockModuleStore.RepoRemoveRemote should have comment or be unexported (golint)
    • Line 47: warning: exported method MockModuleStore.RepoTags should have comment or be unexported (golint)
    • Line 51: warning: exported method MockModuleStore.PullRequestMeta should have comment or be unexported (golint)
    • Line 55: warning: exported method MockModuleStore.ListTagsAfter should have comment or be unexported (golint)
    • Line 59: warning: exported function SetMockModuleStore should have comment or be unexported (golint)
    • gogs/internal/db/repo_collaboration.go
    • Line 23: warning: exported method Collaboration.ModeI18nKey should have comment or be unexported (golint)
    • Line 50: warning: exported method Repository.IsCollaborator should have comment or be unexported (golint)
    • Line 95: warning: exported method Collaborator.APIFormat should have comment or be unexported (golint)
    • Line 224: warning: exported method Repository.DeleteCollaboration should have comment or be unexported (golint)
    • gogs/internal/auth/smtp/provider.go
    • Line 91: warning: exported method Provider.Config should have comment or be unexported (golint)
    • Line 95: warning: exported method Provider.HasTLS should have comment or be unexported (golint)
    • Line 99: warning: exported method Provider.UseTLS should have comment or be unexported (golint)
    • Line 103: warning: exported method Provider.SkipTLSVerify should have comment or be unexported (golint)
    • Line 108: warning: exported const Plain should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported var AuthTypes should have comment or be unexported (golint)
    • gogs/internal/db/migrations/migrations.go
    • Line 16: warning: exported type Migration should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMigration should have comment or be unexported (golint)
    • Line 38: warning: comment on exported type Version should be of the form "Version ..." (with optional leading article) (golint)
    • gogs/internal/route/repo/wiki.go
    • Line 21: warning: exported const WIKI_START should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function MustEnableWiki should have comment or be unexported (golint)
    • Line 39: warning: exported type PageMeta should have comment or be unexported (golint)
    • Line 112: warning: exported function Wiki should have comment or be unexported (golint)
    • Line 137: warning: exported function WikiPages should have comment or be unexported (golint)
    • Line 183: warning: exported function NewWiki should have comment or be unexported (golint)
    • Line 195: warning: exported function NewWikiPost should have comment or be unexported (golint)
    • Line 218: warning: exported function EditWiki should have comment or be unexported (golint)
    • Line 236: warning: exported function EditWikiPost should have comment or be unexported (golint)
    • Line 254: warning: exported function DeleteWikiPagePost should have comment or be unexported (golint)
    • gogs/internal/db/mirror.go
    • Line 26: warning: exported var MirrorQueue should have comment or be unexported (golint)
    • Line 45: warning: exported method Mirror.BeforeInsert should have comment or be unexported (golint)
    • Line 49: warning: exported method Mirror.BeforeUpdate should have comment or be unexported (golint)
    • Line 54: warning: exported method Mirror.AfterSet should have comment or be unexported (golint)
    • Line 281: warning: exported function UpdateMirror should have comment or be unexported (golint)
    • Line 285: warning: exported function DeleteMirrorByRepoID should have comment or be unexported (golint)
    • Line 452: warning: exported function InitSyncMirrors should have comment or be unexported (golint)
    • gogs/internal/route/org/setting.go
    • Line 21: warning: exported const SETTINGS_OPTIONS should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function Settings should have comment or be unexported (golint)
    • Line 31: warning: exported function SettingsPost should have comment or be unexported (golint)
    • Line 87: warning: exported function SettingsAvatar should have comment or be unexported (golint)
    • Line 98: warning: exported function SettingsDeleteAvatar should have comment or be unexported (golint)
    • Line 106: warning: exported function SettingsDelete should have comment or be unexported (golint)
    • gogs/internal/db/release.go
    • Line 47: warning: exported method Release.BeforeInsert should have comment or be unexported (golint)
    • Line 53: warning: exported method Release.AfterSet should have comment or be unexported (golint)
    • Line 90: warning: exported method Release.LoadAttributes should have comment or be unexported (golint)
    • Line 94: warning: comment on exported method Release.APIFormat should be of the form "APIFormat ..." (golint)
    • Line 211: warning: exported type ErrReleaseNotExist should have comment or be unexported (golint)
    • Line 215: warning: exported function IsErrReleaseNotExist should have comment or be unexported (golint)
    • Line 224: warning: exported method ErrReleaseNotExist.NotFound should have comment or be unexported (golint)
    • Line 282: warning: exported type ReleaseSorter should have comment or be unexported (golint)
    • gogs/internal/db/access_tokens_test.go
    • Line 76: warning: don't use underscores in Go names; func test_accessTokens_Create should be testAccessTokensCreate (golint)
    • Line 100: warning: don't use underscores in Go names; func test_accessTokens_DeleteByID should be testAccessTokensDeleteByID (golint)
    • Line 135: warning: don't use underscores in Go names; func test_accessTokens_GetBySHA should be testAccessTokensGetBySHA (golint)
    • Line 154: warning: don't use underscores in Go names; func test_accessTokens_List should be testAccessTokensList (golint)
    • Line 185: warning: don't use underscores in Go names; func test_accessTokens_Save should be testAccessTokensSave (golint)
    • gogs/internal/db/webhook_discord.go
    • Line 20: warning: exported type DiscordEmbedFooterObject should have comment or be unexported (golint)
    • Line 24: warning: exported type DiscordEmbedAuthorObject should have comment or be unexported (golint)
    • Line 30: warning: exported type DiscordEmbedFieldObject should have comment or be unexported (golint)
    • Line 35: warning: exported type DiscordEmbedObject should have comment or be unexported (golint)
    • Line 45: warning: exported type DiscordPayload should have comment or be unexported (golint)
    • Line 52: warning: exported method DiscordPayload.JSONPayload should have comment or be unexported (golint)
    • Line 60: warning: exported function DiscordTextFormatter should have comment or be unexported (golint)
    • Line 64: warning: exported function DiscordLinkFormatter should have comment or be unexported (golint)
    • Line 68: warning: exported function DiscordSHALinkFormatter should have comment or be unexported (golint)
    • Line 373: warning: exported function GetDiscordPayload should have comment or be unexported (golint)
    • gogs/internal/route/repo/pull.go
    • Line 26: warning: exported const FORK should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported var PullRequestTemplateCandidates should have comment or be unexported (golint)
    • Line 81: warning: exported function Fork should have comment or be unexported (golint)
    • Line 93: warning: exported function ForkPost should have comment or be unexported (golint)
    • Line 178: warning: exported function PrepareMergedViewPullInfo should have comment or be unexported (golint)
    • Line 199: warning: exported function PrepareViewPullInfo should have comment or be unexported (golint)
    • Line 246: warning: exported function ViewPullCommits should have comment or be unexported (golint)
    • Line 300: warning: exported function ViewPullFiles should have comment or be unexported (golint)
    • Line 398: warning: exported function MergePullRequest should have comment or be unexported (golint)
    • Line 430: warning: exported function ParseCompareInfo should have comment or be unexported (golint)
    • Line 548: warning: exported function PrepareCompareDiff should have comment or be unexported (golint)
    • Line 609: warning: exported function CompareAndPullRequest should have comment or be unexported (golint)
    • Line 665: warning: exported function CompareAndPullRequestPost should have comment or be unexported (golint)
    • gogs/internal/route/repo/release.go
    • Line 23: warning: exported const RELEASES should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function Releases should have comment or be unexported (golint)
    • Line 162: warning: exported function NewRelease should have comment or be unexported (golint)
    • Line 170: warning: exported function NewReleasePost should have comment or be unexported (golint)
    • Line 242: warning: exported function EditRelease should have comment or be unexported (golint)
    • Line 266: warning: exported function EditReleasePost should have comment or be unexported (golint)
    • Line 308: warning: exported function UploadReleaseAttachment should have comment or be unexported (golint)
    • Line 316: warning: exported function DeleteRelease should have comment or be unexported (golint)
    • gogs/internal/route/install.go
    • Line 35: warning: exported const INSTALL should have comment (or a comment on this block) or be unexported (golint)
    • Line 116: warning: exported function InstallInit should have comment or be unexported (golint)
    • Line 128: warning: exported function Install should have comment or be unexported (golint)
    • Line 185: warning: exported function InstallPost should have comment or be unexported (golint)
    • gogs/internal/route/admin/auths.go
    • Line 27: warning: exported const AUTHS should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function Authentications should have comment or be unexported (golint)
    • Line 68: warning: exported function NewAuthSource should have comment or be unexported (golint)
    • Line 121: warning: exported function NewAuthSourcePost should have comment or be unexported (golint)
    • Line 193: warning: exported function EditAuthSource should have comment or be unexported (golint)
    • Line 212: warning: exported function EditAuthSourcePost should have comment or be unexported (golint)
    • Line 277: warning: exported function DeleteAuthSource should have comment or be unexported (golint)
    • gogs/internal/db/action.go
    • Line 27: warning: exported type ActionType should have comment or be unexported (golint)
    • Line 56: warning: comment on exported var IssueCloseKeywords should be of the form "IssueCloseKeywords ..." (golint)
    • Line 58: warning: exported var IssueReopenKeywords should have comment or be unexported (golint)
    • Line 88: warning: exported method Action.BeforeInsert should have comment or be unexported (golint)
    • Line 92: warning: exported method Action.AfterSet should have comment or be unexported (golint)
    • Line 99: warning: exported method Action.GetOpType should have comment or be unexported (golint)
    • Line 103: warning: exported method Action.GetActUserName should have comment or be unexported (golint)
    • Line 107: warning: exported method Action.ShortActUserName should have comment or be unexported (golint)
    • Line 111: warning: exported method Action.GetRepoUserName should have comment or be unexported (golint)
    • Line 115: warning: exported method Action.ShortRepoUserName should have comment or be unexported (golint)
    • Line 119: warning: exported method Action.GetRepoName should have comment or be unexported (golint)
    • Line 123: warning: exported method Action.ShortRepoName should have comment or be unexported (golint)
    • Line 127: warning: exported method Action.GetRepoPath should have comment or be unexported (golint)
    • Line 131: warning: exported method Action.ShortRepoPath should have comment or be unexported (golint)
    • Line 135: warning: exported method Action.GetRepoLink should have comment or be unexported (golint)
    • Line 142: warning: exported method Action.GetBranch should have comment or be unexported (golint)
    • Line 146: warning: exported method Action.GetContent should have comment or be unexported (golint)
    • Line 150: warning: exported method Action.GetCreate should have comment or be unexported (golint)
    • Line 154: warning: exported method Action.GetIssueInfos should have comment or be unexported (golint)
    • Line 158: warning: exported method Action.GetIssueTitle should have comment or be unexported (golint)
    • Line 168: warning: exported method Action.GetIssueContent should have comment or be unexported (golint)
    • Line 227: warning: exported type PushCommit should have comment or be unexported (golint)
    • Line 237: warning: exported type PushCommits should have comment or be unexported (golint)
    • Line 245: warning: exported function NewPushCommits should have comment or be unexported (golint)
    • Line 251: warning: exported method PushCommits.ToApiPayloadCommits should have comment or be unexported (golint)
    • Line 300: warning: receiver name pcs should be consistent with previous receiver name pc for PushCommits (golint)
    • Line 448: warning: exported type CommitRepoActionOptions should have comment or be unexported (golint)
    • Line 685: warning: exported type MirrorSyncPushActionOptions should have comment or be unexported (golint)
    • Line 731: warning: comment on exported function MirrorSyncDeleteAction should be of the form "MirrorSyncDeleteAction ..." (golint)
    • gogs/internal/db/login_source_files.go
    • Line 52: warning: exported type ErrLoginSourceNotExist should have comment or be unexported (golint)
    • Line 56: warning: exported function IsErrLoginSourceNotExist should have comment or be unexported (golint)
    • Line 65: warning: exported method ErrLoginSourceNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/mocks/locale.go
    • Line 13: warning: exported type Locale should have comment or be unexported (golint)
    • Line 18: warning: exported method Locale.Language should have comment or be unexported (golint)
    • Line 22: warning: exported method Locale.Tr should have comment or be unexported (golint)
    • gogs/internal/db/attachment.go
    • Line 35: warning: exported method Attachment.BeforeInsert should have comment or be unexported (golint)
    • Line 39: warning: exported method Attachment.AfterSet should have comment or be unexported (golint)
    • Line 52: warning: receiver name attach should be consistent with previous receiver name a for Attachment (golint)
    • Line 89: warning: exported type ErrAttachmentNotExist should have comment or be unexported (golint)
    • Line 93: warning: exported function IsErrAttachmentNotExist should have comment or be unexported (golint)
    • Line 102: warning: exported method ErrAttachmentNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/db/error.go
    • Line 18: warning: exported type ErrUserOwnRepos should have comment or be unexported (golint)
    • Line 22: warning: exported function IsErrUserOwnRepos should have comment or be unexported (golint)
    • Line 31: warning: exported type ErrUserHasOrgs should have comment or be unexported (golint)
    • Line 35: warning: exported function IsErrUserHasOrgs should have comment or be unexported (golint)
    • Line 51: warning: exported type ErrWikiAlreadyExist should have comment or be unexported (golint)
    • Line 55: warning: exported function IsErrWikiAlreadyExist should have comment or be unexported (golint)
    • Line 71: warning: exported type ErrKeyUnableVerify should have comment or be unexported (golint)
    • Line 75: warning: exported function IsErrKeyUnableVerify should have comment or be unexported (golint)
    • Line 84: warning: exported type ErrKeyNotExist should have comment or be unexported (golint)
    • Line 88: warning: exported function IsErrKeyNotExist should have comment or be unexported (golint)
    • Line 97: warning: exported type ErrKeyAlreadyExist should have comment or be unexported (golint)
    • Line 102: warning: exported function IsErrKeyAlreadyExist should have comment or be unexported (golint)
    • Line 111: warning: exported type ErrKeyNameAlreadyUsed should have comment or be unexported (golint)
    • Line 116: warning: exported function IsErrKeyNameAlreadyUsed should have comment or be unexported (golint)
    • Line 125: warning: exported type ErrKeyAccessDenied should have comment or be unexported (golint)
    • Line 131: warning: exported function IsErrKeyAccessDenied should have comment or be unexported (golint)
    • Line 141: warning: exported type ErrDeployKeyAlreadyExist should have comment or be unexported (golint)
    • Line 146: warning: exported function IsErrDeployKeyAlreadyExist should have comment or be unexported (golint)
    • Line 155: warning: exported type ErrDeployKeyNameAlreadyUsed should have comment or be unexported (golint)
    • Line 160: warning: exported function IsErrDeployKeyNameAlreadyUsed should have comment or be unexported (golint)
    • Line 176: warning: exported type ErrLastOrgOwner should have comment or be unexported (golint)
    • Line 180: warning: exported function IsErrLastOrgOwner should have comment or be unexported (golint)
    • Line 196: warning: exported type ErrInvalidCloneAddr should have comment or be unexported (golint)
    • Line 202: warning: exported function IsErrInvalidCloneAddr should have comment or be unexported (golint)
    • Line 212: warning: exported type ErrUpdateTaskNotExist should have comment or be unexported (golint)
    • Line 216: warning: exported function IsErrUpdateTaskNotExist should have comment or be unexported (golint)
    • Line 225: warning: exported type ErrReleaseAlreadyExist should have comment or be unexported (golint)
    • Line 229: warning: exported function IsErrReleaseAlreadyExist should have comment or be unexported (golint)
    • Line 238: warning: exported type ErrInvalidTagName should have comment or be unexported (golint)
    • Line 242: warning: exported function IsErrInvalidTagName should have comment or be unexported (golint)
    • Line 251: warning: exported type ErrRepoFileAlreadyExist should have comment or be unexported (golint)
    • Line 255: warning: exported function IsErrRepoFileAlreadyExist should have comment or be unexported (golint)
    • Line 271: warning: exported type ErrTeamAlreadyExist should have comment or be unexported (golint)
    • Line 277: warning: exported function IsErrTeamAlreadyExist should have comment or be unexported (golint)
    • Line 294: warning: exported type ErrUploadNotExist should have comment or be unexported (golint)
    • Line 299: warning: exported function IsErrUploadNotExist should have comment or be unexported (golint)
    • gogs/internal/db/models.go
    • Line 48: warning: exported var HasEngine should have comment or be unexported (golint)
    • Line 120: warning: exported function NewTestEngine should have comment or be unexported (golint)
    • Line 130: warning: exported function SetEngine should have comment or be unexported (golint)
    • Line 181: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 197: warning: exported type Statistic should have comment or be unexported (golint)
    • Line 208: warning: exported function GetStatistic should have comment or be unexported (golint)
    • Line 233: warning: exported function Ping should have comment or be unexported (golint)
    • Line 237: warning: comment on exported type Version should be of the form "Version ..." (with optional leading article) (golint)
    • gogs/internal/db/user.go
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 42: warning: exported type UserType should have comment or be unexported (golint)
    • Line 45: warning: exported const UserIndividual should have comment (or a comment on this block) or be unexported (golint)
    • Line 105: warning: exported method User.BeforeInsert should have comment or be unexported (golint)
    • Line 110: warning: exported method User.BeforeUpdate should have comment or be unexported (golint)
    • Line 117: warning: exported method User.AfterSet should have comment or be unexported (golint)
    • Line 131: warning: exported method User.APIFormat should have comment or be unexported (golint)
    • Line 142: warning: comment on exported method User.IsLocal should be of the form "IsLocal ..." (golint)
    • Line 153: warning: exported method User.RepoCreationNum should have comment or be unexported (golint)
    • Line 160: warning: exported method User.CanCreateRepo should have comment or be unexported (golint)
    • Line 170: warning: exported method User.CanCreateOrganization should have comment or be unexported (golint)
    • Line 197: warning: exported method User.HTMLURL should have comment or be unexported (golint)
    • Line 286: warning: comment on exported method User.GetFollowers should be of the form "GetFollowers ..." (golint)
    • Line 298: warning: exported method User.IsFollowing should have comment or be unexported (golint)
    • Line 430: warning: comment on exported method User.GetMirrorRepositories should be of the form "GetMirrorRepositories ..." (golint)
    • Line 467: warning: exported method User.ShortName should have comment or be unexported (golint)
    • Line 507: warning: exported type ErrNameNotAllowed should have comment or be unexported (golint)
    • Line 511: warning: exported function IsErrNameNotAllowed should have comment or be unexported (golint)
    • Line 516: warning: exported method ErrNameNotAllowed.Value should have comment or be unexported (golint)
    • Line 623: warning: comment on exported function ListUsers should be of the form "ListUsers ..." (golint)
    • Line 649: warning: comment on exported function VerifyUserActiveCode should be of the form "VerifyUserActiveCode ..." (golint)
    • Line 665: warning: comment on exported function VerifyActiveEmailCode should be of the form "VerifyActiveEmailCode ..." (golint)
    • Line 914: warning: exported function GetUserByKeyID should have comment or be unexported (golint)
    • Line 1066: warning: exported type SearchUserOptions should have comment or be unexported (golint)
    • Line 1122: warning: exported function IsFollowing should have comment or be unexported (golint)
    • Line 1206: warning: receiver name user should be consistent with previous receiver name u for User (golint)
    • gogs/internal/db/errors/repo.go
    • Line 11: warning: exported type InvalidRepoReference should have comment or be unexported (golint)
    • Line 15: warning: exported function IsInvalidRepoReference should have comment or be unexported (golint)
    • Line 24: warning: exported type MirrorNotExist should have comment or be unexported (golint)
    • Line 28: warning: exported function IsMirrorNotExist should have comment or be unexported (golint)
    • Line 37: warning: exported type BranchAlreadyExists should have comment or be unexported (golint)
    • Line 41: warning: exported function IsBranchAlreadyExists should have comment or be unexported (golint)
    • gogs/internal/route/admin/repos.go
    • Line 17: warning: exported const REPOS should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function Repos should have comment or be unexported (golint)
    • Line 70: warning: exported function DeleteRepo should have comment or be unexported (golint)
    • gogs/internal/db/access_tokens.go
    • Line 40: warning: exported var AccessTokens should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method AccessToken.BeforeCreate should be of the form "BeforeCreate ..." (golint)
    • Line 65: warning: comment on exported method AccessToken.BeforeUpdate should be of the form "BeforeUpdate ..." (golint)
    • Line 71: warning: comment on exported method AccessToken.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 86: warning: exported type ErrAccessTokenAlreadyExist should have comment or be unexported (golint)
    • Line 90: warning: exported function IsErrAccessTokenAlreadyExist should have comment or be unexported (golint)
    • Line 121: warning: exported type ErrAccessTokenNotExist should have comment or be unexported (golint)
    • Line 125: warning: exported function IsErrAccessTokenNotExist should have comment or be unexported (golint)
    • Line 134: warning: exported method ErrAccessTokenNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/admin/user.go
    • Line 39: warning: exported function CreateUser should have comment or be unexported (golint)
    • Line 73: warning: exported function EditUser should have comment or be unexported (golint)
    • Line 128: warning: exported function DeleteUser should have comment or be unexported (golint)
    • Line 148: warning: exported function CreatePublicKey should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/user/user.go
    • Line 19: warning: exported function Search should have comment or be unexported (golint)
    • Line 57: warning: exported function GetInfo should have comment or be unexported (golint)
    • Line 71: warning: exported function GetAuthenticatedUser should have comment or be unexported (golint)
    • gogs/internal/db/errors/user_mail.go
    • Line 9: warning: exported type EmailNotFound should have comment or be unexported (golint)
    • Line 13: warning: exported function IsEmailNotFound should have comment or be unexported (golint)
    • Line 22: warning: exported type EmailNotVerified should have comment or be unexported (golint)
    • Line 26: warning: exported function IsEmailNotVerified should have comment or be unexported (golint)
    • gogs/internal/form/form.go
    • Line 19: warning: exported const ERR_ALPHA_DASH_DOT_SLASH should have comment or be unexported (golint)
    • Line 21: warning: exported var AlphaDashDotSlashPattern should have comment or be unexported (golint)
    • Line 39: warning: exported type Form should have comment or be unexported (golint)
    • gogs/internal/route/user/profile.go
    • Line 20: warning: exported const FOLLOWERS should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported function Profile should have comment or be unexported (golint)
    • Line 86: warning: exported function Followers should have comment or be unexported (golint)
    • Line 94: warning: exported function Following should have comment or be unexported (golint)
    • Line 102: warning: exported function Stars should have comment or be unexported (golint)
    • Line 106: warning: exported function Action should have comment or be unexported (golint)
    • gogs/internal/db/repo_branch.go
    • Line 18: warning: exported type Branch should have comment or be unexported (golint)
    • Line 26: warning: exported function GetBranchesByPath should have comment or be unexported (golint)
    • Line 49: warning: exported type ErrBranchNotExist should have comment or be unexported (golint)
    • Line 53: warning: exported function IsErrBranchNotExist should have comment or be unexported (golint)
    • Line 62: warning: exported method ErrBranchNotExist.NotFound should have comment or be unexported (golint)
    • Line 66: warning: exported method Repository.GetBranch should have comment or be unexported (golint)
    • Line 76: warning: exported method Repository.GetBranches should have comment or be unexported (golint)
    • Line 80: warning: exported method Branch.GetCommit should have comment or be unexported (golint)
    • Line 88: warning: exported type ProtectBranchWhitelist should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/user/key.go
    • Line 20: warning: exported function GetUserByParamsName should have comment or be unexported (golint)
    • Line 54: warning: exported function ListMyPublicKeys should have comment or be unexported (golint)
    • Line 58: warning: exported function ListPublicKeys should have comment or be unexported (golint)
    • Line 66: warning: exported function GetPublicKey should have comment or be unexported (golint)
    • Line 94: warning: exported function CreatePublicKey should have comment or be unexported (golint)
    • Line 98: warning: exported function DeletePublicKey should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/org/org.go
    • Line 18: warning: exported function CreateOrgForUser should have comment or be unexported (golint)
    • Line 58: warning: exported function ListMyOrgs should have comment or be unexported (golint)
    • Line 62: warning: exported function CreateMyOrg should have comment or be unexported (golint)
    • Line 66: warning: exported function ListUserOrgs should have comment or be unexported (golint)
    • Line 74: warning: exported function Get should have comment or be unexported (golint)
    • Line 78: warning: exported function Edit should have comment or be unexported (golint)
    • gogs/internal/route/admin/users.go
    • Line 22: warning: exported const USERS should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function Users should have comment or be unexported (golint)
    • Line 42: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 60: warning: exported function NewUserPost should have comment or be unexported (golint)
    • Line 149: warning: exported function EditUser should have comment or be unexported (golint)
    • Line 163: warning: exported function EditUserPost should have comment or be unexported (golint)
    • Line 225: warning: exported function DeleteUser should have comment or be unexported (golint)
    • gogs/internal/form/user.go
    • Line 14: warning: exported type Install should have comment or be unexported (golint)
    • Line 54: warning: exported method Install.Validate should have comment or be unexported (golint)
    • Line 65: warning: exported type Register should have comment or be unexported (golint)
    • Line 72: warning: exported method Register.Validate should have comment or be unexported (golint)
    • Line 76: warning: exported type SignIn should have comment or be unexported (golint)
    • Line 83: warning: exported method SignIn.Validate should have comment or be unexported (golint)
    • Line 94: warning: exported type UpdateProfile should have comment or be unexported (golint)
    • Line 102: warning: exported method UpdateProfile.Validate should have comment or be unexported (golint)
    • Line 107: warning: exported const AVATAR_LOCAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: exported type Avatar should have comment or be unexported (golint)
    • Line 118: warning: exported method Avatar.Validate should have comment or be unexported (golint)
    • Line 122: warning: exported type AddEmail should have comment or be unexported (golint)
    • Line 126: warning: exported method AddEmail.Validate should have comment or be unexported (golint)
    • Line 130: warning: exported type ChangePassword should have comment or be unexported (golint)
    • Line 136: warning: exported method ChangePassword.Validate should have comment or be unexported (golint)
    • Line 140: warning: exported type AddSSHKey should have comment or be unexported (golint)
    • Line 145: warning: exported method AddSSHKey.Validate should have comment or be unexported (golint)
    • Line 149: warning: exported type NewAccessToken should have comment or be unexported (golint)
    • Line 153: warning: exported method NewAccessToken.Validate should have comment or be unexported (golint)
    • gogs/internal/lfsutil/storage.go
    • Line 17: warning: exported var ErrObjectNotExist should have comment or be unexported (golint)
    • Line 37: warning: exported const StorageLocal should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported method LocalStorage.Storage should have comment or be unexported (golint)
    • Line 60: warning: exported method LocalStorage.Upload should have comment or be unexported (golint)
    • Line 92: warning: exported method LocalStorage.Download should have comment or be unexported (golint)
    • gogs/internal/route/admin/admin.go
    • Line 112: warning: exported function Dashboard should have comment or be unexported (golint)
    • Line 129: warning: comment on exported type AdminOperation should be of the form "AdminOperation ..." (with optional leading article) (golint)
    • Line 133: warning: exported const CleanInactivateUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 142: warning: exported function Operation should have comment or be unexported (golint)
    • Line 177: warning: exported function SendTestMail should have comment or be unexported (golint)
    • Line 189: warning: exported function Config should have comment or be unexported (golint)
    • Line 232: warning: exported function Monitor should have comment or be unexported (golint)
    • gogs/internal/context/api.go
    • Line 20: warning: exported type APIContext should have comment or be unexported (golint)
    • Line 29: warning: comment on exported const DocURL should be of the form "DocURL ..." (golint)
    • Line 94: warning: exported function APIContexter should have comment or be unexported (golint)
    • gogs/internal/db/perms.go
    • Line 25: warning: exported var Perms should have comment or be unexported (golint)
    • Line 41: warning: exported const AccessModeNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported type AccessModeOptions should have comment or be unexported (golint)
    • gogs/internal/db/update.go
    • Line 28: warning: exported function CommitsToPushCommits should have comment or be unexported (golint)
    • Line 40: warning: exported type PushUpdateOptions should have comment or be unexported (golint)
    • gogs/internal/conf/static.go
    • Line 336: warning: exported type ServerOpts should have comment or be unexported (golint)
    • Line 367: warning: exported type DatabaseOpts should have comment or be unexported (golint)
    • Line 382: warning: exported type LFSOpts should have comment or be unexported (golint)
    • gogs/internal/auth/ldap/provider.go
    • Line 64: warning: exported method Provider.Config should have comment or be unexported (golint)
    • Line 68: warning: exported method Provider.HasTLS should have comment or be unexported (golint)
    • Line 72: warning: exported method Provider.UseTLS should have comment or be unexported (golint)
    • Line 76: warning: exported method Provider.SkipTLSVerify should have comment or be unexported (golint)
    • gogs/internal/db/admin.go
    • Line 20: warning: exported type NoticeType should have comment or be unexported (golint)
    • Line 23: warning: exported const NOTICE_REPOSITORY should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported method Notice.BeforeInsert should have comment or be unexported (golint)
    • Line 39: warning: exported method Notice.AfterSet should have comment or be unexported (golint)
    • gogs/internal/db/login_sources.go
    • Line 48: warning: exported var LoginSources should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method LoginSource.BeforeSave should be of the form "BeforeSave ..." (golint)
    • Line 77: warning: comment on exported method LoginSource.BeforeCreate should be of the form "BeforeCreate ..." (golint)
    • Line 86: warning: comment on exported method LoginSource.BeforeUpdate should be of the form "BeforeUpdate ..." (golint)
    • Line 92: warning: comment on exported method LoginSource.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 144: warning: exported method LoginSource.TypeName should have comment or be unexported (golint)
    • Line 148: warning: exported method LoginSource.IsLDAP should have comment or be unexported (golint)
    • Line 152: warning: exported method LoginSource.IsDLDAP should have comment or be unexported (golint)
    • Line 156: warning: exported method LoginSource.IsSMTP should have comment or be unexported (golint)
    • Line 160: warning: exported method LoginSource.IsPAM should have comment or be unexported (golint)
    • Line 164: warning: exported method LoginSource.IsGitHub should have comment or be unexported (golint)
    • Line 168: warning: exported method LoginSource.LDAP should have comment or be unexported (golint)
    • Line 172: warning: exported method LoginSource.SMTP should have comment or be unexported (golint)
    • Line 176: warning: exported method LoginSource.PAM should have comment or be unexported (golint)
    • Line 180: warning: exported method LoginSource.GitHub should have comment or be unexported (golint)
    • Line 191: warning: exported type CreateLoginSourceOpts should have comment or be unexported (golint)
    • Line 199: warning: exported type ErrLoginSourceAlreadyExist should have comment or be unexported (golint)
    • Line 203: warning: exported function IsErrLoginSourceAlreadyExist should have comment or be unexported (golint)
    • Line 239: warning: exported type ErrLoginSourceInUse should have comment or be unexported (golint)
    • Line 243: warning: exported function IsErrLoginSourceInUse should have comment or be unexported (golint)
    • Line 276: warning: exported type ListLoginSourceOpts should have comment or be unexported (golint)
    • gogs/internal/db/org_team.go
    • Line 17: warning: exported const OWNER_TEAM should have comment or be unexported (golint)
    • Line 33: warning: exported method Team.AfterSet should have comment or be unexported (golint)
    • Line 53: warning: comment on exported method Team.IsMember should be of the form "IsMember ..." (golint)
    • Line 303: warning: exported type ErrTeamNotExist should have comment or be unexported (golint)
    • Line 307: warning: exported function IsErrTeamNotExist should have comment or be unexported (golint)
    • Line 316: warning: exported method ErrTeamNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/db/users_test.go
    • Line 53: warning: don't use underscores in Go names; func test_users_Authenticate should be testUsersAuthenticate (golint)
    • Line 91: warning: don't use underscores in Go names; func test_users_Create should be testUsersCreate (golint)
    • Line 125: warning: don't use underscores in Go names; func test_users_GetByEmail should be testUsersGetByEmail (golint)
    • Line 204: warning: don't use underscores in Go names; func test_users_GetByID should be testUsersGetByID (golint)
    • Line 221: warning: don't use underscores in Go names; func test_users_GetByUsername should be testUsersGetByUsername (golint)
    • gogs/internal/process/manager.go
    • Line 19: warning: exported var ErrExecTimeout should have comment or be unexported (golint)
    • Line 22: warning: exported const DEFAULT_TIMEOUT should have comment or be unexported (golint)
    • Line 45: warning: exported var Processes should have comment or be unexported (golint)
    • Line 77: warning: comment on exported function ExecDir should be of the form "ExecDir ..." (golint)
    • Line 115: warning: comment on exported function ExecTimeout should be of the form "ExecTimeout ..." (golint)
    • gogs/internal/context/org.go
    • Line 16: warning: exported type Organization should have comment or be unexported (golint)
    • Line 27: warning: exported function HandleOrgAssignment should have comment or be unexported (golint)
    • Line 145: warning: exported function OrgAssignment should have comment or be unexported (golint)
    • gogs/internal/route/admin/notice.go
    • Line 20: warning: exported const NOTICES should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function Notices should have comment or be unexported (golint)
    • Line 46: warning: exported function DeleteNotices should have comment or be unexported (golint)
    • Line 65: warning: exported function EmptyNotices should have comment or be unexported (golint)
    • gogs/internal/email/email.go
    • Line 24: warning: exported const MAIL_AUTH_ACTIVATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported function SendTestMail should have comment or be unexported (golint)
    • Line 85: warning: exported type User should have comment or be unexported (golint)
    • Line 93: warning: exported type Repository should have comment or be unexported (golint)
    • Line 99: warning: exported type Issue should have comment or be unexported (golint)
    • Line 105: warning: exported function SendUserMail should have comment or be unexported (golint)
    • Line 124: warning: exported function SendActivateAccountMail should have comment or be unexported (golint)
    • Line 128: warning: exported function SendResetPasswordMail should have comment or be unexported (golint)
    • Line 132: warning: comment on exported function SendActivateEmailMail should be of the form "SendActivateEmailMail ..." (golint)
    • gogs/internal/route/repo/editor.go
    • Line 114: warning: exported function EditFile should have comment or be unexported (golint)
    • Line 118: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 287: warning: exported function EditFilePost should have comment or be unexported (golint)
    • Line 291: warning: exported function NewFilePost should have comment or be unexported (golint)
    • Line 295: warning: exported function DiffPreviewPost should have comment or be unexported (golint)
    • Line 322: warning: exported function DeleteFile should have comment or be unexported (golint)
    • Line 333: warning: exported function DeleteFilePost should have comment or be unexported (golint)
    • Line 401: warning: exported function UploadFile should have comment or be unexported (golint)
    • Line 421: warning: exported function UploadFilePost should have comment or be unexported (golint)
    • Line 514: warning: exported function UploadFileToServer should have comment or be unexported (golint)
    • Line 557: warning: exported function RemoveUploadFileFromServer should have comment or be unexported (golint)
    • gogs/internal/db/perms_test.go
    • Line 44: warning: don't use underscores in Go names; func test_perms_AccessMode should be testPermsAccessMode (golint)
    • Line 155: warning: don't use underscores in Go names; func test_perms_Authorize should be testPermsAuthorize (golint)
    • Line 239: warning: don't use underscores in Go names; func test_perms_SetRepoPerms should be testPermsSetRepoPerms (golint)
    • gogs/internal/db/webhook_dingtalk.go
    • Line 18: warning: exported const DingtalkNotificationTitle should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: comment on exported type DingtalkActionCard should be of the form "DingtalkActionCard ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported type DingtalkAtObject should be of the form "DingtalkAtObject ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type DingtalkPayload should be of the form "DingtalkPayload ..." (with optional leading article) (golint)
    • Line 44: warning: exported method DingtalkPayload.JSONPayload should have comment or be unexported (golint)
    • Line 52: warning: exported function NewDingtalkActionCard should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function GetDingtalkPayload should be of the form "GetDingtalkPayload ..." (golint)
    • Line 258: warning: comment on exported function MarkdownLinkFormatter should be of the form "MarkdownLinkFormatter ..." (golint)
    • gogs/internal/route/api/v1/repo/repo.go
    • Line 22: warning: exported function Search should have comment or be unexported (golint)
    • Line 144: warning: exported function ListMyRepos should have comment or be unexported (golint)
    • Line 148: warning: exported function ListUserRepositories should have comment or be unexported (golint)
    • Line 152: warning: exported function ListOrgRepositories should have comment or be unexported (golint)
    • Line 156: warning: exported function CreateUserRepo should have comment or be unexported (golint)
    • Line 184: warning: exported function Create should have comment or be unexported (golint)
    • Line 193: warning: exported function CreateOrgRepo should have comment or be unexported (golint)
    • Line 207: warning: exported function Migrate should have comment or be unexported (golint)
    • Line 307: warning: exported function Get should have comment or be unexported (golint)
    • Line 320: warning: exported function Delete should have comment or be unexported (golint)
    • Line 340: warning: exported function ListForks should have comment or be unexported (golint)
    • Line 363: warning: exported function IssueTracker should have comment or be unexported (golint)
    • Line 393: warning: exported function MirrorSync should have comment or be unexported (golint)
    • Line 406: warning: exported function Releases should have comment or be unexported (golint)
    • gogs/internal/db/errors/user.go
    • Line 11: warning: exported type UserNotKeyOwner should have comment or be unexported (golint)
    • Line 15: warning: exported function IsUserNotKeyOwner should have comment or be unexported (golint)
    • gogs/internal/context/auth.go
    • Line 24: warning: exported type ToggleOptions should have comment or be unexported (golint)
    • Line 31: warning: exported function Toggle should have comment or be unexported (golint)
    • Line 195: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gogs/internal/tool/file.go
    • Line 22: warning: exported function IsImageFile should have comment or be unexported (golint)
    • Line 26: warning: exported function IsPDFFile should have comment or be unexported (golint)
    • Line 30: warning: exported function IsVideoFile should have comment or be unexported (golint)
    • gogs/internal/route/repo/webhook.go
    • Line 32: warning: exported function InjectOrgRepoContext should have comment or be unexported (golint)
    • Line 76: warning: exported function Webhooks should have comment or be unexported (golint)
    • Line 99: warning: exported function WebhooksNew should have comment or be unexported (golint)
    • Line 200: warning: exported function WebhooksNewPost should have comment or be unexported (golint)
    • Line 224: warning: exported function WebhooksSlackNewPost should have comment or be unexported (golint)
    • Line 257: warning: exported function WebhooksDiscordNewPost should have comment or be unexported (golint)
    • Line 289: warning: exported function WebhooksDingtalkNewPost should have comment or be unexported (golint)
    • Line 346: warning: exported function WebhooksEdit should have comment or be unexported (golint)
    • Line 386: warning: exported function WebhooksEditPost should have comment or be unexported (golint)
    • Line 409: warning: exported function WebhooksSlackEditPost should have comment or be unexported (golint)
    • Line 437: warning: exported function WebhooksDiscordEditPost should have comment or be unexported (golint)
    • Line 464: warning: exported function WebhooksDingtalkEditPost should have comment or be unexported (golint)
    • Line 480: warning: exported function TestWebhook should have comment or be unexported (golint)
    • Line 571: warning: exported function RedeliveryWebhook should have comment or be unexported (golint)
    • Line 595: warning: exported function DeleteWebhook should have comment or be unexported (golint)
    • gogs/internal/db/issue.go
    • Line 25: warning: exported var ErrMissingIssueNumber should have comment or be unexported (golint)
    • Line 62: warning: exported method Issue.BeforeInsert should have comment or be unexported (golint)
    • Line 67: warning: exported method Issue.BeforeUpdate should have comment or be unexported (golint)
    • Line 72: warning: exported method Issue.AfterSet should have comment or be unexported (golint)
    • Line 149: warning: exported method Issue.LoadAttributes should have comment or be unexported (golint)
    • Line 153: warning: exported method Issue.HTMLURL should have comment or be unexported (golint)
    • Line 171: warning: comment on exported method Issue.APIFormat should be of the form "APIFormat ..." (golint)
    • Line 332: warning: exported method Issue.ClearLabels should have comment or be unexported (golint)
    • Line 393: warning: exported method Issue.GetAssignee should have comment or be unexported (golint)
    • Line 514: warning: exported method Issue.ChangeTitle should have comment or be unexported (golint)
    • Line 556: warning: exported method Issue.ChangeContent should have comment or be unexported (golint)
    • Line 598: warning: exported method Issue.ChangeAssignee should have comment or be unexported (golint)
    • Line 647: warning: exported type NewIssueOptions should have comment or be unexported (golint)
    • Line 798: warning: exported type ErrIssueNotExist should have comment or be unexported (golint)
    • Line 802: warning: exported function IsErrIssueNotExist should have comment or be unexported (golint)
    • Line 811: warning: exported method ErrIssueNotExist.NotFound should have comment or be unexported (golint)
    • Line 840: warning: comment on exported function GetRawIssueByIndex should be of the form "GetRawIssueByIndex ..." (golint)
    • Line 888: warning: exported type IssuesOptions should have comment or be unexported (golint)
    • Line 1199: warning: exported type FilterMode should have comment or be unexported (golint)
    • Line 1202: warning: exported const FILTER_MODE_YOUR_REPOS should have comment (or a comment on this block) or be unexported (golint)
    • Line 1218: warning: exported type IssueStatsOptions should have comment or be unexported (golint)
    • gogs/internal/db/issue_label.go
    • Line 68: warning: exported method Label.APIFormat should have comment or be unexported (golint)
    • Line 83: warning: receiver name l should be consistent with previous receiver name label for Label (golint)
    • Line 109: warning: exported type ErrLabelNotExist should have comment or be unexported (golint)
    • Line 113: warning: exported function IsErrLabelNotExist should have comment or be unexported (golint)
    • Line 122: warning: exported method ErrLabelNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/user/email.go
    • Line 19: warning: exported function ListEmails should have comment or be unexported (golint)
    • Line 32: warning: exported function AddEmail should have comment or be unexported (golint)
    • Line 63: warning: exported function DeleteEmail should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/label.go
    • Line 17: warning: exported function ListLabels should have comment or be unexported (golint)
    • Line 31: warning: exported function GetLabel should have comment or be unexported (golint)
    • Line 48: warning: exported function CreateLabel should have comment or be unexported (golint)
    • Line 61: warning: exported function EditLabel should have comment or be unexported (golint)
    • Line 81: warning: exported function DeleteLabel should have comment or be unexported (golint)
    • gogs/internal/db/milestone.go
    • Line 41: warning: exported method Milestone.BeforeInsert should have comment or be unexported (golint)
    • Line 45: warning: exported method Milestone.BeforeUpdate should have comment or be unexported (golint)
    • Line 56: warning: exported method Milestone.AfterSet should have comment or be unexported (golint)
    • Line 85: warning: exported method Milestone.ChangeStatus should have comment or be unexported (golint)
    • Line 89: warning: exported method Milestone.APIFormat should have comment or be unexported (golint)
    • Line 107: warning: exported method Milestone.CountIssues should have comment or be unexported (golint)
    • Line 136: warning: exported type ErrMilestoneNotExist should have comment or be unexported (golint)
    • Line 140: warning: exported function IsErrMilestoneNotExist should have comment or be unexported (golint)
    • Line 149: warning: exported method ErrMilestoneNotExist.NotFound should have comment or be unexported (golint)
    • Line 167: warning: comment on exported function GetMilestoneByRepoID should be of the form "GetMilestoneByRepoID ..." (golint)
    • gogs/internal/route/api/v1/repo/issue_comment.go
    • Line 1: warning: package comment should be of the form "Package repo ..." (golint)
    • Line 16: warning: exported function ListIssueComments should have comment or be unexported (golint)
    • Line 47: warning: exported function ListRepoIssueComments should have comment or be unexported (golint)
    • Line 71: warning: exported function CreateIssueComment should have comment or be unexported (golint)
    • Line 87: warning: exported function EditIssueComment should have comment or be unexported (golint)
    • Line 111: warning: exported function DeleteIssueComment should have comment or be unexported (golint)
    • gogs/internal/email/message.go
    • Line 24: warning: exported type Message should have comment or be unexported (golint)
    • Line 75: warning: comment on exported function LoginAuth should be of the form "LoginAuth ..." (golint)
    • Line 98: warning: exported type Sender should have comment or be unexported (golint)
    • Line 101: warning: exported method Sender.Send should have comment or be unexported (golint)
    • gogs/internal/form/admin.go
    • Line 12: warning: exported type AdminCrateUser should have comment or be unexported (golint)
    • Line 21: warning: exported method AdminCrateUser.Validate should have comment or be unexported (golint)
    • Line 25: warning: exported type AdminEditUser should have comment or be unexported (golint)
    • Line 41: warning: exported method AdminEditUser.Validate should have comment or be unexported (golint)
    • gogs/internal/route/repo/repo.go
    • Line 27: warning: exported const CREATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function MustBeNotBare should have comment or be unexported (golint)
    • Line 68: warning: exported function Create should have comment or be unexported (golint)
    • Line 104: warning: exported function CreatePost should have comment or be unexported (golint)
    • Line 147: warning: exported function Migrate should have comment or be unexported (golint)
    • Line 162: warning: exported function MigratePost should have comment or be unexported (golint)
    • Line 231: warning: exported function Action should have comment or be unexported (golint)
    • Line 271: warning: exported function Download should have comment or be unexported (golint)
    • gogs/internal/route/repo/setting.go
    • Line 28: warning: exported const SETTINGS_OPTIONS should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function Settings should have comment or be unexported (golint)
    • Line 45: warning: exported function SettingsPost should have comment or be unexported (golint)
    • Line 308: warning: exported function SettingsAvatar should have comment or be unexported (golint)
    • Line 314: warning: exported function SettingsAvatarPost should have comment or be unexported (golint)
    • Line 324: warning: exported function SettingsDeleteAvatar should have comment or be unexported (golint)
    • Line 331: warning: comment on exported function UpdateAvatarSetting should be of the form "UpdateAvatarSetting ..." (golint)
    • Line 365: warning: exported function SettingsCollaboration should have comment or be unexported (golint)
    • Line 379: warning: exported function SettingsCollaborationPost should have comment or be unexported (golint)
    • Line 417: warning: exported function ChangeCollaborationAccessMode should have comment or be unexported (golint)
    • Line 428: warning: exported function DeleteCollaboration should have comment or be unexported (golint)
    • Line 440: warning: exported function SettingsBranches should have comment or be unexported (golint)
    • Line 468: warning: exported function UpdateDefaultBranch should have comment or be unexported (golint)
    • Line 491: warning: exported function SettingsProtectedBranch should have comment or be unexported (golint)
    • Line 536: warning: exported function SettingsProtectedBranchPost should have comment or be unexported (golint)
    • Line 574: warning: exported function SettingsGitHooks should have comment or be unexported (golint)
    • Line 588: warning: exported function SettingsGitHooksEdit should have comment or be unexported (golint)
    • Line 603: warning: exported function SettingsGitHooksEditPost should have comment or be unexported (golint)
    • Line 617: warning: exported function SettingsDeployKeys should have comment or be unexported (golint)
    • Line 631: warning: exported function SettingsDeployKeysPost should have comment or be unexported (golint)
    • Line 681: warning: exported function DeleteDeployKey should have comment or be unexported (golint)
    • gogs/internal/db/comment.go
    • Line 26: warning: comment on exported const COMMENT_TYPE_COMMENT should be of the form "COMMENT_TYPE_COMMENT ..." (golint)
    • Line 28: warning: exported const COMMENT_TYPE_REOPEN should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: comment on exported const COMMENT_TYPE_ISSUE_REF should be of the form "COMMENT_TYPE_ISSUE_REF ..." (golint)
    • Line 33: warning: comment on exported const COMMENT_TYPE_COMMIT_REF should be of the form "COMMENT_TYPE_COMMIT_REF ..." (golint)
    • Line 35: warning: comment on exported const COMMENT_TYPE_COMMENT_REF should be of the form "COMMENT_TYPE_COMMENT_REF ..." (golint)
    • Line 37: warning: comment on exported const COMMENT_TYPE_PULL_REF should be of the form "COMMENT_TYPE_PULL_REF ..." (golint)
    • Line 41: warning: exported type CommentTag should have comment or be unexported (golint)
    • Line 44: warning: exported const COMMENT_TAG_NONE should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported method Comment.BeforeInsert should have comment or be unexported (golint)
    • Line 82: warning: exported method Comment.BeforeUpdate should have comment or be unexported (golint)
    • Line 86: warning: exported method Comment.AfterSet should have comment or be unexported (golint)
    • Line 131: warning: exported method Comment.LoadAttributes should have comment or be unexported (golint)
    • Line 135: warning: exported method Comment.HTMLURL should have comment or be unexported (golint)
    • Line 139: warning: comment on exported method Comment.APIFormat should be of the form "APIFormat ..." (golint)
    • Line 152: warning: exported function CommentHashTag should have comment or be unexported (golint)
    • Line 168: warning: receiver name cmt should be consistent with previous receiver name c for Comment (golint)
    • Line 308: warning: exported type CreateCommentOptions should have comment or be unexported (golint)
    • Line 396: warning: exported type ErrCommentNotExist should have comment or be unexported (golint)
    • Line 400: warning: exported function IsErrCommentNotExist should have comment or be unexported (golint)
    • Line 409: warning: exported method ErrCommentNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/db/lfs_test.go
    • Line 49: warning: don't use underscores in Go names; func test_lfs_CreateObject should be testLfsCreateObject (golint)
    • Line 70: warning: don't use underscores in Go names; func test_lfs_GetObjectByOID should be testLfsGetObjectByOID (golint)
    • Line 91: warning: don't use underscores in Go names; func test_lfs_GetObjectsByOIDs should be testLfsGetObjectsByOIDs (golint)
    • gogs/internal/db/pull.go
    • Line 28: warning: exported var PullRequestQueue should have comment or be unexported (golint)
    • Line 30: warning: exported type PullRequestType should have comment or be unexported (golint)
    • Line 33: warning: exported const PULL_REQUEST_GOGS should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type PullRequestStatus should have comment or be unexported (golint)
    • Line 40: warning: exported const PULL_REQUEST_STATUS_CONFLICT should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported method PullRequest.BeforeUpdate should have comment or be unexported (golint)
    • Line 76: warning: comment on exported method PullRequest.AfterSet should be of the form "AfterSet ..." (golint)
    • Line 117: warning: exported method PullRequest.LoadAttributes should have comment or be unexported (golint)
    • Line 121: warning: exported method PullRequest.LoadIssue should have comment or be unexported (golint)
    • Line 130: warning: comment on exported method PullRequest.APIFormat should be of the form "APIFormat ..." (golint)
    • Line 191: warning: exported const MERGE_STYLE_REGULAR should have comment (or a comment on this block) or be unexported (golint)
    • Line 559: warning: exported type ErrPullRequestNotExist should have comment or be unexported (golint)
    • Line 563: warning: exported function IsErrPullRequestNotExist should have comment or be unexported (golint)
    • Line 572: warning: exported method ErrPullRequestNotExist.NotFound should have comment or be unexported (golint)
    • Line 616: warning: comment on exported method PullRequest.UpdateCols should be of the form "UpdateCols ..." (golint)
    • Line 719: warning: exported type PullRequestList should have comment or be unexported (golint)
    • Line 756: warning: exported method PullRequestList.LoadAttributes should have comment or be unexported (golint)
    • Line 824: warning: exported function ChangeUsernameInPullRequests should have comment or be unexported (golint)
    • Line 894: warning: exported function InitTestPullRequests should have comment or be unexported (golint)
    • gogs/internal/route/repo/branch.go
    • Line 21: warning: exported const BRANCHES_OVERVIEW should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Branch should have comment or be unexported (golint)
    • Line 69: warning: exported function Branches should have comment or be unexported (golint)
    • Line 97: warning: exported function AllBranches should have comment or be unexported (golint)
    • Line 110: warning: exported function DeleteBranchPost should have comment or be unexported (golint)
    • gogs/internal/route/repo/http.go
    • Line 30: warning: exported type HTTPContext should have comment or be unexported (golint)
    • Line 45: warning: exported function HTTPContexter should have comment or be unexported (golint)
    • Line 394: warning: exported function HTTP should have comment or be unexported (golint)
    • gogs/internal/db/webhook_slack.go
    • Line 19: warning: exported type SlackMeta should have comment or be unexported (golint)
    • Line 26: warning: exported type SlackAttachment should have comment or be unexported (golint)
    • Line 33: warning: exported type SlackPayload should have comment or be unexported (golint)
    • Line 43: warning: exported method SlackPayload.JSONPayload should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function SlackTextFormatter should be of the form "SlackTextFormatter ..." (golint)
    • Line 60: warning: exported function SlackShortTextFormatter should have comment or be unexported (golint)
    • Line 69: warning: exported function SlackLinkFormatter should have comment or be unexported (golint)
    • Line 290: warning: exported function GetSlackPayload should have comment or be unexported (golint)
    • gogs/internal/lazyregexp/lazyre.go
    • Line 24: warning: exported method Regexp.Regexp should have comment or be unexported (golint)
    • Line 34: warning: exported method Regexp.Find should have comment or be unexported (golint)
    • Line 38: warning: exported method Regexp.FindSubmatch should have comment or be unexported (golint)
    • Line 42: warning: exported method Regexp.FindStringSubmatch should have comment or be unexported (golint)
    • Line 46: warning: exported method Regexp.FindStringSubmatchIndex should have comment or be unexported (golint)
    • Line 50: warning: exported method Regexp.ReplaceAllString should have comment or be unexported (golint)
    • Line 54: warning: exported method Regexp.FindString should have comment or be unexported (golint)
    • Line 58: warning: exported method Regexp.FindAll should have comment or be unexported (golint)
    • Line 62: warning: exported method Regexp.FindAllString should have comment or be unexported (golint)
    • Line 66: warning: exported method Regexp.MatchString should have comment or be unexported (golint)
    • Line 70: warning: exported method Regexp.SubexpNames should have comment or be unexported (golint)
    • Line 74: warning: exported method Regexp.FindAllStringSubmatch should have comment or be unexported (golint)
    • Line 78: warning: exported method Regexp.Split should have comment or be unexported (golint)
    • Line 82: warning: exported method Regexp.ReplaceAllLiteralString should have comment or be unexported (golint)
    • Line 86: warning: exported method Regexp.FindAllIndex should have comment or be unexported (golint)
    • Line 90: warning: exported method Regexp.Match should have comment or be unexported (golint)
    • Line 94: warning: exported method Regexp.ReplaceAllStringFunc should have comment or be unexported (golint)
    • Line 98: warning: exported method Regexp.ReplaceAll should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/issue_label.go
    • Line 16: warning: exported function ListIssueLabels should have comment or be unexported (golint)
    • Line 30: warning: exported function AddIssueLabels should have comment or be unexported (golint)
    • Line 61: warning: exported function DeleteIssueLabel should have comment or be unexported (golint)
    • Line 86: warning: exported function ReplaceIssueLabels should have comment or be unexported (golint)
    • Line 117: warning: exported function ClearIssueLabels should have comment or be unexported (golint)
    • gogs/internal/route/org/org.go
    • Line 16: warning: exported const CREATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported function Create should have comment or be unexported (golint)
    • Line 24: warning: exported function CreatePost should have comment or be unexported (golint)
    • gogs/internal/context/context.go
    • Line 66: warning: exported method Context.RequireHighlightJS should have comment or be unexported (golint)
    • Line 70: warning: exported method Context.RequireSimpleMDE should have comment or be unexported (golint)
    • Line 74: warning: exported method Context.RequireAutosize should have comment or be unexported (golint)
    • Line 78: warning: exported method Context.RequireDropzone should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method Context.HasApiError should be of the form "HasApiError ..." (golint)
    • Line 107: warning: exported method Context.GetErrMsg should have comment or be unexported (golint)
    • Line 209: warning: exported method Context.PlainText should have comment or be unexported (golint)
    • Line 213: warning: exported method Context.ServeContent should have comment or be unexported (golint)
    • gogs/internal/route/repo/commit.go
    • Line 21: warning: exported const COMMITS should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function RefCommits should have comment or be unexported (golint)
    • Line 37: warning: comment on exported function RenderIssueLinks should be of the form "RenderIssueLinks ..." (golint)
    • Line 80: warning: exported function Commits should have comment or be unexported (golint)
    • Line 84: warning: exported function SearchCommits should have comment or be unexported (golint)
    • Line 109: warning: exported function FileHistory should have comment or be unexported (golint)
    • Line 113: warning: exported function Diff should have comment or be unexported (golint)
    • Line 172: warning: exported function RawDiff should have comment or be unexported (golint)
    • Line 183: warning: exported function CompareDiff should have comment or be unexported (golint)
    • gogs/internal/db/login_sources_test.go
    • Line 114: warning: don't use underscores in Go names; func test_loginSources_Create should be testLoginSourcesCreate (golint)
    • Line 143: warning: don't use underscores in Go names; func test_loginSources_Count should be testLoginSourcesCount (golint)
    • Line 167: warning: don't use underscores in Go names; func test_loginSources_DeleteByID should be testLoginSourcesDeleteByID (golint)
    • Line 240: warning: don't use underscores in Go names; func test_loginSources_GetByID should be testLoginSourcesGetByID (golint)
    • Line 280: warning: don't use underscores in Go names; func test_loginSources_List should be testLoginSourcesList (golint)
    • Line 333: warning: don't use underscores in Go names; func test_loginSources_ResetNonDefault should be testLoginSourcesResetNonDefault (golint)
    • Line 398: warning: don't use underscores in Go names; func test_loginSources_Save should be testLoginSourcesSave (golint)
    • gogs/internal/db/ssh_key.go
    • Line 37: warning: exported type KeyType should have comment or be unexported (golint)
    • Line 40: warning: exported const KEY_TYPE_USER should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported method PublicKey.BeforeInsert should have comment or be unexported (golint)
    • Line 66: warning: exported method PublicKey.BeforeUpdate should have comment or be unexported (golint)
    • Line 70: warning: exported method PublicKey.AfterSet should have comment or be unexported (golint)
    • Line 581: warning: exported method DeployKey.BeforeInsert should have comment or be unexported (golint)
    • Line 585: warning: exported method DeployKey.BeforeUpdate should have comment or be unexported (golint)
    • Line 589: warning: exported method DeployKey.AfterSet should have comment or be unexported (golint)
    • Line 690: warning: exported type ErrDeployKeyNotExist should have comment or be unexported (golint)
    • Line 694: warning: exported function IsErrDeployKeyNotExist should have comment or be unexported (golint)
    • Line 703: warning: exported method ErrDeployKeyNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/avatar/avatar.go
    • Line 17: warning: exported const AVATAR_SIZE should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function RandomImageSize should be of the form "RandomImageSize ..." (golint)
    • gogs/internal/auth/github/provider.go
    • Line 25: warning: exported method Provider.Authenticate should have comment or be unexported (golint)
    • Line 43: warning: exported method Provider.Config should have comment or be unexported (golint)
    • Line 47: warning: exported method Provider.HasTLS should have comment or be unexported (golint)
    • Line 51: warning: exported method Provider.UseTLS should have comment or be unexported (golint)
    • Line 55: warning: exported method Provider.SkipTLSVerify should have comment or be unexported (golint)
    • gogs/internal/route/home.go
    • Line 22: warning: exported const HOME should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function Home should have comment or be unexported (golint)
    • Line 50: warning: exported function ExploreRepos should have comment or be unexported (golint)
    • Line 85: warning: exported type UserSearchOptions should have comment or be unexported (golint)
    • Line 94: warning: exported function RenderUserSearch should have comment or be unexported (golint)
    • Line 135: warning: exported function ExploreUsers should have comment or be unexported (golint)
    • Line 150: warning: exported function ExploreOrganizations should have comment or be unexported (golint)
    • Line 165: warning: exported function NotFound should have comment or be unexported (golint)
    • gogs/internal/route/org/teams.go
    • Line 20: warning: exported const TEAMS should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function Teams should have comment or be unexported (golint)
    • Line 42: warning: exported function TeamsAction should have comment or be unexported (golint)
    • Line 110: warning: exported function TeamsRepoAction should have comment or be unexported (golint)
    • Line 144: warning: exported function NewTeam should have comment or be unexported (golint)
    • Line 152: warning: exported function NewTeamPost should have comment or be unexported (golint)
    • Line 186: warning: exported function TeamMembers should have comment or be unexported (golint)
    • Line 196: warning: exported function TeamRepositories should have comment or be unexported (golint)
    • Line 206: warning: exported function EditTeam should have comment or be unexported (golint)
    • Line 214: warning: exported function EditTeamPost should have comment or be unexported (golint)
    • Line 261: warning: exported function DeleteTeam should have comment or be unexported (golint)
    • gogs/internal/db/user_mail.go
    • Line 15: warning: comment on exported type EmailAddress should be of the form "EmailAddress ..." (with optional leading article) (golint)
    • Line 93: warning: exported function AddEmailAddress should have comment or be unexported (golint)
    • Line 97: warning: exported function AddEmailAddresses should have comment or be unexported (golint)
    • Line 120: warning: exported method EmailAddress.Activate should have comment or be unexported (golint)
    • Line 145: warning: exported function DeleteEmailAddress should have comment or be unexported (golint)
    • Line 154: warning: exported function DeleteEmailAddresses should have comment or be unexported (golint)
    • Line 164: warning: exported function MakeEmailPrimary should have comment or be unexported (golint)
    • gogs/internal/auth/pam/provider.go
    • Line 25: warning: exported method Provider.Authenticate should have comment or be unexported (golint)
    • Line 40: warning: exported method Provider.Config should have comment or be unexported (golint)
    • Line 44: warning: exported method Provider.HasTLS should have comment or be unexported (golint)
    • Line 48: warning: exported method Provider.UseTLS should have comment or be unexported (golint)
    • Line 52: warning: exported method Provider.SkipTLSVerify should have comment or be unexported (golint)
    • gogs/internal/route/admin/orgs.go
    • Line 15: warning: exported const ORGS should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function Organizations should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/file.go
    • Line 16: warning: exported function GetRawFile should have comment or be unexported (golint)
    • Line 37: warning: exported function GetArchive should have comment or be unexported (golint)
    • Line 49: warning: exported function GetEditorconfig should have comment or be unexported (golint)
    • gogs/internal/form/auth.go
    • Line 12: warning: exported type Authentication should have comment or be unexported (golint)
    • Line 47: warning: exported method Authentication.Validate should have comment or be unexported (golint)
    • gogs/internal/db/repos.go
    • Line 26: warning: exported var Repos should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method Repository.BeforeCreate should be of the form "BeforeCreate ..." (golint)
    • Line 36: warning: comment on exported method Repository.BeforeUpdate should be of the form "BeforeUpdate ..." (golint)
    • Line 42: warning: comment on exported method Repository.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 55: warning: exported type ErrRepoAlreadyExist should have comment or be unexported (golint)
    • Line 59: warning: exported function IsErrRepoAlreadyExist should have comment or be unexported (golint)
    • Line 116: warning: exported type ErrRepoNotExist should have comment or be unexported (golint)
    • Line 120: warning: exported function IsErrRepoNotExist should have comment or be unexported (golint)
    • Line 129: warning: exported method ErrRepoNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/user/follower.go
    • Line 31: warning: exported function ListMyFollowers should have comment or be unexported (golint)
    • Line 35: warning: exported function ListFollowers should have comment or be unexported (golint)
    • Line 52: warning: exported function ListMyFollowing should have comment or be unexported (golint)
    • Line 56: warning: exported function ListFollowing should have comment or be unexported (golint)
    • Line 72: warning: exported function CheckMyFollowing should have comment or be unexported (golint)
    • Line 80: warning: exported function CheckFollowing should have comment or be unexported (golint)
    • Line 92: warning: exported function Follow should have comment or be unexported (golint)
    • Line 104: warning: exported function Unfollow should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/issue.go
    • Line 46: warning: exported function ListUserIssues should have comment or be unexported (golint)
    • Line 56: warning: exported function ListIssues should have comment or be unexported (golint)
    • Line 66: warning: exported function GetIssue should have comment or be unexported (golint)
    • Line 75: warning: exported function CreateIssue should have comment or be unexported (golint)
    • Line 124: warning: exported function EditIssue should have comment or be unexported (golint)
    • gogs/internal/db/issue_mail.go
    • Line 18: warning: exported method Issue.MailSubject should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported function NewMailerUser should have comment or be unexported (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 68: warning: exported function NewMailerRepo should have comment or be unexported (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: exported function NewMailerIssue should have comment or be unexported (golint)
    • gogs/internal/db/mocks.go
    • Line 17: warning: exported type MockAccessTokensStore should have comment or be unexported (golint)
    • Line 25: warning: exported method MockAccessTokensStore.Create should have comment or be unexported (golint)
    • Line 29: warning: exported method MockAccessTokensStore.DeleteByID should have comment or be unexported (golint)
    • Line 33: warning: exported method MockAccessTokensStore.GetBySHA should have comment or be unexported (golint)
    • Line 37: warning: exported method MockAccessTokensStore.List should have comment or be unexported (golint)
    • Line 41: warning: exported method MockAccessTokensStore.Save should have comment or be unexported (golint)
    • Line 45: warning: exported function SetMockAccessTokensStore should have comment or be unexported (golint)
    • Line 55: warning: exported type MockLFSStore should have comment or be unexported (golint)
    • Line 61: warning: exported method MockLFSStore.CreateObject should have comment or be unexported (golint)
    • Line 65: warning: exported method MockLFSStore.GetObjectByOID should have comment or be unexported (golint)
    • Line 69: warning: exported method MockLFSStore.GetObjectsByOIDs should have comment or be unexported (golint)
    • Line 73: warning: exported function SetMockLFSStore should have comment or be unexported (golint)
    • Line 136: warning: exported type MockPermsStore should have comment or be unexported (golint)
    • Line 142: warning: exported method MockPermsStore.AccessMode should have comment or be unexported (golint)
    • Line 146: warning: exported method MockPermsStore.Authorize should have comment or be unexported (golint)
    • Line 150: warning: exported method MockPermsStore.SetRepoPerms should have comment or be unexported (golint)
    • Line 154: warning: exported function SetMockPermsStore should have comment or be unexported (golint)
    • Line 164: warning: exported type MockReposStore should have comment or be unexported (golint)
    • Line 168: warning: exported method MockReposStore.GetByName should have comment or be unexported (golint)
    • Line 172: warning: exported function SetMockReposStore should have comment or be unexported (golint)
    • Line 182: warning: exported type MockTwoFactorsStore should have comment or be unexported (golint)
    • Line 188: warning: exported method MockTwoFactorsStore.Create should have comment or be unexported (golint)
    • Line 192: warning: exported method MockTwoFactorsStore.GetByUserID should have comment or be unexported (golint)
    • Line 196: warning: exported method MockTwoFactorsStore.IsUserEnabled should have comment or be unexported (golint)
    • Line 200: warning: exported function SetMockTwoFactorsStore should have comment or be unexported (golint)
    • Line 210: warning: exported type MockUsersStore should have comment or be unexported (golint)
    • Line 218: warning: exported method MockUsersStore.Authenticate should have comment or be unexported (golint)
    • Line 222: warning: exported method MockUsersStore.Create should have comment or be unexported (golint)
    • Line 226: warning: exported method MockUsersStore.GetByEmail should have comment or be unexported (golint)
    • Line 230: warning: exported method MockUsersStore.GetByID should have comment or be unexported (golint)
    • Line 234: warning: exported method MockUsersStore.GetByUsername should have comment or be unexported (golint)
    • Line 238: warning: exported function SetMockUsersStore should have comment or be unexported (golint)
    • gogs/internal/db/wiki.go
    • Line 49: warning: exported method Repository.WikiPath should have comment or be unexported (golint)
    • Line 73: warning: exported method Repository.LocalWikiPath should have comment or be unexported (golint)
    • Line 139: warning: exported method Repository.AddWikiPage should have comment or be unexported (golint)
    • Line 143: warning: exported method Repository.EditWikiPage should have comment or be unexported (golint)
    • Line 147: warning: exported method Repository.DeleteWikiPage should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/convert/convert.go
    • Line 18: warning: exported function ToEmail should have comment or be unexported (golint)
    • Line 26: warning: exported function ToBranch should have comment or be unexported (golint)
    • Line 33: warning: exported function ToCommit should have comment or be unexported (golint)
    • Line 62: warning: exported function ToPublicKey should have comment or be unexported (golint)
    • Line 72: warning: exported function ToHook should have comment or be unexported (golint)
    • Line 97: warning: exported function ToDeployKey should have comment or be unexported (golint)
    • Line 108: warning: exported function ToOrganization should have comment or be unexported (golint)
    • Line 120: warning: exported function ToTeam should have comment or be unexported (golint)
    • gogs/internal/tool/tool.go
    • Line 65: warning: comment on exported function VerifyTimeLimitCode should be of the form "VerifyTimeLimitCode ..." (golint)
    • Line 92: warning: exported const TIME_LIMIT_CODE_LENGTH should have comment or be unexported (golint)
    • Line 302: warning: exported function RawTimeSince should have comment or be unexported (golint)
    • Line 356: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gogs/internal/db/repo_editor.go
    • Line 34: warning: exported const ENV_AUTH_USER_ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type ComposeHookEnvsOptions should have comment or be unexported (golint)
    • Line 53: warning: exported function ComposeHookEnvs should have comment or be unexported (golint)
    • Line 94: warning: exported method Repository.DiscardLocalRepoBranchChanges should have comment or be unexported (golint)
    • Line 109: warning: exported type UpdateRepoFileOptions should have comment or be unexported (golint)
    • Line 255: warning: exported type DeleteRepoFileOptions should have comment or be unexported (golint)
    • Line 263: warning: exported method Repository.DeleteRepoFile should have comment or be unexported (golint)
    • Line 364: warning: exported function GetUploadByUUID should have comment or be unexported (golint)
    • Line 375: warning: exported function GetUploadsByUUIDs should have comment or be unexported (golint)
    • Line 385: warning: exported function DeleteUploads should have comment or be unexported (golint)
    • Line 418: warning: exported function DeleteUpload should have comment or be unexported (golint)
    • Line 422: warning: exported function DeleteUploadByUUID should have comment or be unexported (golint)
    • Line 438: warning: exported type UploadRepoFileOptions should have comment or be unexported (golint)
    • Line 452: warning: exported method Repository.UploadRepoFiles should have comment or be unexported (golint)
    • gogs/internal/form/org.go
    • Line 12: warning: exported type CreateOrg should have comment or be unexported (golint)
    • Line 16: warning: exported method CreateOrg.Validate should have comment or be unexported (golint)
    • Line 20: warning: exported type UpdateOrgSetting should have comment or be unexported (golint)
    • Line 29: warning: exported method UpdateOrgSetting.Validate should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateTeam should have comment or be unexported (golint)
    • Line 39: warning: exported method CreateTeam.Validate should have comment or be unexported (golint)
    • gogs/internal/context/repo.go
    • Line 23: warning: exported type PullRequest should have comment or be unexported (golint)
    • Line 30: warning: exported type Repository should have comment or be unexported (golint)
    • Line 123: warning: comment on exported function RepoAssignment should be of the form "RepoAssignment ..." (golint)
    • Line 438: warning: exported function RequireRepoAdmin should have comment or be unexported (golint)
    • Line 447: warning: exported function RequireRepoWriter should have comment or be unexported (golint)
    • gogs/internal/form/repo.go
    • Line 25: warning: exported type CreateRepo should have comment or be unexported (golint)
    • Line 37: warning: exported method CreateRepo.Validate should have comment or be unexported (golint)
    • Line 41: warning: exported type MigrateRepo should have comment or be unexported (golint)
    • Line 53: warning: exported method MigrateRepo.Validate should have comment or be unexported (golint)
    • Line 89: warning: exported type RepoSetting should have comment or be unexported (golint)
    • Line 116: warning: exported method RepoSetting.Validate should have comment or be unexported (golint)
    • Line 127: warning: exported type ProtectBranch should have comment or be unexported (golint)
    • Line 135: warning: exported method ProtectBranch.Validate should have comment or be unexported (golint)
    • Line 146: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 159: warning: exported method Webhook.PushOnly should have comment or be unexported (golint)
    • Line 163: warning: exported method Webhook.SendEverything should have comment or be unexported (golint)
    • Line 167: warning: exported method Webhook.ChooseEvents should have comment or be unexported (golint)
    • Line 171: warning: exported type NewWebhook should have comment or be unexported (golint)
    • Line 178: warning: exported method NewWebhook.Validate should have comment or be unexported (golint)
    • Line 182: warning: exported type NewSlackHook should have comment or be unexported (golint)
    • Line 191: warning: exported method NewSlackHook.Validate should have comment or be unexported (golint)
    • Line 195: warning: exported type NewDiscordHook should have comment or be unexported (golint)
    • Line 203: warning: exported method NewDiscordHook.Validate should have comment or be unexported (golint)
    • Line 207: warning: exported type NewDingtalkHook should have comment or be unexported (golint)
    • Line 212: warning: exported method NewDingtalkHook.Validate should have comment or be unexported (golint)
    • Line 223: warning: exported type NewIssue should have comment or be unexported (golint)
    • Line 232: warning: exported method NewIssue.Validate should have comment or be unexported (golint)
    • Line 236: warning: exported type CreateComment should have comment or be unexported (golint)
    • Line 242: warning: exported method CreateComment.Validate should have comment or be unexported (golint)
    • Line 253: warning: exported type CreateMilestone should have comment or be unexported (golint)
    • Line 259: warning: exported method CreateMilestone.Validate should have comment or be unexported (golint)
    • Line 270: warning: exported type CreateLabel should have comment or be unexported (golint)
    • Line 276: warning: exported method CreateLabel.Validate should have comment or be unexported (golint)
    • Line 280: warning: exported type InitializeLabels should have comment or be unexported (golint)
    • Line 284: warning: exported method InitializeLabels.Validate should have comment or be unexported (golint)
    • Line 295: warning: exported type NewRelease should have comment or be unexported (golint)
    • Line 305: warning: exported method NewRelease.Validate should have comment or be unexported (golint)
    • Line 309: warning: exported type EditRelease should have comment or be unexported (golint)
    • Line 317: warning: exported method EditRelease.Validate should have comment or be unexported (golint)
    • Line 328: warning: exported type NewWiki should have comment or be unexported (golint)
    • Line 335: warning: comment on exported method NewWiki.Validate should be of the form "Validate ..." (golint)
    • Line 347: warning: exported type EditRepoFile should have comment or be unexported (golint)
    • Line 357: warning: exported method EditRepoFile.Validate should have comment or be unexported (golint)
    • Line 361: warning: exported method EditRepoFile.IsNewBrnach should have comment or be unexported (golint)
    • Line 365: warning: exported type EditPreviewDiff should have comment or be unexported (golint)
    • Line 369: warning: exported method EditPreviewDiff.Validate should have comment or be unexported (golint)
    • Line 381: warning: exported type UploadRepoFile should have comment or be unexported (golint)
    • Line 390: warning: exported method UploadRepoFile.Validate should have comment or be unexported (golint)
    • Line 394: warning: exported method UploadRepoFile.IsNewBrnach should have comment or be unexported (golint)
    • Line 398: warning: exported type RemoveUploadFile should have comment or be unexported (golint)
    • Line 402: warning: exported method RemoveUploadFile.Validate should have comment or be unexported (golint)
    • Line 413: warning: exported type DeleteRepoFile should have comment or be unexported (golint)
    • Line 420: warning: exported method DeleteRepoFile.Validate should have comment or be unexported (golint)
    • Line 424: warning: exported method DeleteRepoFile.IsNewBrnach should have comment or be unexported (golint)
    • gogs/internal/httplib/httplib.go
    • Line 41: warning: comment on exported function SetDefaultSetting should be of the form "SetDefaultSetting ..." (golint)
    • Line 92: warning: exported type Settings should have comment or be unexported (golint)
    • Line 103: warning: comment on exported type Request should be of the form "Request ..." (with optional leading article) (golint)
    • Line 114: warning: comment on exported method Request.Setting should be of the form "Setting ..." (golint)
    • Line 163: warning: exported method Request.Headers should have comment or be unexported (golint)
    • Line 167: warning: comment on exported method Request.SetProtocolVersion should be of the form "SetProtocolVersion ..." (golint)
    • Line 190: warning: comment on exported method Request.SetTransport should be of the form "SetTransport ..." (golint)
    • Line 196: warning: comment on exported method Request.SetProxy should be of the form "SetProxy ..." (golint)
    • Line 215: warning: exported method Request.PostFile should have comment or be unexported (golint)
    • gogs/internal/db/lfs.go
    • Line 31: warning: exported var LFS should have comment or be unexported (golint)
    • Line 58: warning: exported type ErrLFSObjectNotExist should have comment or be unexported (golint)
    • Line 62: warning: exported function IsErrLFSObjectNotExist should have comment or be unexported (golint)
    • Line 71: warning: exported method ErrLFSObjectNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/db/org.go
    • Line 20: warning: exported var ErrOrgNotExist should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method User.GetTeam should be of the form "GetTeam ..." (golint)
    • Line 300: warning: comment on exported function GetOwnedOrgsByUserIDDesc should be of the form "GetOwnedOrgsByUserIDDesc ..." (golint)
    • Line 487: warning: comment on exported method User.GetUserTeams should be of the form "GetUserTeams ..." (golint)
    • gogs/internal/db/repo.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 49: warning: exported var Licenses should have its own declaration (golint)
    • Line 51: warning: comment on exported var ItemsPerPage should be of the form "ItemsPerPage ..." (golint)
    • Line 55: warning: exported function LoadRepoConfig should have comment or be unexported (golint)
    • Line 104: warning: exported function NewRepoContext should have comment or be unexported (golint)
    • Line 211: warning: exported method Repository.BeforeInsert should have comment or be unexported (golint)
    • Line 216: warning: exported method Repository.AfterSet should have comment or be unexported (golint)
    • Line 263: warning: exported method Repository.LoadAttributes should have comment or be unexported (golint)
    • Line 272: warning: exported method Repository.CanGuestViewWiki should have comment or be unexported (golint)
    • Line 276: warning: exported method Repository.CanGuestViewIssues should have comment or be unexported (golint)
    • Line 286: warning: exported method Repository.FullName should have comment or be unexported (golint)
    • Line 290: warning: exported method Repository.HTMLURL should have comment or be unexported (golint)
    • Line 353: warning: comment on exported method Repository.APIFormat should be of the form "APIFormat ..." (golint)
    • Line 404: warning: exported method Repository.GetOwner should have comment or be unexported (golint)
    • Line 419: warning: exported method Repository.UpdateSize should have comment or be unexported (golint)
    • Line 528: warning: exported method Repository.GetMirror should have comment or be unexported (golint)
    • Line 537: warning: exported method Repository.RepoPath should have comment or be unexported (golint)
    • Line 541: warning: exported method Repository.GitConfigPath should have comment or be unexported (golint)
    • Line 545: warning: exported method Repository.RelLink should have comment or be unexported (golint)
    • Line 549: warning: exported method Repository.Link should have comment or be unexported (golint)
    • Line 553: warning: exported method Repository.ComposeCompareURL should have comment or be unexported (golint)
    • Line 557: warning: exported method Repository.HasAccess should have comment or be unexported (golint)
    • Line 566: warning: exported method Repository.IsOwnedBy should have comment or be unexported (golint)
    • Line 580: warning: comment on exported method Repository.AllowsPulls should be of the form "AllowsPulls ..." (golint)
    • Line 585: warning: exported method Repository.IsBranchRequirePullRequest should have comment or be unexported (golint)
    • Line 594: warning: comment on exported method Repository.NextIssueIndex should be of the form "NextIssueIndex ..." (golint)
    • Line 600: warning: exported method Repository.LocalCopyPath should have comment or be unexported (golint)
    • Line 604: warning: comment on exported function UpdateLocalCopyBranch should be of the form "UpdateLocalCopyBranch ..." (golint)
    • Line 728: warning: exported type MigrateRepoOptions should have comment or be unexported (golint)
    • Line 882: warning: comment on exported function CleanUpMigrateInfo should be of the form "CleanUpMigrateInfo ..." (golint)
    • Line 930: warning: exported type CreateRepoOptions should have comment or be unexported (golint)
    • Line 1123: warning: exported type ErrReachLimitOfRepo should have comment or be unexported (golint)
    • Line 1127: warning: exported function IsErrReachLimitOfRepo should have comment or be unexported (golint)
    • Line 1215: warning: exported function Repositories should have comment or be unexported (golint)
    • Line 1447: warning: comment on exported function GetNonMirrorRepositories should be of the form "GetNonMirrorRepositories ..." (golint)
    • Line 1512: warning: exported function UpdateRepository should have comment or be unexported (golint)
    • Line 1695: warning: exported type UserRepoOptions should have comment or be unexported (golint)
    • Line 1719: warning: comment on exported function GetUserMirrorRepositories should be of the form "GetUserMirrorRepositories ..." (golint)
    • Line 1758: warning: exported type SearchRepoOptions should have comment or be unexported (golint)
    • Line 1807: warning: exported function DeleteOldRepositoryArchives should have comment or be unexported (golint)
    • Line 1997: warning: exported function GitGcRepos should have comment or be unexported (golint)
    • Line 2037: warning: exported function CheckRepoStats should have comment or be unexported (golint)
    • Line 2131: warning: exported type RepositoryList should have comment or be unexported (golint)
    • Line 2185: warning: exported method RepositoryList.LoadAttributes should have comment or be unexported (golint)
    • Line 2189: warning: exported type MirrorRepositoryList should have comment or be unexported (golint)
    • Line 2220: warning: exported method MirrorRepositoryList.LoadAttributes should have comment or be unexported (golint)
    • Line 2269: warning: comment on exported function WatchRepo should be of the form "WatchRepo ..." (golint)
    • Line 2284: warning: comment on exported method Repository.GetWatchers should be of the form "GetWatchers ..." (golint)
    • Line 2338: warning: exported type Star should have comment or be unexported (golint)
    • Line 2344: warning: comment on exported function StarRepo should be of the form "StarRepo ..." (golint)
    • Line 2376: warning: exported method Repository.GetStargazers should have comment or be unexported (golint)
    • Line 2476: warning: exported method Repository.GetForks should have comment or be unexported (golint)
    • Line 2496: warning: exported method Repository.CreateNewBranch should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/repo/collaborators.go
    • Line 16: warning: exported function ListCollaborators should have comment or be unexported (golint)
    • Line 30: warning: exported function AddCollaborator should have comment or be unexported (golint)
    • Line 56: warning: exported function IsCollaborator should have comment or be unexported (golint)
    • Line 74: warning: exported function DeleteCollaborator should have comment or be unexported (golint)
    • gogs/internal/db/users.go
    • Line 50: warning: exported var Users should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method User.BeforeCreate should be of the form "BeforeCreate ..." (golint)
    • Line 61: warning: comment on exported method User.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 74: warning: exported type ErrLoginSourceMismatch should have comment or be unexported (golint)
    • Line 164: warning: exported type CreateUserOpts should have comment or be unexported (golint)
    • Line 175: warning: exported type ErrUserAlreadyExist should have comment or be unexported (golint)
    • Line 179: warning: exported function IsErrUserAlreadyExist should have comment or be unexported (golint)
    • Line 188: warning: exported type ErrEmailAlreadyUsed should have comment or be unexported (golint)
    • Line 192: warning: exported function IsErrEmailAlreadyUsed should have comment or be unexported (golint)
    • Line 197: warning: exported method ErrEmailAlreadyUsed.Email should have comment or be unexported (golint)
    • Line 261: warning: exported type ErrUserNotExist should have comment or be unexported (golint)
    • Line 265: warning: exported function IsErrUserNotExist should have comment or be unexported (golint)
    • Line 274: warning: exported method ErrUserNotExist.NotFound should have comment or be unexported (golint)
    • gogs/internal/route/api/v1/admin/org_team.go
    • Line 18: warning: exported function CreateTeam should have comment or be unexported (golint)
    • Line 37: warning: exported function AddTeamMember should have comment or be unexported (golint)
    • Line 50: warning: exported function RemoveTeamMember should have comment or be unexported (golint)
    • Line 64: warning: exported function ListTeamMembers should have comment or be unexported (golint)
    • gogs/internal/route/user/setting.go
    • Line 33: warning: exported const SETTINGS_PROFILE should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported function Settings should have comment or be unexported (golint)
    • Line 60: warning: exported function SettingsPost should have comment or be unexported (golint)
    • Line 117: warning: comment on exported function UpdateAvatarSetting should be of the form "UpdateAvatarSetting ..." (golint)
    • Line 161: warning: exported function SettingsAvatar should have comment or be unexported (golint)
    • Line 167: warning: exported function SettingsAvatarPost should have comment or be unexported (golint)
    • Line 177: warning: exported function SettingsDeleteAvatar should have comment or be unexported (golint)
    • Line 185: warning: exported function SettingsPassword should have comment or be unexported (golint)
    • Line 191: warning: exported function SettingsPasswordPost should have comment or be unexported (golint)
    • Line 222: warning: exported function SettingsEmails should have comment or be unexported (golint)
    • Line 236: warning: exported function SettingsEmailPost should have comment or be unexported (golint)
    • Line 293: warning: exported function DeleteEmail should have comment or be unexported (golint)
    • Line 308: warning: exported function SettingsSSHKeys should have comment or be unexported (golint)
    • Line 322: warning: exported function SettingsSSHKeysPost should have comment or be unexported (golint)
    • Line 368: warning: exported function DeleteSSHKey should have comment or be unexported (golint)
    • Line 380: warning: exported function SettingsSecurity should have comment or be unexported (golint)
    • Line 394: warning: exported function SettingsTwoFactorEnable should have comment or be unexported (golint)
    • Line 439: warning: exported function SettingsTwoFactorEnablePost should have comment or be unexported (golint)
    • Line 464: warning: exported function SettingsTwoFactorRecoveryCodes should have comment or be unexported (golint)
    • Line 483: warning: exported function SettingsTwoFactorRecoveryCodesPost should have comment or be unexported (golint)
    • Line 498: warning: exported function SettingsTwoFactorDisable should have comment or be unexported (golint)
    • Line 515: warning: exported function SettingsRepos should have comment or be unexported (golint)
    • Line 533: warning: exported function SettingsLeaveRepo should have comment or be unexported (golint)
    • Line 551: warning: exported function SettingsOrganizations should have comment or be unexported (golint)
    • Line 565: warning: exported function SettingsLeaveOrganization should have comment or be unexported (golint)
    • Line 580: warning: exported function SettingsApplications should have comment or be unexported (golint)
    • Line 594: warning: exported function SettingsApplicationsPost should have comment or be unexported (golint)
    • Line 626: warning: exported function SettingsDeleteApplication should have comment or be unexported (golint)
    • Line 638: warning: exported function SettingsDelete 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!


misspell78%

Misspell Finds commonly misspelled English words

    • gogs/internal/markup/markup_test.go
    • Line 43: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 43: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 44: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 44: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 45: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 45: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 46: warning: "unknwon" is a misspelling of "unknown" (misspell)
    • Line 46: warning: "unknwon" is a misspelling of "unknown" (misspell)