@nodeve/checks 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,10 +80,15 @@ pre-commit:
80
80
  run: node_modules/.bin/nodeve-check inline-dupes
81
81
 
82
82
  # Whole-tree property — structural copy-paste (jscpd). A clone is a
83
- # relationship between two places, so it scans the full configured scope.
84
- # No-ops if the jscpd binary isn't installed.
83
+ # relationship between two places, so it scans the full configured scope
84
+ # (it ignores {staged_files}). Deliberately UN-globbed: a trigger glob
85
+ # would gate the job on staged file extensions, silently skipping the
86
+ # scan on a commit that stages only a language the glob didn't list. The
87
+ # languages it scans are owned by `clones.formats` in nodeve.checks.js,
88
+ # so adding one there is all a repo needs. Cost: the scan fires on every
89
+ # commit — cheap (jscpd is fast, exits 0 with no clones, runs in this
90
+ # parallel group), and it no-ops if the jscpd binary isn't installed.
85
91
  - name: clones
86
- glob: '*.{ts,js}'
87
92
  run: node_modules/.bin/nodeve-check clones
88
93
 
89
94
  - name: helper-collisions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodeve/checks",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Org-wide commit-gate checks (doc budgets, reshape/dup/helper smells, page size) and helper-index generators, driven by a per-repo config file and wired through lefthook.",
5
5
  "license": "MIT",
6
6
  "repository": {