aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
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