diff --git a/.ameba.yml b/.ameba.yml new file mode 100644 index 0000000..e61b3b3 --- /dev/null +++ b/.ameba.yml @@ -0,0 +1,9 @@ +Lint/UselessAssign: + Excluded: + - src/routes/* + - src/server.cr +Lint/UnusedArgument: + Excluded: + - src/routes/* +Metrics/CyclomaticComplexity: + Enabled: false diff --git a/Makefile b/Makefile index 199745b..4d08148 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ run: test: crystal spec +check: + crystal tool format --check && ./bin/ameba + install: cp mango $(INSTALL_DIR)/mango diff --git a/shard.lock b/shard.lock index 5f28d68..c84ac06 100644 --- a/shard.lock +++ b/shard.lock @@ -1,5 +1,9 @@ version: 1.0 shards: + ameba: + github: crystal-ameba/ameba + version: 0.12.0 + baked_file_system: github: schovi/baked_file_system version: 0.9.8 diff --git a/shard.yml b/shard.yml index a4696fc..8ebfbf8 100644 --- a/shard.yml +++ b/shard.yml @@ -19,3 +19,7 @@ dependencies: github: crystal-lang/crystal-sqlite3 baked_file_system: github: schovi/baked_file_system + +development_dependencies: + ameba: + github: crystal-ameba/ameba