Commit b8c32b2
feat(assail): exclude vendored-snapshot directories from analysis
Three directory shapes hold vendored upstream snapshots that the
project does not own and must not be flagged against:
- .yarn/ (Yarn 4 cached release blobs, e.g. yarn-4.12.0.cjs)
- idaptik-rescript13-staging/ (the ReScript 13 staging tree
embedded in several estate repos)
- rescript-ecosystem/ (vendored upstream ReScript packages)
Add all three to both walk_directory's skip list and
count_languages_recursive's skip list (the latter only needs the
two snapshot trees — .yarn is already covered by its existing
dot-prefix skip).
Without these exclusions, panic-attack reports findings against
code the project cannot fix — developer-ecosystem#83 logged
166 findings, ~70% of which fall in these paths.
Regression tests verify each subtree is skipped while first-party
sibling files are still walked.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03fdd9f commit b8c32b2
1 file changed
Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
793 | 798 | | |
794 | 799 | | |
795 | 800 | | |
| |||
859 | 864 | | |
860 | 865 | | |
861 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
862 | 870 | | |
863 | 871 | | |
864 | 872 | | |
| |||
7819 | 7827 | | |
7820 | 7828 | | |
7821 | 7829 | | |
| 7830 | + | |
| 7831 | + | |
| 7832 | + | |
| 7833 | + | |
| 7834 | + | |
| 7835 | + | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
| 7842 | + | |
| 7843 | + | |
| 7844 | + | |
| 7845 | + | |
| 7846 | + | |
| 7847 | + | |
| 7848 | + | |
| 7849 | + | |
| 7850 | + | |
| 7851 | + | |
| 7852 | + | |
| 7853 | + | |
| 7854 | + | |
| 7855 | + | |
| 7856 | + | |
| 7857 | + | |
| 7858 | + | |
| 7859 | + | |
| 7860 | + | |
| 7861 | + | |
| 7862 | + | |
| 7863 | + | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
| 7870 | + | |
| 7871 | + | |
| 7872 | + | |
| 7873 | + | |
| 7874 | + | |
| 7875 | + | |
| 7876 | + | |
| 7877 | + | |
| 7878 | + | |
| 7879 | + | |
| 7880 | + | |
| 7881 | + | |
| 7882 | + | |
| 7883 | + | |
| 7884 | + | |
| 7885 | + | |
| 7886 | + | |
| 7887 | + | |
| 7888 | + | |
| 7889 | + | |
| 7890 | + | |
| 7891 | + | |
| 7892 | + | |
| 7893 | + | |
7822 | 7894 | | |
7823 | 7895 | | |
7824 | 7896 | | |
0 commit comments