adjust_lint_location: Correcting Lint Locations

View source: R/03b_doubleSpaceLinter.R View source: R/03a_additionalLinters.R

adjust_lint_locationR Documentation

Correcting Lint Locations

Description

The lint location must be corrected and the following code seeks to add the amount of spaces that was overlooked when interpreting a COMMENT with code in front of it (code is invisible).

The lint location must be corrected and the following code seeks to add the amount of spaces that was overlooked when interpreting a COMMENT with code in front of it (code is invisible).

Usage

adjust_lint_location(df, valid_nodes)

adjust_lint_location(df, valid_nodes)

Arguments

df

A dataframe of the full parsed content of the underlying script

valid_nodes

A node list containing detected lints from comments/strings

Value

An node list extended by the loc_diff

An node list extended by the loc_diff


INWT/INWTUtils documentation built on May 22, 2024, 4:45 p.m.