From 2ab29e99ca152475f402b9e9f048f97b2fb60092 Mon Sep 17 00:00:00 2001 From: jamesaazam Date: Tue, 18 Jul 2023 17:46:52 +0100 Subject: [PATCH] Updated the .lintr configuration to match with that in packagetemplate --- .lintr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.lintr b/.lintr index 12d8a253..936cfccc 100644 --- a/.lintr +++ b/.lintr @@ -7,6 +7,10 @@ linters: linters_with_tags( todo_comment_linter = NULL, function_argument_linter = NULL, cyclocomp_linter = NULL, - # Use minimum R declared in DESCRIPTION or fall back to current R version + # Use minimum R declared in DESCRIPTION or fall back to current R version. + # Install etdev package from https://github.com/epiverse-trace/etdev backport_linter(if (length(x <- etdev::extract_min_r_version())) x else getRversion()) - ) + ) +exclusions: list( + "tests/testthat.R" = list(unused_import_linter = Inf) + )