Skip to content
New issue

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

Some enhancements #6

Closed
eapunk opened this issue Jul 6, 2018 · 1 comment
Closed

Some enhancements #6

eapunk opened this issue Jul 6, 2018 · 1 comment

Comments

@eapunk
Copy link

eapunk commented Jul 6, 2018

Hello @eric-therond
I have just published project svscan based on progpilt.
Maybe you are interesting what features will be useful to have in progpilot.
I overrode some code to achieve the following:

  • multiple rules, i.e. your uptodate data and my custom rules
  • counting the number of files analyzed
  • printing result at the same moment when it founded

You can close this issue at any time.

Thank you for your project.

@eric-therond
Copy link
Collaborator

Hello @eapunk
thank you very much for your efforts
I have integrated most of your work in the 0.3.3 version of progpilot :

  • an array of files could be passed for specifying an analysis, for example :
$obj_context->inputs->setSources(["sources1.json", "sources2.json"]);
  • the number of analyzed files could be retrieved with this method :
$obj_context->outputs->getCountAnalyzedFiles();
  • and a callback function could be executed when a bug is found :
$obj_context->outputs->setOnAddResult($func);

I hope this is what you expected

Eric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants