Skip to content

Rule

Defines how to analyze entities for a single best practice.

About extends RuleAbout = RuleAbout

about: About

Metadata about the rule.


optional comment: RuleListener<CommentEntity>

Callback to run if the entity is a comment.


optional discussion: RuleListener<DiscussionEntity>

Callback to run if the entity is a discussion.


optional issue: RuleListener<IssueEntity>

Callback to run if the entity is a issue.


optional pullRequest: RuleListener<PullRequestEntity>

Callback to run if the entity is a pull request.