We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While working on xportr_length() the cyclomatic complexity lintr was failing.
xportr_length()
What should I do to resolve this lint error?
It has to do with the number of conditions being used in a function. https://en.wikipedia.org/wiki/Cyclomatic_complexity
I increased it to 18 in the .lintr file so this would check. Will make an issue for someone to look into for next release.
.lintr
Originally posted by @bms63 in #238 (comment)
The text was updated successfully, but these errors were encountered:
Closes #244 #251 reduces cyclomatic complexity and cleanup of .lintr (
1bb339a
#254) * chore: reduce cyclomatic complexity * chore: remove extra lintr rules * fix: force numeric width attribute * lintr: reduce complexity and improve lintr rules * lintr: allows object_usage linter with specific exception for glue * chore: revert import of deprecate_stop * chore: use integer for vapply template * lintr: rename argument of internal function * chore: missed 1 deprecated_stop in regression * lintr: remove exception no longer necessary * feat: remove repeated $ * chore: remove extra empty line * lintr: revert to disable object_usage * fix: remove space * chore: removes unused import
Successfully merging a pull request may close this issue.
Background
While working on
xportr_length()
the cyclomatic complexity lintr was failing.What should I do to resolve this lint error?
It has to do with the number of conditions being used in a function. https://en.wikipedia.org/wiki/Cyclomatic_complexity
I increased it to 18 in the
.lintr
file so this would check. Will make an issue for someone to look into for next release.Originally posted by @bms63 in #238 (comment)
Definition of Done
xportr_length()
.lintr
file back to default of 15The text was updated successfully, but these errors were encountered: