gitea/services/doctor
Philip Peterson c5e78fc7ad
Do not mutate incoming options to SearchRepositoryByName (#34553)
Similar to #34544, this PR changes the `opts` argument in
`SearchRepositoryByName()` to be passed by value instead of by pointer,
as its mutations do not escape the function scope and are not used
elsewhere. This simplifies reasoning about the function and avoids
unnecessary pointer usage.

This insight emerged during an initial attempt to refactor
`RenderUserSearch()`, which currently intermixes multiple concerns.

---------

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
2025-06-02 17:33:25 +00:00
..
actions.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
authorizedkeys.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
breaking.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
checkOldArchives.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
dbconsistency.go Fix doctor deleting orphaned issues attachments (#34142) 2025-05-30 05:06:03 +00:00
dbconsistency_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
dbversion.go Add global lock for migrations to make upgrade more safe with multiple replications (#33706) 2025-03-07 21:08:53 +00:00
doctor.go Improve log format (#33814) 2025-03-08 21:47:11 +08:00
fix8312.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
fix16961.go Fix panic for `fixBrokenRepoUnits16961` (#30068) 2024-03-26 14:45:11 +08:00
fix16961_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
heads.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
lfs.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
main_test.go Fix oauth2 builtin application logic (#30304) 2024-04-08 04:13:34 +00:00
mergebase.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
misc.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00
paths.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
repository.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
storage.go add additional ReplaceAll in pathsep to cater for different pathsep (#34061) 2025-03-30 12:46:28 +08:00
usertype.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00