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

style(userspace/engine): avoid creating multiple versions of methods only to assume default ruleset. Use a default argument instead. #1754

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Oct 13, 2021

Signed-off-by: Federico Di Pierro <[email protected]>

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind cleanup

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

Avoid creating multiple methods to only route that m_default_ruleset to main method; properly use a default argument instead.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@poiana
Copy link
Contributor

poiana commented Oct 13, 2021

Welcome @FedeDP! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana added the size/M label Oct 13, 2021
leogr
leogr previously approved these changes Nov 12, 2021
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

/approve

@poiana
Copy link
Contributor

poiana commented Nov 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

userspace/engine/falco_engine.cpp Outdated Show resolved Hide resolved
FedeDP and others added 3 commits November 15, 2021 10:46
…only to assume default ruleset. Use a default argument instead.

Signed-off-by: Federico Di Pierro <[email protected]>
Signed-off-by: Federico Di Pierro <[email protected]>

Co-authored-by: Mark Stemm <[email protected]>
@FedeDP FedeDP force-pushed the cleanup_m_default_ruleset branch from 5afb891 to fc8d716 Compare November 15, 2021 09:46
@poiana poiana added the lgtm label Nov 15, 2021
@poiana
Copy link
Contributor

poiana commented Nov 15, 2021

LGTM label has been added.

Git tree hash: a9cf792f1732d0079c2297ba402c90adc016bb61

@leogr
Copy link
Member

leogr commented Nov 16, 2021

Closing and reopening to trigger the CI
/close

@poiana
Copy link
Contributor

poiana commented Nov 16, 2021

@leogr: Closed this PR.

In response to this:

Closing and reopening to trigger the CI
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana poiana closed this Nov 16, 2021
@leogr
Copy link
Member

leogr commented Nov 16, 2021

/reopen

@poiana poiana reopened this Nov 16, 2021
@poiana
Copy link
Contributor

poiana commented Nov 16, 2021

@leogr: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

/approve

@leogr
Copy link
Member

leogr commented Nov 16, 2021

/milestone 0.31.0

@poiana poiana merged commit 7dcf8f4 into falcosecurity:master Nov 16, 2021
@leogr leogr added this to the 0.31.0 milestone Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants