Skip to content

Commit

Permalink
remove lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomnl committed Jun 12, 2024
1 parent 64c815b commit ad6b5c8
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,64 +170,6 @@ jobs:
flake8 $(cat ../workflow_artifacts/changed_repositories.list)
fi
# lintr:
# name: Lint R scripts
# needs: setup
# runs-on: ubuntu-latest
# strategy:
# matrix:
# r-version: [4.4.0]
# steps:
# # checkout the repository to master
# # and use it as the current working directory
# - uses: actions/checkout@v2
# with:
# fetch-depth: 1
# - uses: actions/download-artifact@v2
# with:
# name: Workflow artifacts
# path: ../workflow_artifacts/
# - uses: r-lib/actions/setup-r@v2
# with:
# r-version: ${{ matrix.r-version }}
# - name: Cache R packages
# uses: actions/cache@v2
# with:
# path: ${{ env.R_LIBS_USER }}
# key: r_cache_1${{ matrix.r-version }}
# - name: Install non-R lintr dependencies
# run: sudo apt-get install libcurl4-openssl-dev
# - name: Install lintr
# run: |
# install.packages('remotes')
# remotes::install_cran("lintr", force=TRUE)
# shell: Rscript {0}
# - name: lintr
# run: |
# library(lintr)
# linters <- with_defaults(line_length_linter = NULL,
# object_name_linter = NULL,
# object_usage_linter = NULL,
# cyclocomp_linter(complexity_limit = 25))
# con <- file("../workflow_artifacts/changed_repositories.list", "r")
# status <- 0
# while (TRUE) {
# repo <- readLines(con, n = 1)
# if (length(repo) == 0) {
# break
# }
# lnt <- lint_dir(repo, relative_path=T, linters=linters)
# if (length(lnt) > 0) {
# status <- 1
# for (l in lnt) {
# rel_path <- paste(repo, l$filename, sep="/")
# write(paste(paste(rel_path, l$line_number, l$column_number, sep=":"), l$message), stderr())
# }
# }
# }
# quit(status = status)
# shell: Rscript {0}

# Planemo test the changed repositories, each chunk creates an artifact
# containing HTML and JSON reports for the executed tests
test:
Expand Down

0 comments on commit ad6b5c8

Please sign in to comment.