Skip to content

docs: Spanish as primary language, English as secondary #12

docs: Spanish as primary language, English as secondary

docs: Spanish as primary language, English as secondary #12

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
name: lint
permissions: read-all
# Cancel a superseded run (e.g. a newer push to the same ref) so its minutes
# are not wasted completing.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
# Source-hygiene gate: no bare stop()/warning() in R/ — every condition
# must be raised through ent_abort/cli::cli_warn/rlang::cnd_signal with a
# stable class (see Task 28). Runs without R so it stays fast.
grep-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: No bare stop()/warning() in R/
run: |
if grep -rnE '\b(stop|warning)\s*\(' R/; then
echo "Bare stop()/warning() without a condition class are forbidden in R/."
exit 1
fi
echo "No bare stop()/warning() found in R/."