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

New rule: Prefer Unquoted Atoms #297

Open
paulo-ferraz-oliveira opened this issue Mar 1, 2023 · 0 comments
Open

New rule: Prefer Unquoted Atoms #297

paulo-ferraz-oliveira opened this issue Mar 1, 2023 · 0 comments
Labels
Milestone

Comments

@paulo-ferraz-oliveira
Copy link
Collaborator

paulo-ferraz-oliveira commented Mar 1, 2023

Name

prefer_unquoted_atoms

Brief Description

Prefer unquoted atoms unless quotes are necessary.

Reasoning

This one is not a technical concern, but a readability concern. The code will behave identical in both ways.

Refactoring Proposal

elvis shall warn that your atoms are quoted when they don't have to be.

Note: if you're using a formatter this could/should already be taken into account by it.

Origin

Inspired by Credo's https://hexdocs.pm/credo/Credo.Check.Readability.PreferUnquotedAtoms.html.

@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Prefer Unquoted Atoms New rule: Prefer Unquoted Atoms Mar 1, 2023
@elbrujohalcon elbrujohalcon modified the milestones: eventually 🙄, 3.1.0 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants