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

Codemodder include and exclude flags should understand patterns #316

Closed
drdavella opened this issue Feb 28, 2024 · 1 comment · Fixed by #458
Closed

Codemodder include and exclude flags should understand patterns #316

drdavella opened this issue Feb 28, 2024 · 1 comment · Fixed by #458
Assignees
Labels
CLI enhancement New feature or request good first issue Good for newcomers

Comments

@drdavella
Copy link
Member

We need --codemod-include and --codemod-exclude to be able to include/exclude all codemods from a particular origin. For example, it would be useful to give an option like this:

--codemod-include=sonar:*

which could ensure all Sonar codemods are included.

Conversely, it would be useful to give an option like this:

---codemod-exclude=pixee:*

which would exclude all core Pixee codemods.

I think the pattern matching only needs to be supported at the level of origin. We don't need to support globs/patterns for specific names like pixee:python/xml-*.

@drdavella drdavella added enhancement New feature or request CLI labels Feb 28, 2024
@drdavella
Copy link
Member Author

This was added to the CodeTF spec: pixee/codemodder-specs#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant