mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
chore(deadcode): restore the previous format
While the newer default format is machine parsable, it also contains line numbers which makes it sensitive to any change unrelated to deadcode.
This commit is contained in:
parent
059591fbae
commit
9464d51b2b
2 changed files with 356 additions and 224 deletions
574
.deadcode-out
574
.deadcode-out
|
@ -1,222 +1,352 @@
|
||||||
cmd/web_graceful.go:28:6: unreachable func: NoMainListener
|
code.gitea.io/gitea/cmd
|
||||||
cmd/forgejo/forgejo.go:43:6: unreachable func: ContextSetNoInit
|
NoMainListener
|
||||||
cmd/forgejo/forgejo.go:52:6: unreachable func: ContextSetNoExit
|
|
||||||
cmd/forgejo/forgejo.go:61:6: unreachable func: ContextSetStderr
|
code.gitea.io/gitea/cmd/forgejo
|
||||||
cmd/forgejo/forgejo.go:65:6: unreachable func: ContextGetStderr
|
ContextSetNoInit
|
||||||
cmd/forgejo/forgejo.go:73:6: unreachable func: ContextSetStdout
|
ContextSetNoExit
|
||||||
cmd/forgejo/forgejo.go:85:6: unreachable func: ContextSetStdin
|
ContextSetStderr
|
||||||
models/error.go:160:6: unreachable func: IsErrUpdateTaskNotExist
|
ContextGetStderr
|
||||||
models/error.go:165:34: unreachable func: ErrUpdateTaskNotExist.Error
|
ContextSetStdout
|
||||||
models/error.go:169:34: unreachable func: ErrUpdateTaskNotExist.Unwrap
|
ContextSetStdin
|
||||||
models/error.go:397:6: unreachable func: IsErrSHANotFound
|
|
||||||
models/error.go:504:6: unreachable func: IsErrMergeDivergingFastForwardOnly
|
code.gitea.io/gitea/models
|
||||||
models/fixture_generation.go:18:6: unreachable func: GetYamlFixturesAccess
|
IsErrUpdateTaskNotExist
|
||||||
models/actions/schedule_list.go:20:31: unreachable func: ScheduleList.GetUserIDs
|
ErrUpdateTaskNotExist.Error
|
||||||
models/actions/schedule_list.go:26:31: unreachable func: ScheduleList.GetRepoIDs
|
ErrUpdateTaskNotExist.Unwrap
|
||||||
models/actions/schedule_list.go:32:31: unreachable func: ScheduleList.LoadTriggerUser
|
IsErrSHANotFound
|
||||||
models/actions/schedule_list.go:51:31: unreachable func: ScheduleList.LoadRepos
|
IsErrMergeDivergingFastForwardOnly
|
||||||
models/asymkey/error.go:208:34: unreachable func: ErrGPGKeyAccessDenied.Error
|
GetYamlFixturesAccess
|
||||||
models/asymkey/error.go:213:34: unreachable func: ErrGPGKeyAccessDenied.Unwrap
|
|
||||||
models/asymkey/ssh_key_deploy.go:109:6: unreachable func: HasDeployKey
|
code.gitea.io/gitea/models/actions
|
||||||
models/auth/source.go:302:6: unreachable func: GetSourceByName
|
ScheduleList.GetUserIDs
|
||||||
models/auth/webauthn.go:133:6: unreachable func: GetWebAuthnCredentialByID
|
ScheduleList.GetRepoIDs
|
||||||
models/auth/webauthn.go:185:6: unreachable func: WebAuthnCredentials
|
ScheduleList.LoadTriggerUser
|
||||||
models/db/context.go:288:6: unreachable func: TruncateBeans
|
ScheduleList.LoadRepos
|
||||||
models/db/context.go:309:6: unreachable func: InTransaction
|
|
||||||
models/db/engine.go:78:6: unreachable func: DumpTables
|
code.gitea.io/gitea/models/asymkey
|
||||||
models/dbfs/dbfile.go:312:16: unreachable func: file.renameTo
|
ErrGPGKeyAccessDenied.Error
|
||||||
models/dbfs/dbfs.go:85:6: unreachable func: Create
|
ErrGPGKeyAccessDenied.Unwrap
|
||||||
models/dbfs/dbfs.go:89:6: unreachable func: Rename
|
HasDeployKey
|
||||||
models/forgefed/federationhost_repository.go:19:6: unreachable func: GetFederationHost
|
|
||||||
models/forgejo/semver/semver.go:23:6: unreachable func: GetVersion
|
code.gitea.io/gitea/models/auth
|
||||||
models/forgejo/semver/semver.go:51:6: unreachable func: SetVersionString
|
GetSourceByName
|
||||||
models/forgejo/semver/semver.go:63:6: unreachable func: SetVersion
|
GetWebAuthnCredentialByID
|
||||||
models/git/branch.go:256:6: unreachable func: RemoveDeletedBranchByID
|
WebAuthnCredentials
|
||||||
models/issues/dependency.go:93:6: unreachable func: IsErrUnknownDependencyType
|
|
||||||
models/issues/issue.go:77:30: unreachable func: ErrNewIssueInsert.Error
|
code.gitea.io/gitea/models/db
|
||||||
models/issues/issue.go:88:6: unreachable func: IsErrIssueWasClosed
|
TruncateBeans
|
||||||
models/issues/milestone.go:255:6: unreachable func: ChangeMilestoneStatus
|
InTransaction
|
||||||
models/migrations/base/db.go:446:6: unreachable func: removeAllWithRetry
|
DumpTables
|
||||||
models/migrations/base/db.go:458:6: unreachable func: newXORMEngine
|
|
||||||
models/migrations/base/db.go:466:6: unreachable func: deleteDB
|
code.gitea.io/gitea/models/dbfs
|
||||||
models/migrations/base/tests.go:33:6: unreachable func: PrepareTestEnv
|
file.renameTo
|
||||||
models/migrations/base/tests.go:114:6: unreachable func: MainTest
|
Create
|
||||||
models/organization/team.go:251:6: unreachable func: GetTeamNamesByID
|
Rename
|
||||||
models/organization/team_unit.go:33:6: unreachable func: UpdateTeamUnits
|
|
||||||
models/organization/team_user.go:47:34: unreachable func: SearchMembersOptions.ToConds
|
code.gitea.io/gitea/models/forgefed
|
||||||
models/organization/team_user.go:81:6: unreachable func: UsersInTeamsCount
|
GetFederationHost
|
||||||
models/perm/access/repo_permission.go:426:6: unreachable func: GetRepoWriters
|
|
||||||
models/project/column.go:309:6: unreachable func: UpdateColumnSorting
|
code.gitea.io/gitea/models/forgejo/semver
|
||||||
models/project/project.go:353:6: unreachable func: ChangeProjectStatus
|
GetVersion
|
||||||
models/repo/attachment.go:200:6: unreachable func: DeleteAttachmentsByIssue
|
SetVersionString
|
||||||
models/repo/release.go:420:26: unreachable func: releaseSorter.Len
|
SetVersion
|
||||||
models/repo/release.go:424:26: unreachable func: releaseSorter.Less
|
|
||||||
models/repo/release.go:432:26: unreachable func: releaseSorter.Swap
|
code.gitea.io/gitea/models/git
|
||||||
models/repo/release.go:437:6: unreachable func: SortReleases
|
RemoveDeletedBranchByID
|
||||||
models/repo/repo_list.go:25:6: unreachable func: FindReposMapByIDs
|
|
||||||
models/repo/repo_list.go:211:24: unreachable func: SearchOrderBy.String
|
code.gitea.io/gitea/models/issues
|
||||||
models/repo/topic.go:48:6: unreachable func: IsErrTopicNotExist
|
IsErrUnknownDependencyType
|
||||||
models/repo/topic.go:54:29: unreachable func: ErrTopicNotExist.Error
|
ErrNewIssueInsert.Error
|
||||||
models/repo/topic.go:58:29: unreachable func: ErrTopicNotExist.Unwrap
|
IsErrIssueWasClosed
|
||||||
models/repo/topic.go:95:6: unreachable func: GetTopicByName
|
ChangeMilestoneStatus
|
||||||
models/repo/watch.go:108:6: unreachable func: WatchRepoMode
|
|
||||||
models/unittest/consistency.go:27:6: unreachable func: CheckConsistencyFor
|
code.gitea.io/gitea/models/migrations/base
|
||||||
models/unittest/consistency.go:45:6: unreachable func: checkForConsistency
|
removeAllWithRetry
|
||||||
models/unittest/fixtures.go:25:6: unreachable func: GetXORMEngine
|
newXORMEngine
|
||||||
models/unittest/fixtures.go:32:6: unreachable func: OverrideFixtures
|
deleteDB
|
||||||
models/unittest/fixtures.go:43:6: unreachable func: InitFixtures
|
PrepareTestEnv
|
||||||
models/unittest/fixtures.go:95:6: unreachable func: LoadFixtures
|
MainTest
|
||||||
models/unittest/fscopy.go:17:6: unreachable func: Copy
|
|
||||||
models/unittest/fscopy.go:64:6: unreachable func: CopyDir
|
code.gitea.io/gitea/models/organization
|
||||||
models/unittest/mock_http.go:29:6: unreachable func: NewMockWebServer
|
GetTeamNamesByID
|
||||||
models/unittest/mock_http.go:107:6: unreachable func: NormalizedFullPath
|
UpdateTeamUnits
|
||||||
models/unittest/testdb.go:37:6: unreachable func: FixturesDir
|
SearchMembersOptions.ToConds
|
||||||
models/unittest/testdb.go:41:6: unreachable func: fatalTestError
|
UsersInTeamsCount
|
||||||
models/unittest/testdb.go:47:6: unreachable func: InitSettings
|
|
||||||
models/unittest/testdb.go:73:6: unreachable func: MainTest
|
code.gitea.io/gitea/models/perm/access
|
||||||
models/unittest/testdb.go:216:6: unreachable func: CreateTestEngine
|
GetRepoWriters
|
||||||
models/unittest/testdb.go:239:6: unreachable func: PrepareTestDatabase
|
|
||||||
models/unittest/testdb.go:245:6: unreachable func: PrepareTestEnv
|
code.gitea.io/gitea/models/project
|
||||||
models/unittest/unit_tests.go:29:6: unreachable func: Cond
|
UpdateColumnSorting
|
||||||
models/unittest/unit_tests.go:34:6: unreachable func: OrderBy
|
ChangeProjectStatus
|
||||||
models/unittest/unit_tests.go:54:6: unreachable func: LoadBeanIfExists
|
|
||||||
models/unittest/unit_tests.go:60:6: unreachable func: BeanExists
|
code.gitea.io/gitea/models/repo
|
||||||
models/unittest/unit_tests.go:67:6: unreachable func: AssertExistsAndLoadBean
|
DeleteAttachmentsByIssue
|
||||||
models/unittest/unit_tests.go:97:6: unreachable func: GetCount
|
releaseSorter.Len
|
||||||
models/unittest/unit_tests.go:113:6: unreachable func: AssertNotExistsBean
|
releaseSorter.Less
|
||||||
models/unittest/unit_tests.go:121:6: unreachable func: AssertExistsIf
|
releaseSorter.Swap
|
||||||
models/unittest/unit_tests.go:128:6: unreachable func: AssertSuccessfulInsert
|
SortReleases
|
||||||
models/unittest/unit_tests.go:134:6: unreachable func: AssertCount
|
FindReposMapByIDs
|
||||||
models/unittest/unit_tests.go:139:6: unreachable func: AssertInt64InRange
|
SearchOrderBy.String
|
||||||
models/user/email_address.go:112:6: unreachable func: IsErrPrimaryEmailCannotDelete
|
IsErrTopicNotExist
|
||||||
models/user/error.go:86:28: unreachable func: ErrUserInactive.Error
|
ErrTopicNotExist.Error
|
||||||
models/user/error.go:91:28: unreachable func: ErrUserInactive.Unwrap
|
ErrTopicNotExist.Unwrap
|
||||||
models/user/external_login_user.go:25:6: unreachable func: IsErrExternalLoginUserAlreadyExist
|
GetTopicByName
|
||||||
models/user/external_login_user.go:45:6: unreachable func: IsErrExternalLoginUserNotExist
|
WatchRepoMode
|
||||||
models/user/federated_user.go:17:6: unreachable func: NewFederatedUser
|
|
||||||
models/user/setting.go:51:6: unreachable func: IsErrUserSettingIsNotExist
|
code.gitea.io/gitea/models/unittest
|
||||||
models/user/setting.go:101:6: unreachable func: GetUserAllSettings
|
CheckConsistencyFor
|
||||||
models/user/setting.go:146:6: unreachable func: DeleteUserSetting
|
checkForConsistency
|
||||||
models/user/user.go:959:6: unreachable func: GetUserEmailsByNames
|
GetXORMEngine
|
||||||
models/user/user.go:1000:6: unreachable func: GetUserNamesByIDs
|
OverrideFixtures
|
||||||
modules/assetfs/layered.go:55:6: unreachable func: Bindata
|
InitFixtures
|
||||||
modules/auth/password/hash/dummy.go:17:28: unreachable func: DummyHasher.HashWithSaltBytes
|
LoadFixtures
|
||||||
modules/auth/password/hash/dummy.go:31:6: unreachable func: NewDummyHasher
|
Copy
|
||||||
modules/auth/password/pwn/pwn.go:49:6: unreachable func: WithHTTP
|
CopyDir
|
||||||
modules/base/tool.go:194:6: unreachable func: SetupGiteaRoot
|
NewMockWebServer
|
||||||
modules/cache/cache.go:76:6: unreachable func: GetInt
|
NormalizedFullPath
|
||||||
modules/cache/context.go:118:6: unreachable func: WithNoCacheContext
|
FixturesDir
|
||||||
modules/cache/context.go:155:6: unreachable func: RemoveContextData
|
fatalTestError
|
||||||
modules/charset/breakwriter.go:17:23: unreachable func: BreakWriter.Write
|
InitSettings
|
||||||
modules/emoji/emoji.go:121:6: unreachable func: ReplaceCodes
|
MainTest
|
||||||
modules/eventsource/event.go:114:17: unreachable func: Event.String
|
CreateTestEngine
|
||||||
modules/forgefed/forgefed.go:15:6: unreachable func: GetItemByType
|
PrepareTestDatabase
|
||||||
modules/forgefed/forgefed.go:25:6: unreachable func: JSONUnmarshalerFn
|
PrepareTestEnv
|
||||||
modules/forgefed/forgefed.go:36:6: unreachable func: NotEmpty
|
Cond
|
||||||
modules/forgefed/repository.go:79:6: unreachable func: ToRepository
|
OrderBy
|
||||||
modules/forgefed/repository.go:102:6: unreachable func: OnRepository
|
LoadBeanIfExists
|
||||||
modules/git/command.go:448:6: unreachable func: AllowLFSFiltersArgs
|
BeanExists
|
||||||
modules/git/commit.go:83:6: unreachable func: AddChanges
|
AssertExistsAndLoadBean
|
||||||
modules/git/commit.go:88:6: unreachable func: AddChangesWithArgs
|
GetCount
|
||||||
modules/git/commit.go:107:6: unreachable func: CommitChanges
|
AssertNotExistsBean
|
||||||
modules/git/commit.go:115:6: unreachable func: CommitChangesWithArgs
|
AssertExistsIf
|
||||||
modules/git/error.go:20:6: unreachable func: IsErrExecTimeout
|
AssertSuccessfulInsert
|
||||||
modules/git/error.go:25:27: unreachable func: ErrExecTimeout.Error
|
AssertCount
|
||||||
modules/git/error.go:76:34: unreachable func: ErrUnsupportedVersion.Error
|
AssertInt64InRange
|
||||||
modules/git/hook.go:126:6: unreachable func: SetUpdateHook
|
|
||||||
modules/git/repo_base_nogogit.go:47:6: unreachable func: openRepositoryWithDefaultContext
|
code.gitea.io/gitea/models/user
|
||||||
modules/git/repo_tag.go:21:6: unreachable func: IsTagExist
|
IsErrPrimaryEmailCannotDelete
|
||||||
modules/git/tree_entry_mode.go:32:6: unreachable func: ToEntryMode
|
ErrUserInactive.Error
|
||||||
modules/git/utils.go:116:31: unreachable func: LimitedReaderCloser.Read
|
ErrUserInactive.Unwrap
|
||||||
modules/git/utils.go:130:31: unreachable func: LimitedReaderCloser.Close
|
IsErrExternalLoginUserAlreadyExist
|
||||||
modules/gitgraph/parser.go:29:23: unreachable func: Parser.Reset
|
IsErrExternalLoginUserNotExist
|
||||||
modules/gitrepo/branch.go:24:6: unreachable func: GetBranchCommitID
|
NewFederatedUser
|
||||||
modules/gitrepo/branch.go:47:6: unreachable func: GetWikiDefaultBranch
|
IsErrUserSettingIsNotExist
|
||||||
modules/graceful/context.go:34:19: unreachable func: Manager.TerminateContext
|
GetUserAllSettings
|
||||||
modules/graceful/manager.go:248:19: unreachable func: Manager.Err
|
DeleteUserSetting
|
||||||
modules/graceful/manager.go:253:19: unreachable func: Manager.Value
|
GetUserEmailsByNames
|
||||||
modules/graceful/manager.go:258:19: unreachable func: Manager.Deadline
|
GetUserNamesByIDs
|
||||||
modules/hcaptcha/hcaptcha.go:37:6: unreachable func: WithHTTP
|
|
||||||
modules/json/json.go:47:16: unreachable func: StdJSON.Marshal
|
code.gitea.io/gitea/modules/assetfs
|
||||||
modules/json/json.go:52:16: unreachable func: StdJSON.Unmarshal
|
Bindata
|
||||||
modules/json/json.go:57:16: unreachable func: StdJSON.NewEncoder
|
|
||||||
modules/json/json.go:62:16: unreachable func: StdJSON.NewDecoder
|
code.gitea.io/gitea/modules/auth/password/hash
|
||||||
modules/json/json.go:67:16: unreachable func: StdJSON.Indent
|
DummyHasher.HashWithSaltBytes
|
||||||
modules/markup/html.go:147:6: unreachable func: IsSameDomain
|
NewDummyHasher
|
||||||
modules/markup/renderer.go:208:6: unreachable func: GetRendererByType
|
|
||||||
modules/markup/renderer.go:237:6: unreachable func: RenderString
|
code.gitea.io/gitea/modules/auth/password/pwn
|
||||||
modules/markup/renderer.go:381:6: unreachable func: IsMarkupFile
|
WithHTTP
|
||||||
modules/markup/console/console.go:72:6: unreachable func: Render
|
|
||||||
modules/markup/console/console.go:80:6: unreachable func: RenderString
|
code.gitea.io/gitea/modules/base
|
||||||
modules/markup/markdown/ast.go:39:6: unreachable func: IsDetails
|
SetupGiteaRoot
|
||||||
modules/markup/markdown/ast.go:71:6: unreachable func: IsSummary
|
|
||||||
modules/markup/markdown/ast.go:108:6: unreachable func: IsTaskCheckBoxListItem
|
code.gitea.io/gitea/modules/cache
|
||||||
modules/markup/markdown/ast.go:144:6: unreachable func: IsIcon
|
GetInt
|
||||||
modules/markup/markdown/markdown.go:299:6: unreachable func: RenderRawString
|
WithNoCacheContext
|
||||||
modules/markup/markdown/math/math.go:43:6: unreachable func: WithInlineDollarParser
|
RemoveContextData
|
||||||
modules/markup/markdown/math/math.go:54:6: unreachable func: WithBlockDollarParser
|
|
||||||
modules/markup/mdstripper/mdstripper.go:138:25: unreachable func: stripRenderer.AddOptions
|
code.gitea.io/gitea/modules/charset
|
||||||
modules/markup/mdstripper/mdstripper.go:144:6: unreachable func: StripMarkdown
|
BreakWriter.Write
|
||||||
modules/markup/orgmode/orgmode.go:117:6: unreachable func: RenderString
|
|
||||||
modules/private/forgejo_actions.go:19:6: unreachable func: ActionsRunnerRegister
|
code.gitea.io/gitea/modules/emoji
|
||||||
modules/process/manager_exec.go:20:20: unreachable func: Manager.ExecTimeout
|
ReplaceCodes
|
||||||
modules/queue/base_channel.go:35:6: unreachable func: newBaseChannelSimple
|
|
||||||
modules/queue/base_channel.go:39:6: unreachable func: newBaseChannelUnique
|
code.gitea.io/gitea/modules/eventsource
|
||||||
modules/queue/base_redis.go:67:6: unreachable func: newBaseRedisSimple
|
Event.String
|
||||||
modules/queue/base_redis.go:71:6: unreachable func: newBaseRedisUnique
|
|
||||||
modules/queue/testhelper.go:28:29: unreachable func: testStateRecorder.Records
|
code.gitea.io/gitea/modules/forgefed
|
||||||
modules/queue/testhelper.go:36:29: unreachable func: testStateRecorder.Reset
|
GetItemByType
|
||||||
modules/queue/workerqueue.go:216:6: unreachable func: newWorkerPoolQueueForTest
|
JSONUnmarshalerFn
|
||||||
modules/queue/lqinternal/lqinternal.go:14:6: unreachable func: QueueItemIDBytes
|
NotEmpty
|
||||||
modules/queue/lqinternal/lqinternal.go:20:6: unreachable func: QueueItemKeyBytes
|
ToRepository
|
||||||
modules/queue/lqinternal/lqinternal.go:41:6: unreachable func: ListLevelQueueKeys
|
OnRepository
|
||||||
modules/setting/config_provider.go:186:6: unreachable func: NewConfigProviderFromData
|
|
||||||
modules/setting/git.go:80:25: unreachable func: GitConfigType.GetOption
|
code.gitea.io/gitea/modules/git
|
||||||
modules/setting/log.go:184:6: unreachable func: InitLoggersForTest
|
AllowLFSFiltersArgs
|
||||||
modules/storage/storage.go:27:36: unreachable func: ErrInvalidConfiguration.Error
|
AddChanges
|
||||||
modules/storage/storage.go:35:6: unreachable func: IsErrInvalidConfiguration
|
AddChangesWithArgs
|
||||||
modules/structs/hook.go:145:6: unreachable func: ParseCreateHook
|
CommitChanges
|
||||||
modules/structs/hook.go:295:6: unreachable func: ParsePushHook
|
CommitChangesWithArgs
|
||||||
modules/sync/status_pool.go:38:23: unreachable func: StatusTable.Start
|
IsErrExecTimeout
|
||||||
modules/sync/status_pool.go:52:23: unreachable func: StatusTable.IsRunning
|
ErrExecTimeout.Error
|
||||||
modules/testlogger/testlogger.go:38:34: unreachable func: testLoggerWriterCloser.pushT
|
ErrUnsupportedVersion.Error
|
||||||
modules/testlogger/testlogger.go:45:34: unreachable func: testLoggerWriterCloser.Log
|
SetUpdateHook
|
||||||
modules/testlogger/testlogger.go:365:34: unreachable func: testLoggerWriterCloser.recordError
|
openRepositoryWithDefaultContext
|
||||||
modules/testlogger/testlogger.go:394:34: unreachable func: testLoggerWriterCloser.printMsg
|
IsTagExist
|
||||||
modules/testlogger/testlogger.go:410:34: unreachable func: testLoggerWriterCloser.popT
|
ToEntryMode
|
||||||
modules/testlogger/testlogger.go:423:34: unreachable func: testLoggerWriterCloser.Reset
|
LimitedReaderCloser.Read
|
||||||
modules/testlogger/testlogger.go:443:6: unreachable func: PrintCurrentTest
|
LimitedReaderCloser.Close
|
||||||
modules/testlogger/testlogger.go:496:6: unreachable func: Printf
|
|
||||||
modules/testlogger/testlogger.go:506:6: unreachable func: NewTestLoggerWriter
|
code.gitea.io/gitea/modules/gitgraph
|
||||||
modules/testlogger/testlogger.go:520:30: unreachable func: TestLogEventWriter.Base
|
Parser.Reset
|
||||||
modules/testlogger/testlogger.go:525:30: unreachable func: TestLogEventWriter.GetLevel
|
|
||||||
modules/testlogger/testlogger.go:530:30: unreachable func: TestLogEventWriter.GetWriterName
|
code.gitea.io/gitea/modules/gitrepo
|
||||||
modules/testlogger/testlogger.go:535:30: unreachable func: TestLogEventWriter.GetWriterType
|
GetBranchCommitID
|
||||||
modules/testlogger/testlogger.go:540:30: unreachable func: TestLogEventWriter.Run
|
GetWikiDefaultBranch
|
||||||
modules/timeutil/executable.go:21:6: unreachable func: GetExecutableModTime
|
|
||||||
modules/timeutil/timestamp.go:24:6: unreachable func: MockSet
|
code.gitea.io/gitea/modules/graceful
|
||||||
modules/timeutil/timestamp.go:29:6: unreachable func: MockUnset
|
Manager.TerminateContext
|
||||||
modules/translation/mock.go:18:21: unreachable func: MockLocale.Language
|
Manager.Err
|
||||||
modules/translation/mock.go:22:21: unreachable func: MockLocale.TrString
|
Manager.Value
|
||||||
modules/translation/mock.go:26:21: unreachable func: MockLocale.Tr
|
Manager.Deadline
|
||||||
modules/translation/mock.go:30:21: unreachable func: MockLocale.TrN
|
|
||||||
modules/translation/mock.go:34:21: unreachable func: MockLocale.TrSize
|
code.gitea.io/gitea/modules/hcaptcha
|
||||||
modules/translation/mock.go:38:21: unreachable func: MockLocale.PrettyNumber
|
WithHTTP
|
||||||
modules/util/filebuffer/file_backed_buffer.go:49:6: unreachable func: CreateFromReader
|
|
||||||
modules/validation/validatable.go:26:6: unreachable func: IsErrNotValid
|
code.gitea.io/gitea/modules/json
|
||||||
modules/web/routemock.go:49:6: unreachable func: RouteMock
|
StdJSON.Marshal
|
||||||
modules/web/routemock.go:57:6: unreachable func: RouteMockReset
|
StdJSON.Unmarshal
|
||||||
modules/web/middleware/locale.go:57:6: unreachable func: DeleteLocaleCookie
|
StdJSON.NewEncoder
|
||||||
routers/web/home.go:114:6: unreachable func: NotFound
|
StdJSON.NewDecoder
|
||||||
routers/web/org/projects.go:35:6: unreachable func: MustEnableProjects
|
StdJSON.Indent
|
||||||
services/context/private.go:59:6: unreachable func: GetPrivateContext
|
|
||||||
services/convert/secret.go:12:6: unreachable func: ToSecret
|
code.gitea.io/gitea/modules/markup
|
||||||
services/forms/repo_form.go:734:24: unreachable func: DeadlineForm.Validate
|
IsSameDomain
|
||||||
services/pull/commit_status.go:75:6: unreachable func: IsCommitStatusContextSuccess
|
GetRendererByType
|
||||||
services/repository/fork.go:33:6: unreachable func: IsErrForkAlreadyExist
|
RenderString
|
||||||
services/repository/archiver/archiver.go:290:6: unreachable func: ArchiveRepository
|
IsMarkupFile
|
||||||
services/repository/files/content.go:38:24: unreachable func: ContentType.String
|
|
||||||
services/repository/files/file.go:37:6: unreachable func: GetFileResponseFromCommit
|
code.gitea.io/gitea/modules/markup/console
|
||||||
services/repository/files/temp_repo.go:216:37: unreachable func: TemporaryUploadRepository.GetLastCommit
|
Render
|
||||||
services/repository/files/temp_repo.go:221:37: unreachable func: TemporaryUploadRepository.GetLastCommitByRef
|
RenderString
|
||||||
services/webhook/notifier.go:36:6: unreachable func: NewNotifier
|
|
||||||
|
code.gitea.io/gitea/modules/markup/markdown
|
||||||
|
IsDetails
|
||||||
|
IsSummary
|
||||||
|
IsTaskCheckBoxListItem
|
||||||
|
IsIcon
|
||||||
|
RenderRawString
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/markup/markdown/math
|
||||||
|
WithInlineDollarParser
|
||||||
|
WithBlockDollarParser
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/markup/mdstripper
|
||||||
|
stripRenderer.AddOptions
|
||||||
|
StripMarkdown
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/markup/orgmode
|
||||||
|
RenderString
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/private
|
||||||
|
ActionsRunnerRegister
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/process
|
||||||
|
Manager.ExecTimeout
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/queue
|
||||||
|
newBaseChannelSimple
|
||||||
|
newBaseChannelUnique
|
||||||
|
newBaseRedisSimple
|
||||||
|
newBaseRedisUnique
|
||||||
|
testStateRecorder.Records
|
||||||
|
testStateRecorder.Reset
|
||||||
|
newWorkerPoolQueueForTest
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/queue/lqinternal
|
||||||
|
QueueItemIDBytes
|
||||||
|
QueueItemKeyBytes
|
||||||
|
ListLevelQueueKeys
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/setting
|
||||||
|
NewConfigProviderFromData
|
||||||
|
GitConfigType.GetOption
|
||||||
|
InitLoggersForTest
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/storage
|
||||||
|
ErrInvalidConfiguration.Error
|
||||||
|
IsErrInvalidConfiguration
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/structs
|
||||||
|
ParseCreateHook
|
||||||
|
ParsePushHook
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/sync
|
||||||
|
StatusTable.Start
|
||||||
|
StatusTable.IsRunning
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/testlogger
|
||||||
|
testLoggerWriterCloser.pushT
|
||||||
|
testLoggerWriterCloser.Log
|
||||||
|
testLoggerWriterCloser.recordError
|
||||||
|
testLoggerWriterCloser.printMsg
|
||||||
|
testLoggerWriterCloser.popT
|
||||||
|
testLoggerWriterCloser.Reset
|
||||||
|
PrintCurrentTest
|
||||||
|
Printf
|
||||||
|
NewTestLoggerWriter
|
||||||
|
TestLogEventWriter.Base
|
||||||
|
TestLogEventWriter.GetLevel
|
||||||
|
TestLogEventWriter.GetWriterName
|
||||||
|
TestLogEventWriter.GetWriterType
|
||||||
|
TestLogEventWriter.Run
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/timeutil
|
||||||
|
GetExecutableModTime
|
||||||
|
MockSet
|
||||||
|
MockUnset
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/translation
|
||||||
|
MockLocale.Language
|
||||||
|
MockLocale.TrString
|
||||||
|
MockLocale.Tr
|
||||||
|
MockLocale.TrN
|
||||||
|
MockLocale.TrSize
|
||||||
|
MockLocale.PrettyNumber
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/util/filebuffer
|
||||||
|
CreateFromReader
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/validation
|
||||||
|
IsErrNotValid
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/web
|
||||||
|
RouteMock
|
||||||
|
RouteMockReset
|
||||||
|
|
||||||
|
code.gitea.io/gitea/modules/web/middleware
|
||||||
|
DeleteLocaleCookie
|
||||||
|
|
||||||
|
code.gitea.io/gitea/routers/web
|
||||||
|
NotFound
|
||||||
|
|
||||||
|
code.gitea.io/gitea/routers/web/org
|
||||||
|
MustEnableProjects
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/context
|
||||||
|
GetPrivateContext
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/convert
|
||||||
|
ToSecret
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/forms
|
||||||
|
DeadlineForm.Validate
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/pull
|
||||||
|
IsCommitStatusContextSuccess
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/repository
|
||||||
|
IsErrForkAlreadyExist
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/repository/archiver
|
||||||
|
ArchiveRepository
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/repository/files
|
||||||
|
ContentType.String
|
||||||
|
GetFileResponseFromCommit
|
||||||
|
TemporaryUploadRepository.GetLastCommit
|
||||||
|
TemporaryUploadRepository.GetLastCommitByRef
|
||||||
|
|
||||||
|
code.gitea.io/gitea/services/webhook
|
||||||
|
NewNotifier
|
||||||
|
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -442,17 +442,19 @@ lint-spell: lint-codespell
|
||||||
lint-spell-fix: lint-codespell-fix
|
lint-spell-fix: lint-codespell-fix
|
||||||
@go run $(MISSPELL_PACKAGE) -w $(SPELLCHECK_FILES)
|
@go run $(MISSPELL_PACKAGE) -w $(SPELLCHECK_FILES)
|
||||||
|
|
||||||
|
RUN_DEADCODE = $(GO) run $(DEADCODE_PACKAGE) -generated=false -f='{{println .Path}}{{range .Funcs}}{{printf "\t%s\n" .Name}}{{end}}{{println}}' -test code.gitea.io/gitea
|
||||||
|
|
||||||
.PHONY: lint-go
|
.PHONY: lint-go
|
||||||
lint-go:
|
lint-go:
|
||||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS)
|
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS)
|
||||||
$(GO) run $(DEADCODE_PACKAGE) -generated=false -test code.gitea.io/gitea > .cur-deadcode-out
|
$(RUN_DEADCODE) > .cur-deadcode-out
|
||||||
@$(DIFF) .deadcode-out .cur-deadcode-out \
|
@$(DIFF) .deadcode-out .cur-deadcode-out \
|
||||||
|| (code=$$?; echo "Please run 'make lint-go-fix' and commit the result"; exit $${code})
|
|| (code=$$?; echo "Please run 'make lint-go-fix' and commit the result"; exit $${code})
|
||||||
|
|
||||||
.PHONY: lint-go-fix
|
.PHONY: lint-go-fix
|
||||||
lint-go-fix:
|
lint-go-fix:
|
||||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) --fix
|
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) --fix
|
||||||
$(GO) run $(DEADCODE_PACKAGE) -generated=false -test code.gitea.io/gitea > .deadcode-out
|
$(RUN_DEADCODE) > .deadcode-out
|
||||||
|
|
||||||
# workaround step for the lint-go-windows CI task because 'go run' can not
|
# workaround step for the lint-go-windows CI task because 'go run' can not
|
||||||
# have distinct GOOS/GOARCH for its build and run steps
|
# have distinct GOOS/GOARCH for its build and run steps
|
||||||
|
|
Loading…
Reference in a new issue