darwinLintScore | R Documentation |
Function that scores the lintr output as a percentage per message type (style, warning, error). Lintr messages / lines assessed * 100
darwinLintScore(lintFunction, ...)
lintFunction |
Lint function to use |
... |
Other parameters a Lint function might need (i.e. file name) |
A tibble of percentage scores per type of Lint message.
# With darwin file lintr
darwinLintScore(
lintFunction = darwinLintFile,
system.file(package = "DependencyReviewer", "testScript.R")
)
# With standard package lintr
darwinLintScore(
lintFunction = lintr::lint_package,
system.file(package = "DependencyReviewer")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.