(node, { global })
| 243 | node.extraneous && !global |
| 244 | |
| 245 | const getProblems = (node, { global }) => { |
| 246 | const problems = new Set() |
| 247 | |
| 248 | if (node[_missing] && !isOptional(node)) { |
| 249 | problems.add(`missing: ${node.pkgid}, required by ${node[_missing]}`) |
| 250 | } |
| 251 | |
| 252 | if (node[_invalid]) { |
| 253 | problems.add(`invalid: ${node.pkgid} ${node.path}`) |
| 254 | } |
| 255 | |
| 256 | if (isExtraneous(node, { global })) { |
| 257 | problems.add(`extraneous: ${node.pkgid} ${node.path}`) |
| 258 | } |
| 259 | |
| 260 | return problems |
| 261 | } |
| 262 | |
| 263 | // annotates _parent and _include metadata into the resulting item obj allowing for filtering out results during output |
| 264 | const augmentItemWithIncludeMetadata = (node, item) => { |
no test coverage detected