Use Ameba

This commit is contained in:
Alex Ling 2020-04-08 06:40:39 +00:00
parent 8b184ed48d
commit d33cae7618
4 changed files with 20 additions and 0 deletions

9
.ameba.yml Normal file
View File

@ -0,0 +1,9 @@
Lint/UselessAssign:
Excluded:
- src/routes/*
- src/server.cr
Lint/UnusedArgument:
Excluded:
- src/routes/*
Metrics/CyclomaticComplexity:
Enabled: false

View File

@ -22,6 +22,9 @@ run:
test: test:
crystal spec crystal spec
check:
crystal tool format --check && ./bin/ameba
install: install:
cp mango $(INSTALL_DIR)/mango cp mango $(INSTALL_DIR)/mango

View File

@ -1,5 +1,9 @@
version: 1.0 version: 1.0
shards: shards:
ameba:
github: crystal-ameba/ameba
version: 0.12.0
baked_file_system: baked_file_system:
github: schovi/baked_file_system github: schovi/baked_file_system
version: 0.9.8 version: 0.9.8

View File

@ -19,3 +19,7 @@ dependencies:
github: crystal-lang/crystal-sqlite3 github: crystal-lang/crystal-sqlite3
baked_file_system: baked_file_system:
github: schovi/baked_file_system github: schovi/baked_file_system
development_dependencies:
ameba:
github: crystal-ameba/ameba