This product is not supported for your selected Datadog site. ().
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Metadata

ID: rust-code-quality/function-name-min-length

Language: Rust

Severity: Info

Category: Best Practices

Description

Function names should be descriptive of their behavior. Instead of using a very short name, always use a name that indicates what the function does.

Arguments

  • min-length: Minimum length for function names. Default: 2.

Non-Compliant Code Examples

fn a() {
    println!("Hello world!");
}

Compliant Code Examples

fn hello() {
    println!("Hello world!");
}
https://static.datadoghq.com/static/images/logos/github_avatar.svg https://static.datadoghq.com/static/images/logos/vscode_avatar.svg jetbrains

シームレスな連携。 Datadog Code Security をお試しください