Initial code
This commit is contained in:
commit
f32cb5dc09
6
.pre-commit-hooks.yaml
Normal file
6
.pre-commit-hooks.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
- id: ameba
|
||||||
|
name: Ameba
|
||||||
|
description: Check Crystal files using ameba
|
||||||
|
entry: bin/ameba.sh
|
||||||
|
language: script
|
||||||
|
files: (\.cr)$
|
9
bin/ameba.sh
Executable file
9
bin/ameba.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if command ameba != 0; then
|
||||||
|
echo "Ameba needs to be installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ameba "$@"
|
||||||
|
exit $?
|
Loading…
Reference in New Issue
Block a user