Static code analysis · Crystal

Keep your code Crystal clear
A fast, modular linter for Crystal — hundreds of rules, autocorrection and editor support, shipped as a single binary.
shard.yml
development_dependencies:
ameba:
github: crystal-ameba/amebaThen shards install && bin/ameba. Also on Homebrew, Docker and from source.
~/projects/my-shard — ameba
$ ameba
Inspecting 108 files
...............F.....................FF..........
src/ameba/formatter/flycheck_formatter.cr:6:37
W Lint/UnusedArgument: Unused argument `location`.
> source.issues.each do |issue, location|
^------^
src/ameba/formatter/base_formatter.cr:16:7 [Correctable]
C Style/RedundantReturn: Redundant `return` detected
> return size += issues.size
^------------------------^
Finished in 389.45 milliseconds
108 inspected, 2 failures — run ameba --fix to autocorrect