(unreviewed)
| 152 | } |
| 153 | |
| 154 | async runAll (unreviewed) { |
| 155 | if (unreviewed.length === 0) { |
| 156 | if (this.npm.flatOptions.json) { |
| 157 | output.buffer({ allowScripts: [] }) |
| 158 | return |
| 159 | } |
| 160 | output.standard('No packages with unreviewed install scripts.') |
| 161 | return |
| 162 | } |
| 163 | // Bundled dependencies never appear in `unreviewed` (checkAllowScripts |
| 164 | // skips them because they never run their install scripts and cannot |
| 165 | // be allowlisted), so there is nothing extra to filter here. |
| 166 | const groups = this.groupByPackage(unreviewed.map(({ node }) => node)) |
| 167 | await this.writePolicyChanges(groups) |
| 168 | } |
| 169 | |
| 170 | async runPositional (args, arb) { |
| 171 | const { matched, unmatched } = this.findNodesForArgs(args, arb) |
no test coverage detected