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

Add braces around blocks. #999

Merged
merged 4 commits into from
Nov 21, 2022
Merged

Conversation

corycrean
Copy link
Contributor

  • Add braces around blocks.
  • Add a check for braces to clang-tidy.

Description

This PR addresses #854.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Base: 50.94% // Head: 50.94% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (e581b21) compared to base (6e0fce3).
Patch coverage: 20.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #999      +/-   ##
==========================================
- Coverage   50.94%   50.94%   -0.00%     
==========================================
  Files         378      378              
  Lines       31658    31659       +1     
==========================================
  Hits        16126    16126              
- Misses      15532    15533       +1     
Impacted Files Coverage Δ
...lude/moveit/collision_detection/collision_common.h 83.88% <ø> (ø)
.../collision_detection/test_collision_common_panda.h 98.73% <ø> (ø)
...on/include/moveit/collision_detection/world_diff.h 44.45% <ø> (ø)
...eit_core/collision_detection/src/collision_env.cpp 72.58% <ø> (ø)
..._core/collision_detection/src/collision_matrix.cpp 37.15% <ø> (ø)
...llision_detection/src/collision_octomap_filter.cpp 0.00% <ø> (ø)
...t_core/collision_detection/src/collision_tools.cpp 0.00% <ø> (ø)
moveit_core/collision_detection/src/world.cpp 88.11% <ø> (ø)
moveit_core/collision_detection/src/world_diff.cpp 85.19% <ø> (ø)
...ion_bullet/src/bullet_integration/bullet_utils.cpp 64.77% <ø> (ø)
... and 79 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mergify
Copy link

mergify bot commented Jan 18, 2022

This pull request is in conflict. Could you fix it @corycrean?

@corycrean corycrean mentioned this pull request Jan 21, 2022
6 tasks
Copy link
Member

@henningkayser henningkayser left a comment

Choose a reason for hiding this comment

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

Great readibility improvement! I think in theory there is nothing that could really go wrong, but this is really a lot to review

Copy link
Contributor

@jliukkonen jliukkonen left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@mergify
Copy link

mergify bot commented Feb 4, 2022

This pull request is in conflict. Could you fix it @corycrean?

1 similar comment
@mergify
Copy link

mergify bot commented Sep 27, 2022

This pull request is in conflict. Could you fix it @corycrean?

@tylerjw
Copy link
Member

tylerjw commented Sep 27, 2022

Wow, this is a huge change. Thank you for doing this work. I'm happy to merge this if you don't mind rebasing so it can be applied.

@tylerjw
Copy link
Member

tylerjw commented Nov 17, 2022

@corycrean I'm sorry this got so out of date and has so many conflicts. Do you think you could rebase this and make it so it could be merged?

.clang-tidy Outdated Show resolved Hide resolved
// Return first feasible solution
return true;
}
Copy link
Member

Choose a reason for hiding this comment

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

If you run pre-commit does the formatting of this get fixed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately no. But I just fixed this manually.

@tylerjw tylerjw merged commit 04a449f into moveit:main Nov 21, 2022
@@ -11,6 +11,7 @@ Checks: '-*,
modernize-make-unique,
modernize-avoid-bind,
misc-unused-parameters,
readability-braces-around-statements,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a formatting issue got through in this PR

@ChrisThrasher
Copy link
Contributor

I wanted to point out how the argument that drove the creation of #854 only applies to codebases without autoformatters. Misleading indentation is a real problem but it's not a problem MoveIt has so there was no need to add this check to address that. We already have no misleading indentation.

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.

6 participants