Skip to content
Snippets Groups Projects
r.yaml 777 B
# GitLab CI configuration file for linting R codes
#
# SPDX-FileCopyrightText: 2025 Helmholtz-Zentrum hereon GmbH
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor Carsten Lemmen <carsten.lemmen@hereon.de

lint-r:
  image: rocker/verse:latest
  stage: lint
  before_script:
    - R -e 'install.packages("lintr", repos="http://cran.rstudio.com")'
  script:
    - Rscript -e 'lintr::lint("./testcases/light/model_comparison.R", linters = c(lintr::linters_with_defaults(assignment_linter = NULL)))'
    - Rscript -e 'lintr::lint("./testcases/estuary/plot_output.R", linters = c(lintr::linters_with_defaults(assignment_linter = NULL)))'
    - Rscript -e 'lintr::lint("./testcases/estuary/setup_data.R", linters = c(lintr::linters_with_defaults(assignment_linter = NULL)))'