(path: string, homeDir: string | undefined)
| 110 | const APP_NAME_MAX_COUNT = 50 |
| 111 | |
| 112 | function isUserFacingPath(path: string, homeDir: string | undefined): boolean { |
| 113 | if (PATH_ALLOWLIST.some(root => path.startsWith(root))) return true |
| 114 | if (homeDir) { |
| 115 | const userApps = homeDir.endsWith('/') |
| 116 | ? `${homeDir}Applications/` |
| 117 | : `${homeDir}/Applications/` |
| 118 | if (path.startsWith(userApps)) return true |
| 119 | } |
| 120 | return false |
| 121 | } |
| 122 | |
| 123 | function isNoisyName(name: string): boolean { |
| 124 | return NAME_PATTERN_BLOCKLIST.some(re => re.test(name)) |
no outgoing calls
no test coverage detected