We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are 2 events I have in mind:
The users could hook on the event of their choice by implementing the corresponding interfaces.
Example:
interface AfterFileAnalysisHook { public function afterFileAnalysis(AfterFileAnalysisEvent $event): void; } interface AfterFileAnalysisEvent { public function getFilePath(): string; public function getNumberOfChanges(): int; public function getCyclomaticComplexity(): int; //public function getScore(): float; // nope, the scores are calculated at the end } interface AfterAnalysisHook { public function afterAnalysis(AfterAnalysisEvent $event): void; } interface AfterAnalysisEvent { public function getNumberOfFiles(): int; public function getMaxNumberOfChanges(): int; public function getMaxCyclomaticComplexity(): int; public function getMaxScore(): float; }
The text was updated successfully, but these errors were encountered:
I'm wondering it the hooks methods shouldn't be static. That way we don't have to worry about how to instantiate the hooks.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
There are 2 events I have in mind:
The users could hook on the event of their choice by implementing the corresponding interfaces.
Example:
The text was updated successfully, but these errors were encountered: