Sha256: 0f1a7a64354f178642f658ed38094838241570c3f4aaeb16a0121939be09c2c7

Contents?: true

Size: 754 Bytes

Versions: 48

Compression:

Stored size: 754 Bytes

Contents

library(lintr)

linters <- list(
  a = line_length_linter(80),
  b = camel_case_linter,
  c = assignment_linter,
  d = commas_linter,
  e = absolute_paths_linter
)

files <- list.files(path = "exercises", pattern = ".+\\.R$", recursive = TRUE, full.names = TRUE)
lints <- lintr:::flatten_lints(lapply(files, function(file) {
  if (interactive()) {
    message(".", appendLF = FALSE)
  }
  lint(file, linters, parse_settings = FALSE)
}))
if (interactive()) {
  message()
}
lints <- lintr:::reorder_lints(lints)
class(lints) <- "lints"

has_lints <- length(lints) > 0
lint_output <- NULL
if (has_lints) {
  lint_output <- paste(collapse = "\n", capture.output(print(lints)))
}

testthat::expect(!has_lints, paste(sep = "\n", "Not lint free", lint_output))

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
trackler-2.1.0.50 tracks/r/bin/run_lints.R
trackler-2.1.0.49 tracks/r/bin/run_lints.R
trackler-2.1.0.48 tracks/r/bin/run_lints.R
trackler-2.1.0.47 tracks/r/bin/run_lints.R
trackler-2.1.0.46 tracks/r/bin/run_lints.R
trackler-2.1.0.45 tracks/r/bin/run_lints.R
trackler-2.1.0.44 tracks/r/bin/run_lints.R
trackler-2.1.0.43 tracks/r/bin/run_lints.R
trackler-2.1.0.42 tracks/r/bin/run_lints.R
trackler-2.1.0.41 tracks/r/bin/run_lints.R
trackler-2.1.0.40 tracks/r/bin/run_lints.R
trackler-2.1.0.39 tracks/r/bin/run_lints.R
trackler-2.1.0.38 tracks/r/bin/run_lints.R
trackler-2.1.0.37 tracks/r/bin/run_lints.R
trackler-2.1.0.36 tracks/r/bin/run_lints.R
trackler-2.1.0.34 tracks/r/bin/run_lints.R
trackler-2.1.0.33 tracks/r/bin/run_lints.R
trackler-2.1.0.32 tracks/r/bin/run_lints.R
trackler-2.1.0.31 tracks/r/bin/run_lints.R
trackler-2.1.0.30 tracks/r/bin/run_lints.R