(customArgs: unknown[])
| 26 | } |
| 27 | |
| 28 | export function validateLogFormatConfig(customArgs: unknown[]): EmptyTask | void { |
| 29 | const flags = customArgs.filter(isLogFormat); |
| 30 | |
| 31 | if (flags.length > 1) { |
| 32 | return configurationErrorTask( |
| 33 | `Summary flags are mutually exclusive - pick one of ${flags.join(',')}` |
| 34 | ); |
| 35 | } |
| 36 | |
| 37 | if (flags.length && customArgs.includes('-z')) { |
| 38 | return configurationErrorTask( |
| 39 | `Summary flag ${flags} parsing is not compatible with null termination option '-z'` |
| 40 | ); |
| 41 | } |
| 42 | } |
no test coverage detected