R/defaults.R

##' @importFrom tibble tibble
default_cran_results <- tibble::tibble(
  package = character(0),
  note = integer(0),
  ok = integer(0),
  warn = integer(0),
  error = integer(0),
  fail = integer(0)
)

default_cran_details <- tibble::tibble(
  package = character(0),
  version = character(0),
  result = character(0),
  check = character(0),
  flavors = character(0),
  n_flavors = integer(0),
  message = character(0)
)


##' @importFrom tibble tibble
##' @importFrom clisymbols symbol
##' @importFrom cli col_red col_magenta col_yellow col_blue col_cyan
foghorn_components <- list(
  `error` = c(
    symbol = clisymbols::symbol$cross,
    color = cli::col_red,
    word = "errors"
  ),
  `fail` = c(
    symbol = clisymbols::symbol$cross,
    color = cli::col_magenta,
    word = "fails"
  ),
  `warn` = c(
    symbol = clisymbols::symbol$warning,
    color = cli::col_yellow,
    word = "warnings"
  ),
  `note` = c(
    symbol = clisymbols::symbol$star,
    color = cli::col_blue,
    word = "notes"
  ),
  `has_other_issues` = c(
    symbol = clisymbols::symbol$circle_filled,
    color = cli::col_cyan,
    word = "other issues"
  ),
  `other_issue` = c(
    symbol = clisymbols::symbol$circle_filled,
    color = cli::col_cyan,
    word = "additional issues"
  )
)
fmichonneau/foghorn documentation built on Feb. 22, 2024, 1:38 a.m.