(ctx: &mut ValidationContext, long_desc: &str)
| 608 | } |
| 609 | |
| 610 | fn check_plugin_long_description(ctx: &mut ValidationContext, long_desc: &str) { |
| 611 | if long_desc.chars().count() > 4000 { |
| 612 | ctx.push_field_error( |
| 613 | "long_description", |
| 614 | "long description can be max 4000 characters long".to_string(), |
| 615 | ); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | fn check_plugin_name(ctx: &mut ValidationContext, name: &str) { |
| 620 | if name.chars().count() > 32 { |
no test coverage detected