equinor / equinor/dependency-consistency
Give the option to make hook fail if package is present in hook but not any lock files
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## What
Give the option to make hook fail if package is present in hook but not any lock files.
## How
Strict option?
## Why
As it is the hook will only give a warning if a package is listed in the hook with but not in any of the provided lock files.
## Details
Hook running result

This was only visible because other packages triggered the hook to fail. If that had not happened the user would not get the warning.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the hook entry point and trace how packages missing from the provided lock files currently produce warnings. Identify how hook options are parsed, then verify that a strict option makes this condition fail while the existing default behavior remains a warning; add or run the relevant hook checks if the repository provides them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100