extract_style {adaptalint}R Documentation

Find style of a file

Description

Returns the absolute and relative counts of all lint errors found in the file. The resulting style data can be applied to another file with lint_with_style or lint_package_with_style.

Usage

extract_style(filename)

Arguments

filename

path to the file of interest

Value

a data_frame with columns lint, count, total_lints and adjusted

Examples


# Get the path to a file to check
path <- system.file("extdata", 'styles.R', package='adaptalint')

# Find out the profile of lints in this package
style <- extract_style(filename = path)

[Package adaptalint version 0.2.4 Index]