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

fix tool regex #208

Merged
merged 2 commits into from
May 27, 2024
Merged

fix tool regex #208

merged 2 commits into from
May 27, 2024

Conversation

pascal-sauer
Copy link
Contributor

@pascal-sauer pascal-sauer commented May 27, 2024

Previously the regex "tool([^( ]*)\\(" was in our R code. It matches "if (...) toolSomething(...)" as intended, but it also matched "tools::file_ext(...)", "mstools::toolSomething(...)" (substring "tools::toolSomething(" matched, which does not make sense), or "function_with_tool_anywhere(...)" (substring "tool_anywhere(" matched), frequently leading to false warnings e.g. when calling mstools tool functions via the recommended ::. This PR fixes all of these cases.

@pascal-sauer pascal-sauer requested a review from tscheypidi May 27, 2024 07:33
@pascal-sauer pascal-sauer merged commit c4ba674 into pik-piam:master May 27, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants