DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers JavaScript
JavaScript

JavaScript

By DeepSource

Use Analyzer
Docs
Discuss
Documentation comments not found for functions and classes JS-D1001
Documentation

It is recommended to have documentation comments above, or right inside a function/class declaration. This helps developers, users and even the author understand the purpose of a code snippet or API function in the future.

NOTE: If you want to stop this issue from getting raised on certain constructs (arrow functions, class expressions, methods etc.), consider using the skipdoccoverage option under the analyzers.meta property in your .deepsource.toml file. For example, the following configuration will silence this issue for class expressions and method definitions:

[analyzers.meta]
    skip_doc_coverage = ["class-expression", "method-definition"]
Found warning comments in code JS-0099
Documentation

Developers often add comments to code that is not complete or needs review. You probably want to fix or review the code and then remove the comments before considering the code to be production-ready. Issues are raised whenever our analyzer finds these keywords in the comments i.e., TODO, FIXME, XXX.

// TODO: do something
// FIXME: this is not a good idea