Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Lint/UselessAssign ameba rule again but excluding type declarations #446

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Blacksmoke16
Copy link
Member

Context

Follow up to #344 to leverage the new ExcludeTypeDeclarations configuration option added via crystal-ameba/ameba#430 instead of totally disabling the rule. Allows retaining actual useless assignments without also flagging all the bundle property macro calls.

Changelog

  • Enable Lint/UselessAssign ameba rule again but excluding type declarations
    • Fix new errors

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@Blacksmoke16 Blacksmoke16 added component:ecosystem Affects all components in the ecosystem kind:enhancement New functionality to an existing feature kind:infrastructure labels Aug 20, 2024
Comment on lines +223 to 224
# ameba:disable Lint/UselessAssign
unless env = ENV[env_key]?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reported this as crystal-ameba/ameba#468.

@Blacksmoke16 Blacksmoke16 merged commit 150c355 into master Aug 20, 2024
8 of 12 checks passed
@Blacksmoke16 Blacksmoke16 deleted the more-strict-ameba branch August 20, 2024 01:15
PallasAthenaie pushed a commit to athena-framework/dependency-injection that referenced this pull request Aug 20, 2024
PallasAthenaie pushed a commit to athena-framework/dotenv that referenced this pull request Aug 20, 2024
PallasAthenaie pushed a commit to athena-framework/framework that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ecosystem Affects all components in the ecosystem kind:enhancement New functionality to an existing feature kind:infrastructure
Development

Successfully merging this pull request may close these issues.

1 participant