-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
39 lines (32 loc) · 1.06 KB
/
justfile
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
usage:
@echo "Usage: make <task>"
@echo "Tasks:"
@echo " lint-check Lint analysis with statix"
@echo " lint Lint with statix"
@echo " format-check Check formatting with alejandra"
@echo " format Format with alejandra"
@echo " deadcode-check Dead code analysis with deadnix"
@echo " deadcode Remove dead code with deadnix"
@echo " fix-all Run format, deadcode, and lint"
@echo " check-all Run format-check, deadcode-check, and lint-check"
@exit 0
fix-all: format deadcode lint
check-all: format-check deadcode-check lint-check
lint-check:
@echo "Checking anti-pattern issues with statix..."
statix check
lint:
@echo "Linting with statix..."
statix fix
format-check:
@echo "Checking formatting issues with alejandra..."
alejandra -c .
format:
@echo "Formatting with alejandra..."
alejandra .
deadcode-check:
@echo "Checking for dead codes with deadnix..."
deadnix
deadcode:
@echo "Removing dead codes with deadnix..."
deadnix -e