CR

Ameba & crystal tool format

Linting with Ameba and formatting with crystal tool format for consistent Crystal codebases

Details

Language / Topic
crystalCrystal
Category
Linter / Formatter

Rules

balanced
- Run `crystal tool format` before every commit to canonicalize indentation and whitespace — use `crystal tool format --check` in CI to fail on unformatted files.
- Add Ameba to `shard.yml` as a development dependency and run `./bin/ameba` in CI to enforce style, complexity, and naming rules.
- Configure Ameba rules in `.ameba.yml` — enable `Lint/UnusedArgument`, `Style/LargeNumbers`, and `Performance/AnyAfterFilter` at minimum.
- Use `# ameba:disable RuleName` inline comments sparingly to suppress false positives — always add a comment explaining why the rule is suppressed.