find_weaknesses_in_scripts: Find weaknesses in R scripts

View source: R/find_weaknesses_in_scripts.R

find_weaknesses_in_scriptsR Documentation

Find weaknesses in R scripts

Description

Find weaknesses in R scripts

Usage

find_weaknesses_in_scripts(
  x = parse_scripts(root),
  root = NULL,
  min_duplicate_string_length = 6L,
  min_duplicate_frequency = 3L
)

Arguments

x

list of named parse trees as returned by parse_scripts. Not required if root is given.

root

path to folder containing R scripts

min_duplicate_string_length

minimum number of characters that a string constant must have to be considered as a duplicate

min_duplicate_frequency

minimum frequency of a string constant to be considered as a duplicate

Value

data frame with columns file, expression, frequency, recommendation


KWB-R/kwb.code documentation built on July 28, 2023, 5:57 p.m.