Fixed lintr & complexity issues

This commit is contained in:
2026-02-03 14:50:41 +00:00
parent fa9a4dd82e
commit ee77807d6e
6 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
#' @export
# nolint next: object_name_linter. R6Class
AdminLTEApplication <- R6::R6Class(
"AdminLTEApplication",
inherit = FrameApplication,

View File

@@ -1,5 +1,6 @@
#' @export
# nolint next: object_name_linter. R6Class
FrameApplication <- R6::R6Class(
"FrameApplication",
public = list(

View File

@@ -1,4 +1,5 @@
#' @export
# nolint next: object_name_linter. R6Class
SessionLogger <- R6::R6Class(
"SessionLogger",
public = list(
@@ -32,7 +33,9 @@ SessionLogger <- R6::R6Class(
if (getOption("debug", FALSE)) {
cat("Using client IP from HTTP_X_FORWARDED_FOR\n")
}
client_ip <- strsplit(session$request$HTTP_X_FORWARDED_FOR, ",")[[1]][[1]]
client_ip <- strsplit(
session$request$HTTP_X_FORWARDED_FOR, ","
)[[1]][[1]]
} else if ("REMOTE_ADDR" %in% names(session$request)) {
if (getOption("debug", FALSE)) {
cat("Using client IP from REMOTE_ADDR\n")
@@ -62,6 +65,7 @@ SessionLogger <- R6::R6Class(
)
#' @export
# nolint next: object_name_linter. R6Class
SessionLoggerConsole <- R6::R6Class(
"SessionLoggerConsole",
inherit = SessionLogger,
@@ -89,6 +93,7 @@ SessionLoggerConsole <- R6::R6Class(
)
#' @export
# nolint next: object_name_linter. R6Class
SessionLoggerDB <- R6::R6Class(
"SessionLoggerDB",
inherit = SessionLogger,

View File

@@ -1,4 +1,5 @@
#' @export
# nolint next: object_name_linter. R6Class
UFApplication <- R6::R6Class(
"UFApplication",
inherit = AdminLTEApplication,

View File

@@ -1,4 +1,5 @@
#' @export
# nolint next: object_name_linter. R6Class
UFDashboardApplication <- R6::R6Class(
"UFDashboardApplication",
inherit = UFApplication,

View File

@@ -1,4 +1,5 @@
#' @export
# nolint next: object_name_linter. R6Class
UFFrameApplication <- R6::R6Class(
"UFFrameApplication",
inherit = UFApplication,