| 340 | } |
| 341 | |
| 342 | const char *cbm_workspace_verdict_reason(cbm_ws_verdict_t verdict) { |
| 343 | switch (verdict) { |
| 344 | case CBM_WS_ALLOW: |
| 345 | return "allowed"; |
| 346 | case CBM_WS_DENY_TOO_SHALLOW: |
| 347 | return "path is too broad to index as one root; name a project directory below it"; |
| 348 | case CBM_WS_DENY_ABSOLUTE: |
| 349 | return "path is a volume root or holds the codebase-memory cache; it cannot be indexed"; |
| 350 | case CBM_WS_DENY_SENSITIVE: |
| 351 | return "path is a home, credential, system, or application-install directory"; |
| 352 | default: |
| 353 | break; |
| 354 | } |
| 355 | return "refused"; |
| 356 | } |
| 357 | |
| 358 | bool cbm_workspace_verdict_is_overridable(cbm_ws_verdict_t verdict) { |
| 359 | return verdict == CBM_WS_DENY_SENSITIVE; |
no outgoing calls
no test coverage detected