Skip to content
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

cre8-app-social · module bot::safety · src · 306 lines (227 code, 46 comment) · sha cf9e7b4d96295d83

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
statesrc/bot/safety.rs:102fn41401.6
SafetyConfig::from_envsrc/bot/safety.rs:74method182121
bot_handle_forsrc/bot/safety.rs:114fn127111
dummy_actionsrc/bot/safety.rs:249fn111300.9
record_actionsrc/bot/safety.rs:218fn164310.9
check_actionsrc/bot/safety.rs:131fn221370.8
configsrc/bot/safety.rs:107fn41110.6
check_content_blocklistsrc/bot/safety.rs:154fn123100.6
check_self_replysrc/bot/safety.rs:167fn165110.6
check_duplicate_replysrc/bot/safety.rs:184fn93100.6
check_user_cooldownsrc/bot/safety.rs:194fn214110.6
prune_expiredsrc/bot/safety.rs:235fn71100.6
Veto::fmtsrc/bot/safety.rs:41trait impl194000.5
dummy_eventsrc/bot/safety.rs:261fn141000.5
duplicate_reply_blockedsrc/bot/safety.rs:277fn81040.5
block_words_matchsrc/bot/safety.rs:287fn91020.5
non_reply_actions_skip_dedupsrc/bot/safety.rs:298fn81040.5

Source not readable from this process.