Skip to content

Commit

Permalink
test for same
Browse files Browse the repository at this point in the history
  • Loading branch information
bormilan committed Dec 5, 2024
1 parent ce448f6 commit 72c4998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc_rules/elvis_style/atom_naming_convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All atoms should be named according to the regular expression provided.
Except if it matches with a defined `forbidden_regex`.
Atoms enclosed in apostrophes have special meaning and are thus handled
by a different configuration option (use `same` if you want the same value as `regex`).
To define forbidden enclosed atoms (like the ones in `forbidden_regex` apply for `regex`), use `forbidden_enclosed_regex`.
To define forbidden enclosed atoms (like the ones in `forbidden_regex` apply for `regex`), use `forbidden_enclosed_regex`(use `same` if you want the same value as `forbidden_regex`).

Check failure on line 9 in doc_rules/elvis_style/atom_naming_convention.md

View workflow job for this annotation

GitHub Actions / md_and_yml

Line length

doc_rules/elvis_style/atom_naming_convention.md:9:101 MD013/line-length Line length [Expected: 100; Actual: 182] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md013.md

> Works on `.beam` file? Yes!
Expand All @@ -18,7 +18,7 @@ To define forbidden enclosed atoms (like the ones in `forbidden_regex` apply for
- default: `".*"`.
- `forbidden_regex :: string() | undefined`.
- default: `undefined`.
- `forbidden_enclosed_regex :: string() | undefined`.
- `forbidden_enclosed_regex :: string() | undefined | same`.
- default: `undefined`.

## Example
Expand Down
2 changes: 1 addition & 1 deletion test/style_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ verify_atom_naming_convention(Config) ->
atom_naming_convention,
#{regex => "^[a-z](_?[a-z0-9]+)*(_SUITE)?$",
forbidden_regex => "[0-9]",
forbidden_enclosed_regex => "[0-9]"},
forbidden_enclosed_regex => same},
PathForbidden).

-spec verify_no_init_lists(config()) -> any().
Expand Down

0 comments on commit 72c4998

Please sign in to comment.