equinor / equinor/dependency-consistency

Give the option to make hook fail if package is present in hook but not any lock files

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
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

![image](https://github.com/equinor/dependency-consistency/assets/35423338/44f658ba-1271-4e10-b15a-28b530de076d)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.