()
| 229 | * Returns an array of file paths that have env vars not in SAFE_ENV_VARS. |
| 230 | */ |
| 231 | export function getDangerousEnvVarsSources(): string[] { |
| 232 | const sources: string[] = [] |
| 233 | |
| 234 | const projectSettings = getSettingsForSource('projectSettings') |
| 235 | if (hasDangerousEnvVars(projectSettings)) { |
| 236 | sources.push('.claude/settings.json') |
| 237 | } |
| 238 | |
| 239 | const localSettings = getSettingsForSource('localSettings') |
| 240 | if (hasDangerousEnvVars(localSettings)) { |
| 241 | sources.push('.claude/settings.local.json') |
| 242 | } |
| 243 | |
| 244 | return sources |
| 245 | } |
| 246 |
no test coverage detected