You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin should measure the documentation coverage of a given code base scoped by a glob pattern.
Documentation coverage can get applied on any AST node of your TypeScript or JavaScript code.
It will detect if the node's comments are given and follow the official JSDoc standard.
The metrics value is the factor of total number of nodes to undocumented nodes.
That means if the codebase contains 10 nodes and 5 of them are uncommented the coverage would be:
value: 50
displayValue: 50
score: .5
User story
As a CodePushup user I want to have a plugin to keep track of the documentation coverage of my codebase.
Acceptance criteria
The plugin can track my documentation coverage based on the official JSDoc standard
The documentation coverage is applied for the following node types:
variable
enum
property
interface
function
class
method
types
The plugins configuration options:
accept a glob pattern to scope the checked files (exclude tests, internal implementation etc.)
properties to have fine-grained control on which audits are applied. The names are onlyAudity and skipAudits and accept multiple audit slugs
The plugin works for JavaScript as well as TypeScript format.
Undocumented nodes should get listed under details.issues and maintain the file, and line number. The type should be listed in the message.
Metric
The plugin should measure the documentation coverage of a given code base scoped by a glob pattern.
Documentation coverage can get applied on any AST node of your TypeScript or JavaScript code.
It will detect if the node's comments are given and follow the official JSDoc standard.
The metrics value is the factor of total number of nodes to undocumented nodes.
That means if the codebase contains 10 nodes and 5 of them are uncommented the coverage would be:
value
: 50displayValue
: 50score
: .5User story
As a CodePushup user I want to have a plugin to keep track of the documentation coverage of my codebase.
Acceptance criteria
variable
enum
property
interface
function
class
method
types
onlyAudity
andskipAudits
and accept multiple audit slugsdetails.issues
and maintain the file, and line number. The type should be listed in the message.Implementation details
The text was updated successfully, but these errors were encountered: