Initial code

This commit is contained in:
Roberto Alsina 2023-06-16 14:04:21 -03:00
commit f32cb5dc09
2 changed files with 15 additions and 0 deletions

6
.pre-commit-hooks.yaml Normal file
View 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
View File

@ -0,0 +1,9 @@
#!/bin/sh
if command ameba != 0; then
echo "Ameba needs to be installed"
exit 1
fi
ameba "$@"
exit $?