Skip to content

chore: introduce ameba lint baseline - #9

Merged
hahwul merged 1 commit into
mainfrom
chore/add-ameba-lint
May 22, 2026
Merged

chore: introduce ameba lint baseline#9
hahwul merged 1 commit into
mainfrom
chore/add-ameba-lint

Conversation

@hahwul

@hahwul hahwul commented May 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add ameba as a development dependency and a project .ameba.yml
  • Disable `Naming/QueryBoolMethods` because the public API uses `result.success` / `obj.active` (no trailing `?`)
  • Change three FFI callback return types from `Void` to `Nil` in `src/fm/session.cr` — `Void` outside a `lib` block is flagged by ameba and is not the Crystal convention
  • Flesh out `shard.yml` metadata (repository, homepage, documentation)

Ameba now passes with 0 findings and the spec suite (170 examples) stays green.

Test plan

  • crystal run lib/ameba/bin/ameba.cr → 26 inspected, 0 failures
  • crystal spec → 170 examples, 0 failures

- Add ameba as a development dependency with a project .ameba.yml
- Disable Naming/QueryBoolMethods since public API uses `result.success`
  and `obj.active` (no trailing ?)
- Change FFI callback return types from Void to Nil in src/fm/session.cr
  (Void outside of `lib` is flagged by ameba and Crystal convention)
- Flesh out shard.yml metadata (repository, homepage, documentation)
@hahwul
hahwul merged commit 0f491f5 into main May 22, 2026
@hahwul
hahwul deleted the chore/add-ameba-lint branch May 22, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant