exercism / chapel

Exercism exercises in Chapel.
https://exercism.org/tracks/chapel
MIT License
3 stars 4 forks source link

Auto-formatting tool? #55

Open kytrinyx opened 2 years ago

kytrinyx commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.