-
Notifications
You must be signed in to change notification settings - Fork 1
/
file-classes.yaml
64 lines (60 loc) Β· 5.32 KB
/
file-classes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# cwd: recon/recon/src
#
# $ recon -r ../tests -c file-classes.yaml -q 'select path, is_document,is_ignored from files'
# ββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββ¬βββββββββββββ
# β path β is_document β is_ignored β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/query-nonempty.trycmd β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/query-empty.trycmd β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/help.trycmd β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/query-nonempty.in/recon.db β 0 β 1 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/query-nonempty.in/test.txt β 1 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/digests.in/recon.db β 0 β 1 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/digests.in/config.yaml β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/digests.in/test.txt β 1 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/digests.in/recon-terminal.gif β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/query-empty.in/recon.db β 0 β 1 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cmd/digests.trycmd β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/cli_tests.rs β 0 β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌβββββββββββββ€
# β ../tests/.gitattributes β null β 0 β
# ββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ΄βββββββββββββ
# 13 files in 36.621791ms
#
# in this example:
# - you determine file classes by their extension
# - performed in `default_fields` (for all walked files), so you can use these fields
# in the future for more creatively selecting a subset of files in `computed_fields`
# e.g. "perform yara matches only against documents,
# and I also gave you a definition of what is a document earlier"
#
source:
default_fields:
is_archive:
- zip
# array of extensions to test against
is_document:
- md
- txt
# array of extensions to test against
is_media:
- png
- svg
# array of extensions to test against
is_code:
- rs
# array of locations for standard gitignore files
is_ignored:
# when run from recon/recon/src, point backwards
- ../../.gitignore