(repoRoot: string, name: string)
| 104 | } catch { |
| 105 | return value; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | function rejectMatchingTrackedValues( |
| 110 | repoRoot: string, |
| 111 | name: string, |
| 112 | values: Partial<Record<Environment, string>>, |
| 113 | defaults: Map<string, string> |
| 114 | ): void { |
| 115 | for (const relativeFile of trackedEnvFiles(repoRoot)) { |
| 116 | const content = readFileSync(path.join(repoRoot, relativeFile), 'utf8'); |
| 117 | const trackedValue = defaults.get(relativeFile) ?? assignmentValue(content, name); |
| 118 | const matchesRemoteValue = Object.values(values).some(value => trackedValue === value); |
| 119 | if (matchesRemoteValue) { |
no test coverage detected