Skip to content

added rOpenSci badge #534

added rOpenSci badge

added rOpenSci badge #534

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, dev]
pull_request:
branches: [main, dev]
name: lint
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- 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: |
library(lintr)
style_rules <- list(
absolute_path_linter(), assignment_linter(), brace_linter(),
commas_linter(), commented_code_linter(),
equals_na_linter(), function_left_parentheses_linter(),
infix_spaces_linter(), whitespace_linter(),
nonportable_path_linter(),
pipe_continuation_linter(), seq_linter(), quotes_linter(),
spaces_inside_linter(), spaces_left_parentheses_linter(),
T_and_F_symbol_linter(), todo_comment_linter(),
trailing_blank_lines_linter(), trailing_whitespace_linter(),
unnecessary_concatenation_linter()
)
excluded_files <- c("data-raw/", "R/RcppExports.R", "tests/")
lint_package(linters = style_rules, exclusions = excluded_files)
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true