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

feat(#297): New rule: Prefer Unquoted Atoms #355

Merged
merged 8 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ identified with `(since ...)` for convenience purposes.
- [State Record and Type](doc_rules/elvis_style/state_record_and_type.md)
- [Used Ignored Variable](doc_rules/elvis_style/used_ignored_variable.md)
- [Variable Naming Convention](doc_rules/elvis_style/variable_naming_convention.md)
- [Prefer Unquoted Atoms](doc_rules/elvis_style/prefer_unquoted_atoms.md)
bormilan marked this conversation as resolved.
Show resolved Hide resolved

## Project rules

Expand Down
15 changes: 15 additions & 0 deletions doc_rules/elvis_style/prefer_unquoted_atoms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Prefer unquoted atoms
bormilan marked this conversation as resolved.
Show resolved Hide resolved

Do not use quotes on atoms that are not need it.
bormilan marked this conversation as resolved.
Show resolved Hide resolved

> Works on `.beam` file? No.

## Options

- None.

## Example

```erlang
{elvis_style, prefer_unquoted_atoms, #{}}
```
Loading