| 716 | } |
| 717 | |
| 718 | static bool has_hidden_config_segment(const char *path) { |
| 719 | static const char *const segments[] = {".aws", ".azure", ".config", ".docker", ".env", |
| 720 | ".git", ".gnupg", ".kube", ".ssh", NULL}; |
| 721 | for (int i = 0; segments[i]; i++) { |
| 722 | if (contains_segment(path, segments[i])) { |
| 723 | return true; |
| 724 | } |
| 725 | } |
| 726 | return false; |
| 727 | } |
| 728 | |
| 729 | static bool path_ext_matches(const char *ext, const char *wanted) { |
| 730 | return ext && wanted && strcmp(ext, wanted) == 0; |
no test coverage detected