(value, i)
| 798 | * @param {number | undefined} i index |
| 799 | */ |
| 800 | const processValue = (value, i) => { |
| 801 | /** @type {Problem[]} */ |
| 802 | const currentProblems = []; |
| 803 | for (const argConfig of arg.configs) { |
| 804 | const problem = processArgumentConfig(argConfig, config, value, i); |
| 805 | if (!problem) { |
| 806 | return; |
| 807 | } |
| 808 | currentProblems.push({ |
| 809 | ...problem, |
| 810 | argument: key, |
| 811 | value, |
| 812 | index: i |
| 813 | }); |
| 814 | } |
| 815 | problems.push(...currentProblems); |
| 816 | }; |
| 817 | const value = values[key]; |
| 818 | if (Array.isArray(value)) { |
| 819 | for (let i = 0; i < value.length; i++) { |
no test coverage detected