| 7945 | } |
| 7946 | |
| 7947 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 7948 | size_t path_size) { |
| 7949 | const char *base = registry->options.home_dir; |
| 7950 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 7951 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 7952 | registry->options.appdata_dir[0]) { |
| 7953 | base = registry->options.appdata_dir; |
| 7954 | suffix = "GitLab/duo/hooks.json"; |
| 7955 | } |
| 7956 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 7957 | return written > 0 && (size_t)written < path_size; |
| 7958 | } |
| 7959 | |
| 7960 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 7961 | size_t path_size) { |
no outgoing calls
no test coverage detected