-
Notifications
You must be signed in to change notification settings - Fork 913
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
[maintenance] cpp cleanup #3052
Comments
CC @falcosecurity/falco-maintainers - we will take a look soon! Thanks a bunch 🚀 ! |
Hey @sgaist Thank you for your proposal! Here's my feedback.
I guess this ☝️ would let us evaluate cleanups case by case and then 👇
(sometimes, to decide if a change worth to be introducing or not, just a simple
Yes, please 🙏
I believe the easiest way to move this forward is to make a PR per cleanup sequentially (each PR is a separate branch).
This is the big question :) Let's see what other maintainers think about this. |
I would appreciate this as depending on the PR I also experienced varying style feedback 🙃 A more realistic timeline would perhaps be June/July 2024 (post Falco 0.38.0)? |
I agree to proceed in this way!
Yeah at a certain point, we need to revamp this discussion! |
Thank you for the suggestions! I am in favor of cleaning up the code, especially because lately we have been working to remove some potential sources of segfaults, undefined behavior and so on. I have some suggestions about it:
|
|
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
/remove-lifecycle rotten |
Motivation
I am opening this ticket as a followup to a discussion I am having with @incertum.
While working on #2890 and #2974, I saw potential to improve some things in the code base.
I am not currently talking about low level refactoring of core functionalities but improvement of the code itself to make the life of new and old falco developers easier.
What this ticket is not: a suggestion for a revolution.
Proposition
There are several aspects that I would like to help improve:
As a mean to that end, I have run cppcheck on the code base and it has found things in the above list and some more such as suggestions around using stl algorithms in place of loops in some places and the use of some deprecated APIs.
What I think would be nice is to devise a plan so that the various cleanup do not interfere too much with the current pull requests.
One possible way to go forward:
Some questions around the organisation of that:
Further suggestions are welcome
Note: I know some changes might rather be style related when thinking about idiomatic C++ so another question would be should they wait for falcosecurity/libs#381 to be done ?
Tasks
The text was updated successfully, but these errors were encountered: