intersystems / ipm

InterSystems ObjectScript Package Manager
MIT License
28 stars 19 forks source link

Ensure consistent code formatting style across entire codebase #478

Open isc-tleavitt opened 1 month ago

isc-tleavitt commented 1 month ago

There's a mix of styles right now from original / HS sources and subsequent work undertaken in the community repo. This persists in the v1 branch.

We need a systemic approach to consistent code formatting that is applied to the entire codebase (once the amount of things in flux amounts to significantly less than "the entire codebase").

isc-kiyer commented 1 month ago

@isc-tleavitt I think it would be nice to have some sort of code formatting tool to do this (similar to prettier. Perhaps we could create a prettier plugin?). I see an enhancement request for this in the language server for this already: https://github.com/intersystems/language-server/issues/293.

isc-tleavitt commented 1 month ago

We have https://github.com/intersystems/isc-codetidy which runs server-side. I've used more client-centric dev patterns for IPM though and I think that's likely to be the more common pattern for contributors.