From 3aef3ee55e9cdcaad17647ae600385457fa4a84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mil=C3=A1n=20B=C3=B3r?= Date: Tue, 10 Sep 2024 19:24:39 +0200 Subject: [PATCH] feat(#297): add RULES.md doc --- RULES.md | 1 + doc_rules/elvis_style/prefer_unquoted_atoms.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 doc_rules/elvis_style/prefer_unquoted_atoms.md diff --git a/RULES.md b/RULES.md index da5561e..12f5f62 100644 --- a/RULES.md +++ b/RULES.md @@ -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) ## Project rules diff --git a/doc_rules/elvis_style/prefer_unquoted_atoms.md b/doc_rules/elvis_style/prefer_unquoted_atoms.md new file mode 100644 index 0000000..673b41d --- /dev/null +++ b/doc_rules/elvis_style/prefer_unquoted_atoms.md @@ -0,0 +1,15 @@ +# Prefer unquoted atoms + +Do not use quotes on atoms that are not need it. + +> Works on `.beam` file? No. + +## Options + +- None. + +## Example + +```erlang +{elvis_style, prefer_unquoted_atoms, #{}} +```