MCPcopy Create free account
hub / github.com/Botloader/botloader / check_plugin_short_description

Function check_plugin_short_description

components/validation/src/web.rs:601–608  ·  view source on GitHub ↗
(ctx: &mut ValidationContext, short_desc: &str)

Source from the content-addressed store, hash-verified

599}
600
601fn check_plugin_short_description(ctx: &mut ValidationContext, short_desc: &str) {
602 if short_desc.chars().count() > 150 {
603 ctx.push_field_error(
604 "short_description",
605 "short description can be max 150 characters long".to_string(),
606 );
607 }
608}
609
610fn check_plugin_long_description(ctx: &mut ValidationContext, long_desc: &str) {
611 if long_desc.chars().count() > 4000 {

Callers 1

validateMethod · 0.85

Calls 2

countMethod · 0.80
push_field_errorMethod · 0.80

Tested by

no test coverage detected