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

Auto-formatting tool? #55

Open
kytrinyx opened this issue Nov 9, 2022 · 2 comments
Open

Auto-formatting tool? #55

kytrinyx opened this issue Nov 9, 2022 · 2 comments

Comments

@kytrinyx
Copy link
Member

kytrinyx commented Nov 9, 2022

Is there an autoformatting tool for Chapel?

I'm wondering if there's something I could use to make sure that test suites that are generated follow standard guidelines or practices.

@lucaferranti
Copy link
Member

unfortunately, not that I know of.

Also, given Chapel ecosystem is still relatively small, I don't think there are widely spread style guidelines like e.g. PEP8.

the only guidelines we are following currently are these: https://chapel-lang.org/docs/developer/bestPractices/StandardModuleStyle.html?highlight=style which only deal with naming conventions. Those are also the only style guidelines I am aware of, so I guess that's not even enough for an autoformatter?

@kytrinyx
Copy link
Member Author

I guess that's not even enough for an autoformatter?

Sometimes there's a minimal tool that will ensure that indentation is consistent, and that extraneous blank lines get deleted, and sometimes also things like spacing around binary operators, normalizing spacing after commas in lists, etc. If there's nothing that's not a problem. We can either live with some extra blank lines, or we might write a little tool later if we care enough to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants