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

Fixed linters in point cloud codec branch #11

Closed

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Jul 24, 2023

No description provided.

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from john-maidbot July 24, 2023 11:02
@ahcorde ahcorde self-assigned this Jul 24, 2023
@john-maidbot
Copy link
Collaborator

john-maidbot commented Jul 24, 2023

When I run the colcon test command, it is just showing me the divergences in the code style.

But is there some command you are running to actually auto format and fix those divergences based on some style guide? I'd like to be able to do this on my end too so you arent having to PR changes like this. I tried ament_clang_format reformat but that does not seem to make colcon test happy 😅 (I will try this again on rolling tonight. maybe its a clang version issue)

@ahcorde
Copy link
Collaborator Author

ahcorde commented Jul 24, 2023

@john-maidbot

the only one that I now that it's doing this automatically is ament_uncrustify. You can run

ament_uncrustify --reformat <paths>

The others one I'm fixing them one by one

@john-maidbot
Copy link
Collaborator

john-maidbot commented Jul 24, 2023

Ah interesting, it looks like there is a conflict of some kind between ament_uncrustify and ament_clang_format (ament/ament_lint/issues/425 ament/ament_lint/issues/158)

It would be nice if this were "auto"-mated rather than having to fix things manually. but i mostly just care about consistency. so for now we can lint by:

  • running ament_uncrustify --reformat <paths> to maybe give us a head-start
  • running colcon test ....
  • fixing lingering failures by hand until colcon test .... is happy

@ahcorde
Copy link
Collaborator Author

ahcorde commented Jul 25, 2023

I think we can close this one #3 (comment)

@ahcorde ahcorde closed this Jul 25, 2023
@ahcorde ahcorde deleted the ahcorde/fix-point-cloud-codec/linters branch August 24, 2023 12:19
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.

2 participants