Skip to content

Commit a4565eb

Browse files
authored
feat: ✨ add Jarl linter (#138)
1 parent 4dc09ab commit a4565eb

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

template/.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"donjayamanne.githistory",
77
"felipecaputo.git-project-manager",
88
"Posit.air-vscode",
9+
"EtienneBacher.jarl-vscode",
910
"GitHub.vscode-pull-request-github",
1011
"quarto.quarto",
1112
"vivaxy.vscode-conventional-commits",

template/justfile.jinja

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ install-deps:
3434

3535
# Install development dependencies
3636
install-dev-deps:
37+
uv tool install jarl-linter
3738
uv tool install air-formatter
3839
{%- endif %}
3940

@@ -62,7 +63,7 @@ format-r:
6263
{%- endif %}
6364

6465
# Run all check recipes
65-
check-all: check-spelling check-urls
66+
check-all: check-spelling check-urls {{ 'check-r' if workshop_type == 'r' }}
6667

6768
# Check for spelling errors in files
6869
check-spelling:
@@ -77,6 +78,12 @@ check-urls:
7778
--exclude "github\.com" \
7879
--exclude-path "_badges.qmd"
7980

81+
{% if workshop_type == "r" -%}
82+
# Lint R code for any potential issues
83+
check-r:
84+
uvx --from jarl-linter jarl check .
85+
{%- endif %}
86+
8087
# Run all build recipes
8188
build-all: build-contributors build-readme build-website
8289

0 commit comments

Comments
 (0)