-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
38 lines (27 loc) · 1.18 KB
/
Makefile
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
.PHONY: fuzz
all: test
downloads:
wget -O test.csv https://raw.githubusercontent.com/vzhou842/profanity-check/master/profanity_check/data/clean_data.csv
wget -O src/dictionary.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt
wget -O src/dictionary_common.txt https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english.txt
wget -O src/unicode_confusables.txt https://www.unicode.org/Public/security/14.0.0/confusables.txt
# TODO: ttf fonts
false_positives:
cargo run --bin false_positive_finder --release --features censor,regex,indicatif,rayon,find_false_positives
replacements:
cargo run --bin replacement_finder --features find_replacements
widths:
cargo run --bin character_analyzer --release --features imageproc,image,rusttype,walkdir,rayon,unicode-width
test:
cargo test --release --features width,pii,serde -- --nocapture
compare:
COMPARE=1 make test
table:
cargo test --release -- accuracy --nocapture
# Skips accuracy analysis so finishes faster.
test_debug:
cargo test --features pii -- --nocapture
fuzz:
cargo fuzz run fuzz
test_customize:
cargo test --release --features customize --no-default-features