collect.py credits pre-commit hooks only for .pre-commit-config.yaml (the Python-ecosystem tool). The JavaScript equivalents are invisible.
Observed on express-rate-limit/express-rate-limit (report scores pre_commit_hooks 0/9.6): the repo has a .husky/ directory, husky in devDependencies with a prepare: husky script, a lint-staged config block in package.json, and a pre-commit: lint-staged script — a fully wired pre-commit setup.
Suggested detection additions:
.husky/ directory (with at least one non-underscore file)
lint-staged key in package.json, or .lintstagedrc*
lefthook.yml / .lefthook.yml
package.json is already fetched as a manifest text (embedded_linter_configs reads it), so this needs no extra API calls.
collect.pycredits pre-commit hooks only for.pre-commit-config.yaml(the Python-ecosystem tool). The JavaScript equivalents are invisible.Observed on express-rate-limit/express-rate-limit (report scores
pre_commit_hooks0/9.6): the repo has a.husky/directory,huskyin devDependencies with aprepare: huskyscript, alint-stagedconfig block in package.json, and apre-commit: lint-stagedscript — a fully wired pre-commit setup.Suggested detection additions:
.husky/directory (with at least one non-underscore file)lint-stagedkey in package.json, or.lintstagedrc*lefthook.yml/.lefthook.ymlpackage.json is already fetched as a manifest text (
embedded_linter_configsreads it), so this needs no extra API calls.