1 viewer
rust 1,862,106 · typescript 235,774 · javascript 132,961 · python 20,426 · 6,412 files · digest 265813236560 · built in 2.2 s · crystals off
crates/cre8-app-social/src/bot/safety.rs
Items
enum Veto impl Display for Veto impl Error for Veto struct SafetyConfig impl SafetyConfig struct SafetyState static STATE static CFG
Functions
By call-graph weight (PageRank; 1.0 is the average function). 17 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| statesrc/bot/safety.rs:102 | fn | 4 | 1 | 4 | 0 | 1.6 | |
| SafetyConfig::from_envsrc/bot/safety.rs:74 | method | 18 | 2 | 1 | 2 | 1 | |
| bot_handle_forsrc/bot/safety.rs:114 | fn | 12 | 7 | 1 | 1 | 1 | |
| dummy_actionsrc/bot/safety.rs:249 | fn | 11 | 1 | 3 | 0 | 0.9 | |
| record_actionsrc/bot/safety.rs:218 | fn | 16 | 4 | 3 | 1 | 0.9 | |
| check_actionsrc/bot/safety.rs:131 | fn | 22 | 1 | 3 | 7 | 0.8 | |
| configsrc/bot/safety.rs:107 | fn | 4 | 1 | 1 | 1 | 0.6 | |
| check_content_blocklistsrc/bot/safety.rs:154 | fn | 12 | 3 | 1 | 0 | 0.6 | |
| check_self_replysrc/bot/safety.rs:167 | fn | 16 | 5 | 1 | 1 | 0.6 | |
| check_duplicate_replysrc/bot/safety.rs:184 | fn | 9 | 3 | 1 | 0 | 0.6 | |
| check_user_cooldownsrc/bot/safety.rs:194 | fn | 21 | 4 | 1 | 1 | 0.6 | |
| prune_expiredsrc/bot/safety.rs:235 | fn | 7 | 1 | 1 | 0 | 0.6 | |
| Veto::fmtsrc/bot/safety.rs:41 | trait impl | 19 | 4 | 0 | 0 | 0.5 | |
| dummy_eventsrc/bot/safety.rs:261 | fn | 14 | 1 | 0 | 0 | 0.5 | |
| duplicate_reply_blockedsrc/bot/safety.rs:277 | fn | 8 | 1 | 0 | 4 | 0.5 | |
| block_words_matchsrc/bot/safety.rs:287 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| non_reply_actions_skip_dedupsrc/bot/safety.rs:298 | fn | 8 | 1 | 0 | 4 | 0.5 |
Source not readable from this process.