-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
41 lines (32 loc) · 1.27 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
40
41
# ------------------------------------------------------------------------------
# Prettier
# ------------------------------------------------------------------------------
# Check files are prettier formatted
prettier-check:
prettier . --check
# Format files with prettier
prettier-format:
prettier . --check --write
# ------------------------------------------------------------------------------
# Justfile
# ------------------------------------------------------------------------------
# Format the justfile
just-format:
just --fmt --unstable
# Check if the justfile is formatted correctly
just-format-check:
just --fmt --check --unstable
# ------------------------------------------------------------------------------
# Git Leaks
# ------------------------------------------------------------------------------
# Detect secrets in the repos
gitleaks-detect:
gitleaks detect --source .
# ------------------------------------------------------------------------------
# Git Hooks
# ------------------------------------------------------------------------------
# Install pre commit hook to run on all commits
install-git-hooks:
cp -f githooks/pre-commit .git/hooks/pre-commit
cp -f githooks/post-commit .git/hooks/post-commit
chmod ug+x .git/hooks/*