deps/forks-documented/node
Forked or patched dependencies are documented
Implements deps/forks-documented for node.
| Severity | info |
| Tiers | 1, 2 |
| Stacks | node |
| Scope | root |
| Kind | expr |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
A git dependency in package.json is documented in FORKS.md or a Forks section (package.json has no comments).
Why
A fork without a note outlives the reason for it; the next upgrade either drops the fix or keeps the fork forever.
Applies when
grep("package.json", r'"(github:|git\+|git://|https://github\.com/[^"]+\.git)').size() > 0Check
For each item in:
grep("package.json", r'"(github:|git\+|git://|https://github\.com/[^"]+\.git)')exists("FORKS.md") || exists("docs/FORKS.md") || exists("docs/forks.md") || grep("README.md", r'^#+ .*\b(forks?|vendored|patched|patches)\b').size() > 0 || grep("docs/**/*.md", r'^#+ .*\b(forks?|vendored|patched|patches)\b').size() > 0Fix
This implementation has no fix of its own: see deps/forks-documented.
Sources
- https://fleetlint.org/baseline/#dependencies (convention)
- https://docs.npmjs.com/cli/v11/configuring-npm/package-json (spec, Git URLs as Dependencies)
- https://fleetlint.org/stacks/#nodejs–typescript
Generated by fleetlint docs from catalog v0.8.0.