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

Add dynamic plugins filters for variable names from phpgrep #1179

Closed
i582 opened this issue Jun 14, 2022 · 0 comments · Fixed by #1180
Closed

Add dynamic plugins filters for variable names from phpgrep #1179

i582 opened this issue Jun 14, 2022 · 0 comments · Fixed by #1180
Labels
enhancement New feature or request

Comments

@i582
Copy link
Contributor

i582 commented Jun 14, 2022

Sometimes in dynamic rules we want to be able to specify a specific name or regular expression for a variable to match.

For example:

function forbid_id_var() {
  /**
   * @maybe Not use $id variable
   * @filter id "^id$"
   */
  $id;
}
@i582 i582 added the enhancement New feature or request label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant