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

Fix code style #61

Merged
merged 2 commits into from
Feb 8, 2019
Merged

Fix code style #61

merged 2 commits into from
Feb 8, 2019

Conversation

mauriciovasquezbernal
Copy link
Contributor

Create a tool to (scripts/check-style.py) check/fix the code style and then run it to fix the code style of the whole project. Datapath code style was also fixed as #55 prevented potential problems with pcn_log. Automatic code generated that is not intended to be touched by the user is ignored by the script.

This is a quite invasive change but I think this is better to do now, after it all PRs must have the code style right.

@mauriciovasquezbernal mauriciovasquezbernal force-pushed the pr/fix_style branch 2 times, most recently from 766de7d to 28b6687 Compare February 8, 2019 13:00
check-style is a tool that allows to check and fix the code style.

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
./scripts/check-style.py --fix

fix the code style for all revelant files, files in other libraries, like bcc,
spdlog and viface are ignored, the same for generated files that should not be
modified by the user:
 - src/services/*/src/api
 - src/services/*/src/default-src
 - src/services/*/src/interface
 - src/services/*/src/serializer

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
Copy link
Contributor

@mbertrone mbertrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks Mauricio.

@mauriciovasquezbernal mauriciovasquezbernal merged commit 7d50eef into master Feb 8, 2019
@mauriciovasquezbernal mauriciovasquezbernal deleted the pr/fix_style branch February 8, 2019 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants