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 a new checker 'r' for R #2070

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

kunhtkun
Copy link
Contributor

@kunhtkun kunhtkun commented Apr 10, 2024

This is a rather rudimentary checker using the builtin parse function of R. It can only report syntax/parsing errors, but it does not depend on any third-party libraries. So hopefully this checker would still be useful.

As for testing, I saw:

- ``make unit`` runs all ERT unit tests for Flycheck. We are phasing ERT out in
favour of Buttercup; no new ERT unit tests will be added and this target will
eventually be removed.

However, it seems that tests for the r-lintr checker are still written with ERT in flycheck-test.el, so I again added an ERT test for this checker. Please let me know if this is not good.

Thanks!

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This is a rather rudimentary checker using only the builtin 'parse'
function of R. It can only report syntax/parsing errors, but it does not
depend on any third-party libraries.

R actually has some builtin utilities for linting (for example,
'codetools'), but as far as I know those require evaluating the source
code, so only 'parse' is used.
@bbatsov bbatsov merged commit 900b8e7 into flycheck:master Apr 11, 2024
15 of 18 checks passed
@bbatsov
Copy link
Contributor

bbatsov commented Apr 11, 2024

Looks good to me. Thanks!

@kunhtkun kunhtkun deleted the r-parse-checker branch April 11, 2024 23:57
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.

None yet

3 participants