From 10ad524b60ce93b176318bd96f2d149bfae689be Mon Sep 17 00:00:00 2001 From: Daniel Sabanes Bove Date: Mon, 25 May 2026 14:40:13 +0800 Subject: [PATCH 1/3] initial stab which gives default behavior --- DESCRIPTION | 4 ++-- man/roxylint/meta.R | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 man/roxylint/meta.R diff --git a/DESCRIPTION b/DESCRIPTION index 4a65dae7..22baeab7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -26,7 +26,7 @@ Encoding: UTF-8 Language: en-GB URL: https://genentech.github.io/jmpost/ BugReports: https://github.com/Genentech/jmpost/issues -Roxygen: list(markdown = TRUE, packages = "roxytypes") +Roxygen: list(markdown = TRUE, packages = "roxytypes", roclets = c("namespace", "rd", "roxylint::roxylint")) Depends: R (>= 4.1.0) Imports: @@ -134,4 +134,4 @@ RdMacros: Rdpack LazyData: true Config/roxygen2/version: 8.0.0 Config/Needs/documentation: - roxytypes + roxytypes, roxylint diff --git a/man/roxylint/meta.R b/man/roxylint/meta.R new file mode 100644 index 00000000..6f55b14f --- /dev/null +++ b/man/roxylint/meta.R @@ -0,0 +1,8 @@ +list( + linters = list( + title = roxylint::tidy_title, + param = roxylint::tidy_param, + return = roxylint::tidy_return, + seealso = roxylint::tidy_seealso + ) +) From 011896199173e1c365fc1a02a67c5c2494b1ab71 Mon Sep 17 00:00:00 2001 From: Daniel Sabanes Bove Date: Mon, 25 May 2026 14:40:52 +0800 Subject: [PATCH 2/3] define param linter in line to no longer check sentence case --- man/roxylint/meta.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/roxylint/meta.R b/man/roxylint/meta.R index 6f55b14f..0fa3623f 100644 --- a/man/roxylint/meta.R +++ b/man/roxylint/meta.R @@ -1,7 +1,9 @@ list( linters = list( title = roxylint::tidy_title, - param = roxylint::tidy_param, + param = function(x, ...) { + roxylint::lint_full_stop(x, ...) + }, return = roxylint::tidy_return, seealso = roxylint::tidy_seealso ) From f25e8edca0fb239c4a482973743a77a0b396b04e Mon Sep 17 00:00:00 2001 From: Daniel Sabanes Bove Date: Mon, 25 May 2026 14:42:30 +0800 Subject: [PATCH 3/3] try to add a separate typed linter too but does not help --- man/roxylint/meta.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man/roxylint/meta.R b/man/roxylint/meta.R index 0fa3623f..31b6c6a1 100644 --- a/man/roxylint/meta.R +++ b/man/roxylint/meta.R @@ -4,6 +4,9 @@ list( param = function(x, ...) { roxylint::lint_full_stop(x, ...) }, + typed = function(x, ...) { + roxylint::lint_full_stop(x, ...) + }, return = roxylint::tidy_return, seealso = roxylint::tidy_seealso )