Skip to content

Commit 3b6508c

Browse files
committed
chore: use options to replace extraction_operator_linter
Uses `options( warnPartialMatchDollar = TRUE ); in place of the deprecated `extraction_operator_linter` which was deprecated in lintr 3.2.0.
1 parent c2daa1e commit 3b6508c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/lint/r/linter.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ if ( n == 0L ) {
3838
stop( 'Must provide at least one file to lint.', call. = FALSE );
3939
}
4040

41+
# Warn on partial `$` matches as replacement for deprecated `extraction_operator_linter`:
42+
options( warnPartialMatchDollar = TRUE );
43+
4144
# Specify which linters to use...
4245
linters <- lintr::linters_with_defaults( defaults = default_linters,
4346
# Check that no absolute paths are used:
@@ -52,9 +55,6 @@ linters <- lintr::linters_with_defaults( defaults = default_linters,
5255
# Allow commented code outside roxygen blocks:
5356
commented_code_linter = NULL, # lintr::commented_code_linter,
5457

55-
# Deprecated in lintr >= 3.2.0:
56-
extraction_operator_linter = NULL,
57-
5858
# Require that integers are explicitly typed using the form `1L` instead of `1`:
5959
implicit_integer_linter = lintr::implicit_integer_linter(),
6060

0 commit comments

Comments
 (0)