Skip to content

Commit

Permalink
fix: do not require inheritdoc for constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Jan 13, 2024
1 parent b105297 commit 267bb58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export class Validator {
let _requiresInheritdoc: boolean = false;

// External or public function
_requiresInheritdoc ||= node instanceof FunctionDefinition && (node.visibility === 'external' || node.visibility === 'public');
_requiresInheritdoc ||=
node instanceof FunctionDefinition && (node.visibility === 'external' || node.visibility === 'public') && !node.isConstructor;

// Internal virtual function
_requiresInheritdoc ||= node instanceof FunctionDefinition && node.visibility === 'internal' && node.virtual;
Expand Down

0 comments on commit 267bb58

Please sign in to comment.