You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
585 B
24 lines
585 B
--- |
|
kind: pipeline |
|
type: docker |
|
name: default |
|
|
|
steps: |
|
- name: lintr |
|
image: jupyter/datascience-notebook |
|
commands: |
|
- export TAR="/bin/tar" |
|
- Rscript -e 'devtools::install_github("jimhester/lintr")' |
|
# Lint the document, printing output. |
|
- | |
|
Rscript -e 'lintr::lint_dir( |
|
path=".", pattern=rex::rex(".", one_of("Rr"), maybe("md"), end) |
|
)' |
|
# Return non-zero exit code (no output is printed). |
|
- | |
|
Rscript -e 'quit( |
|
save="no", |
|
status=length( |
|
lintr::lint_dir(path=".", pattern=rex::rex(".", one_of("Rr"), maybe("md"), end)) |
|
) |
|
)'
|
|
|