To check the code quality of my package I am using the package lintr using the command
lintr::lint_package()
and get one result that I want to ignore:
functions should have cyclomatic complexity of less than 15
How can I ignore this single "false positive" lintr result of a single lintr (cyclocomp_linter
)
for a file (line number range)?
Edit 1: Currently I am using this .lintr
config file as a workaround (by disabling the lintr completely):
linters: with_defaults(
cyclocomp_linter = NULL # instead of NULL I could use: cyclocomp_linter(16)
)