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

tests: check coding style #15

Open
cdragan opened this issue Sep 20, 2016 · 1 comment
Open

tests: check coding style #15

cdragan opened this issue Sep 20, 2016 · 1 comment
Assignees
Milestone

Comments

@cdragan
Copy link
Member

cdragan commented Sep 20, 2016

Write a Kos script which checks coding style.

Update source code to correct any coding style errors.

@cdragan cdragan added this to the v0.1 milestone Sep 20, 2016
@cdragan cdragan self-assigned this Sep 20, 2016
@cdragan
Copy link
Member Author

cdragan commented Mar 26, 2017

One idea is to use clang-format to automatically format source code.

I tried clang-format-4.0, but it seems to be sub-par. In many cases it is inconsistent, for example it can format variable names to be aligned vertically for consecutive variable definitions, but it does so unreliably, some variable names are incorrectly indented for no reason. It also has problems with correctly placing '' in pointer variables, sometimes it places '' correctly, sometimes not.

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

No branches or pull requests

1 participant