darwinLintScore: darwinLintScore

View source: R/darwinLint.R

darwinLintScoreR Documentation

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, ...)

Arguments

lintFunction

Lint function to use

...

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

Value

A tibble of percentage scores per type of Lint message.

Examples

# 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")
)

DependencyReviewer documentation built on March 31, 2023, 9:30 p.m.