-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Consistent style of code #25
Comments
|
Nice! I personally don't care at all about style settings, but love consistent, enforced and automatically-applied style. (Can VSCode pick up these format settings?) I think if you configure to have braces I think a total reformat is fine, otherwise we'd have to distinguish reformats from new code inside upcoming PRs which is more burden. Nicer code may help other contributors in the future as well to get started. (Along with dead code and file removal) If everything is reformatted in 1 commit, you could add a style enforcing step to the compilation, thus enforcing consistent style in the future which IMO is a nice bonus. |
Yes, config file can be used with IDE in my case (VsCode I use add-on which loads config from this file automatically, we could also use in VScode option I will try to make this config better suited for current style, and then we will check how big part of code will be reformatted. |
Yeah I use GitLens a lot, too. Blame is useful. 🙂 Definitely, in this case, the reformat commit could take the last commit's place, but you have So if you manage to adapt the style so that it mostly just fixes whitespaces (indentation, whitespace around operators etc.) then even a full reformat could be a viable option. |
Wow! I haven't been aware of this option. It's great :D |
Currently, there is some mess in style of code (as a good examples can be usage of
if (...
andif(...
)TODO:
Create configs for code formatter which will help with ensuring quality and consistency of code style.
Format code (entire or at least some pieces)
The text was updated successfully, but these errors were encountered: