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

chore: ban naked returns #1865

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented May 31, 2023

Motivation #1770 (comment).

Today I learned that a linter exists to ban naked returns.

@rootulp rootulp added the chore optional label for items that follow the `chore` conventional commit label May 31, 2023
@rootulp rootulp self-assigned this May 31, 2023

linters-settings:
nakedret:
# Ban the use of naked returns because they reduce code readability.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note: this is subjective but I expect the linter will reduce the # of nits / comments on PRs which is a net positive

@MSevey MSevey requested a review from a team May 31, 2023 16:50
@rootulp rootulp enabled auto-merge (squash) May 31, 2023 18:07
@rootulp rootulp merged commit db15dcb into celestiaorg:main May 31, 2023
@rootulp rootulp deleted the rp/ban-naked-return branch May 31, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore optional label for items that follow the `chore` conventional commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants