aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-03-23 20:52:55 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-04-05 00:31:21 +0200
commitc7e9fb9dac3c0a2b4a0c6c2d5d34a12175aac096 (patch)
treed9cafdea3432d7b5a13d3a47bfbe0808c554abb0 /justfile
parent99fd689d01adeaa6847901c35172b533119fccda (diff)
Adapt arch build to use meson
Diffstat (limited to 'justfile')
-rw-r--r--justfile16
1 files changed, 15 insertions, 1 deletions
diff --git a/justfile b/justfile
index 37ddc01..4313969 100644
--- a/justfile
+++ b/justfile
@@ -3,11 +3,25 @@ build:
meson setup _build
meson compile -C _build
+# Code Quality #################################################################
+
+test:
+ cargo test
+
+coverage:
+ cargo tarpaulin
+
+format:
+ cargo fmt && cargo clippy --fix
+
+lint:
+ cargo fmt -- --check && cargo clippy
+
# Internationalization / Localization ##########################################
# Finds all files that can be translated and adds them to the POTFILES
find_translatable_files:
- find ./ -not -path '*/.*' -type f -name "*.rs" -exec grep -l "tr!(\"\|gettext" {} \; | sed 's|^\./||' | sort > po/POTFILES
+ find ./src -not -path '*/.*' -type f -name "*.rs" -exec grep -l "tr!(\"\|gettext" {} \; | sed 's|^\./||' | sort > po/POTFILES
find ./data -not -path '*/.*' -name "*.in.in" -type f | sed 's|^\./||' | sort >> po/POTFILES
extract_strings: find_translatable_files