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

FR: Support for Custom Analysis Plugins #5

Open
liuyan9 opened this issue Aug 11, 2024 · 0 comments
Open

FR: Support for Custom Analysis Plugins #5

liuyan9 opened this issue Aug 11, 2024 · 0 comments

Comments

@liuyan9
Copy link

liuyan9 commented Aug 11, 2024

Hi @shenjunjiekoda

I've been exploring the knight project and am impressed with its capabilities and the analyses it performs on C/C++ codebases. However, I noticed that while the project supports a wide range of analyses and checks, there might be specific needs or custom analyses that users might want to perform which are not currently supported out-of-the-box.

Feature Request

I propose the addition of a feature that allows users to easily plug in their custom analyses into the knight framework. This would not only enhance the flexibility of the tool but also enable a broader community contribution by allowing users to share their custom analyses with others.

Suggested Approach

  • Define a clear interface or protocol that custom analyses need to adhere to. This might include specific methods for analysis initialization, execution, and results reporting.
  • Provide detailed documentation and examples on how to create custom analyses adhering to the proposed interface.
  • Implement a mechanism within the knight tool to dynamically load and execute these custom analyses. This could be through shared libraries, scripts, or any other suitable form of extensibility.

Benefits

  • Flexibility: Users can tailor the tool to their specific needs, enhancing its utility.
  • Community Engagement: Encourages the community to contribute by developing and sharing their analyses.
  • Rapid Prototyping: Users can quickly test new analyses without waiting for them to be officially incorporated into the tool.

Conclusion

The addition of support for custom analysis plugins could significantly enhance the knight tool's versatility and its adoption. I believe this feature aligns well with the project's goals of providing a comprehensive analysis tool for C/C++ codebases.

Thank you for considering this feature request. I am looking forward to any feedback or thoughts on this proposal.

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

1 participant