-
Notifications
You must be signed in to change notification settings - Fork 1
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 indenting of comments #103
Comments
@ssutjipto, I fixed the indenting on my end and pushed code. It looks correct to me when viewing in github. Can you confirm and close this issue? |
@Woolfrey Are you sure about 5 spaces? I think 2 or 4 is more common. Let me know and I can help make the changes. |
I had to use Find & Replace for all tabs and substitute in 5 spaces, so I think it should be OK now. I'll push the code to the |
@Woolfrey Since this repository is public, I feel that it's better to pick an indentation equal to a more common spacing amount that people use. Otherwise it might be annoying for people to work with the repository. |
Here is a short list of example repositories within the robotics space that follow 2 or 4 spacing for indentation. 2 spaces:
4 spaces:
Also, style is more than just the tab width so some of these repositories have their own style guide and they sometimes have a clang-format file that the IDE uses to adhere to the desired formatting. I really can't find any repository (not limited to the robotics repositories) that uses an odd number for indentation. I realise that you've changed most of these files to 5 spaces from tabs/4 spaces. But I can change this once we've settled on a number to use. |
The
2 spaces:
I find 2 spaces very difficult to discern different lines of code when I'm scanning for something particular. |
The indenting for comments is out of alignment after code is pushed and pulled again. We need to go through and rectify the spacing in all the files.
gedit
to insert 5 spaces instead of an indent when using thetab
button, so you should configure your IDE to do the same.FYI my current style is:
Here's the list:
The text was updated successfully, but these errors were encountered: