Skip to content

Fix: Modernize for Crystal 1.20 and add ameba linting#93

Open
renich wants to merge 1 commit into
amberframework:masterfrom
renich:feature/crystal-1.20-polish
Open

Fix: Modernize for Crystal 1.20 and add ameba linting#93
renich wants to merge 1 commit into
amberframework:masterfrom
renich:feature/crystal-1.20-polish

Conversation

@renich

@renich renich commented Jun 11, 2026

Copy link
Copy Markdown

Hello maintainers! 👋

This PR brings the codebase up-to-date with Crystal 1.20, resolving deprecations, resolving strict typing/Nil issues, and integrating ameba for linting. We've also addressed the linting issues that ameba surfaced to ensure the codebase remains clean.

Changes included:

  • Add ameba to development dependencies and created .ameba.yml.
  • Fix not_nil! warnings in DB module by properly assigning and validating the connection URL.
  • Renamed set_database_to_schema to extract_schema_name for better semantics.
  • Addressed various style/syntax improvements guided by ameba.

Note: This PR was directed and tested by Rénich, who takes full responsibility for the code. Gemini AI assisted with the development.

Thank you for your time and for maintaining this project! Please let us know if any further changes are needed.

- Add and run ameba for linting.
- Resolve not_nil! and syntax/style issues reported by ameba.
- Ignore pedantic .ameba.yml rules like BlockParameterName.
- Rename set_database_to_schema to extract_schema_name for accuracy.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
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