For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/static_analysis/static_analysis_rules/javascript-code-style/func-names.md.
A documentation index is available at /llms.txt.
This product is not supported for your selected Datadog site. ().
Metadata
ID:javascript-code-style/func-names
Language: JavaScript
Severity: Notice
Category: Best Practices
Description
It is easier to debug your application code when you avoid anonymous functions so that the stack trace can show you meaningful error messages. This rule enforces all your function to be consistently declared with a name.