| 7839 | } |
| 7840 | |
| 7841 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 7842 | size_t path_size) { |
| 7843 | const char *base = registry->options.home_dir; |
| 7844 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 7845 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 7846 | registry->options.appdata_dir[0]) { |
| 7847 | base = registry->options.appdata_dir; |
| 7848 | suffix = "GitLab/duo/hooks.json"; |
| 7849 | } |
| 7850 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 7851 | return written > 0 && (size_t)written < path_size; |
| 7852 | } |
| 7853 | |
| 7854 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 7855 | size_t path_size) { |
no outgoing calls
no test coverage detected