-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 869 Bytes
/
Copy pathlint.yml
File metadata and controls
41 lines (36 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lint R
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: lintr
extra-packages: |
any::tidyr
any::dplyr
any::ggplot2
any::ggrepel
any::scales
any::moments
any::Hmisc
any::psych
any::nFactors
any::qgraph
- name: Lint
run: |
library(lintr)
lints <- lint_dir(".", pattern = "\\.R$")
if (length(lints) > 0) {
print(lints)
stop("Linting errors found")
}
cat("No linting issues found!\n")
shell: Rscript {0}