Learn R Programming

DependencyReviewer (version 1.2.3)

darwinLintScore: darwinLintScore

Description

Function that scores the lintr output as a percentage per message type (style, warning, error). Lintr messages / lines assessed * 100

Usage

darwinLintScore(lintFunction, ...)

Value

A tibble of percentage scores per type of Lint message.

Arguments

lintFunction

Lint function to use

...

Other parameters a Lint function might need (i.e. file name)

Examples

Run this code
# 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")
)

Run the code above in your browser using DataLab