@codacy/verity-cli 0.30.0 → 0.30.1-experimental.cbeb697
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.
- package/bin/verity.js +1679 -716
- package/data/skills/verity-setup/SKILL.md +42 -0
- package/package.json +1 -1
|
@@ -751,6 +751,48 @@ global store and removes it automatically on the next `verity` command.
|
|
|
751
751
|
|
|
752
752
|
---
|
|
753
753
|
|
|
754
|
+
## Step 10b: Offer a `.verityignore` (optional)
|
|
755
|
+
|
|
756
|
+
Only if the codebase analysis in Step 2 found committed generated output —
|
|
757
|
+
`dist/`, `build/`, vendored bundles, generated API clients, large fixture
|
|
758
|
+
corpora. Do NOT create the file speculatively; an empty or guessed ruleset is
|
|
759
|
+
worse than none.
|
|
760
|
+
|
|
761
|
+
Ask the user first, naming the specific directories you found. If they agree,
|
|
762
|
+
write `.verityignore` at the repo root, gitignore syntax, and **commit it** — it
|
|
763
|
+
is a shared team decision, not machine-local state, so it does NOT go in
|
|
764
|
+
`.gitignore`.
|
|
765
|
+
|
|
766
|
+
```
|
|
767
|
+
# Generated — reviewing it grades a generator, not a person.
|
|
768
|
+
src/generated/**
|
|
769
|
+
dist/
|
|
770
|
+
|
|
771
|
+
# …but keep this one in scope.
|
|
772
|
+
!dist/entry.js
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
Rules, in the order they matter:
|
|
776
|
+
|
|
777
|
+
- **Last match wins.** A later `!` line re-includes what an earlier line
|
|
778
|
+
excluded. Order is load-bearing.
|
|
779
|
+
- A pattern with **no slash** matches at any depth (`*.min.js`). One **with** a
|
|
780
|
+
slash is anchored to the repo root (`src/generated/**`).
|
|
781
|
+
- `**`, `*`, `/` and `**/*` on their own are **refused** — they exclude the whole
|
|
782
|
+
repository, which is turning the product off rather than scoping it.
|
|
783
|
+
|
|
784
|
+
Two things to tell the user, because both surprise people:
|
|
785
|
+
|
|
786
|
+
1. **It cannot hide a finding you just created.** Any turn that changes
|
|
787
|
+
`.verityignore` has its rules suspended entirely, and the edit is always
|
|
788
|
+
reviewed. A rule takes effect from the next turn onward.
|
|
789
|
+
2. **A pattern that covers a secret is warned about, not refused** — `config/**`
|
|
790
|
+
also hides `config/.env`. Verity says so at push time and again on any run
|
|
791
|
+
where it actually excludes one. Add a `!` rule if that is not what was meant.
|
|
792
|
+
|
|
793
|
+
Excluded files are still named in every run's coverage ledger, and the share of
|
|
794
|
+
changed files they cover is reported — an ignore file is never silent.
|
|
795
|
+
|
|
754
796
|
## Step 11: Show summary
|
|
755
797
|
|
|
756
798
|
Print a complete summary:
|