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

Modules called ignore are incorrectly formatted #247

Closed
elbrujohalcon opened this issue Apr 29, 2021 · 7 comments
Closed

Modules called ignore are incorrectly formatted #247

elbrujohalcon opened this issue Apr 29, 2021 · 7 comments
Labels
bug Something isn't working
Milestone

Comments

@elbrujohalcon
Copy link
Collaborator

Describe the bug

Parentheses are removed when formatting a module called ignore.

To Reproduce

Try to format this…

-module(ignore).

It's formatted as…

-module ignore.

Expected behavior

-module(ignore).
@elbrujohalcon elbrujohalcon added the bug Something isn't working label Apr 29, 2021
@elbrujohalcon elbrujohalcon added this to the 1.1.0 milestone Apr 29, 2021
@paulo-ferraz-oliveira
Copy link
Contributor

It's an easter egg.

@elbrujohalcon
Copy link
Collaborator Author

🥚

@paulo-ferraz-oliveira
Copy link
Contributor

On a more serious note I find that not being able to express ignore => [atom()], in the options, is hindering. I had to do "src/module.erl" (didn't check without the src).

@elbrujohalcon
Copy link
Collaborator Author

You mean in rebar.config's format section, right?

@paulo-ferraz-oliveira
Copy link
Contributor

Yes.

@elbrujohalcon
Copy link
Collaborator Author

☝️ #248

vkatsuba added a commit to vkatsuba/rebar3_format that referenced this issue May 5, 2021
@vkatsuba vkatsuba mentioned this issue May 5, 2021
vkatsuba added a commit to vkatsuba/rebar3_format that referenced this issue May 5, 2021
vkatsuba added a commit to vkatsuba/rebar3_format that referenced this issue May 5, 2021
elbrujohalcon pushed a commit that referenced this issue May 6, 2021
Related to #247
@elbrujohalcon
Copy link
Collaborator Author

Fixed with #253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants