-
Notifications
You must be signed in to change notification settings - Fork 1k
Astyle deployement #377
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
Astyle deployement #377
Conversation
2cb773d
to
11faa59
Compare
Add code style definition file for Astyle Add python script to launch Astyle on desired sources Add ignore path file http://astyle.sourceforge.net/ Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm so, locally, we just run astyle.py against our local folder before commiting to see what needs fixing? |
yes. |
Are you using an IDE which has an Astyle plugin? |
No, I mainly develop under Linux and use gvim. I do all using command lines 😄 |
Hmm, gvim has come on quite a way I may give it a try. |
@fpistm need more docs on what the style items in the config above are, or a means to convert existing code... as it stands I'm clueless what Astyle's error report is actually saying, the output from it does not match the code I submitted. |
The output is the code formatted. Simply apply astyle with the config provided then your code will be ok. |
AStyle will be used for coding style checking.
Only sources files (
*.h
,*.hpp
,*.c
,*.cpp
) from the following lists will be check:.astyleignore
file contains list of folder to ignore.Hereafter the code style definition applied (
.astylerc
):Python script
astyle.py
is provided to ease use of AStyle: