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

refactor(tier4_state_rviz_plugin): apply clang-tidy #1589

Merged

Conversation

h-ohta
Copy link
Contributor

@h-ohta h-ohta commented Aug 15, 2022

Description

  • fix clang-tidy
    • add const &
    • add initial value
    • fix boolean condition
  • add NOLINT to avoid
    • readability-redundant-access-specifiers
  • use using to shrink type definition

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@codecov
Copy link

codecov bot commented Aug 15, 2022

Codecov Report

Merging #1589 (e747467) into main (30ddff0) will decrease coverage by 0.41%.
The diff coverage is 0.00%.

❗ Current head e747467 differs from pull request most recent head 01d0a95. Consider uploading reports for the commit 01d0a95 to get more accurate results

@@            Coverage Diff             @@
##             main    #1589      +/-   ##
==========================================
- Coverage   10.77%   10.35%   -0.42%     
==========================================
  Files        1111     1135      +24     
  Lines       78532    79598    +1066     
  Branches    18561    18538      -23     
==========================================
- Hits         8459     8240     -219     
- Misses      61350    63154    +1804     
+ Partials     8723     8204     -519     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.33% <0.00%> (-0.42%) ⬇️ Carriedforward from bb61357

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...er4_state_rviz_plugin/src/autoware_state_panel.cpp 0.00% <0.00%> (ø)
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 64.15% <0.00%> (-9.44%) ⬇️
...ocity_planner/src/utilization/path_utilization.cpp 12.96% <0.00%> (-5.96%) ⬇️
...ace_planning_algorithms/src/abstract_algorithm.cpp 77.92% <0.00%> (-2.08%) ⬇️
.../freespace_planning_algorithms/src/reeds_shepp.cpp 55.17% <0.00%> (-1.73%) ⬇️
...terpolation/test/src/test_spline_interpolation.cpp 27.81% <0.00%> (-0.89%) ⬇️
...ils/include/motion_utils/trajectory/trajectory.hpp 77.25% <0.00%> (-0.85%) ⬇️
...on/interpolation/test/src/test_zero_order_hold.cpp 31.81% <0.00%> (-0.62%) ⬇️
...tion_utils/test/src/trajectory/test_trajectory.cpp 25.05% <0.00%> (-0.55%) ⬇️
.../motion_velocity_smoother/src/trajectory_utils.cpp 2.73% <0.00%> (-0.51%) ⬇️
... and 162 more

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

Copy link
Contributor

@kenji-miyake kenji-miyake left a comment

Choose a reason for hiding this comment

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

Cool!

@kenji-miyake
Copy link
Contributor

@h-ohta By the way, refactor would be better because this PR won't change any behavior.

@h-ohta h-ohta changed the title fix: clang-tidy for tier4_state_rviz_plugin refactor(tier4_state_rviz_plugin): clang-tidy Aug 15, 2022
@h-ohta h-ohta changed the title refactor(tier4_state_rviz_plugin): clang-tidy refactor(tier4_state_rviz_plugin): suppress clang-tidy error Aug 15, 2022
@h-ohta h-ohta changed the title refactor(tier4_state_rviz_plugin): suppress clang-tidy error refactor(tier4_state_rviz_plugin): apply clang-tidy Aug 15, 2022
@h-ohta h-ohta enabled auto-merge (squash) August 15, 2022 10:03
h-ohta and others added 8 commits August 15, 2022 19:07
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
@h-ohta h-ohta force-pushed the fix/clang-tidy-tier4_state_rviz_plugin branch from e747467 to 01d0a95 Compare August 15, 2022 10:07
@h-ohta h-ohta merged commit 18bee93 into autowarefoundation:main Aug 15, 2022
@h-ohta h-ohta deleted the fix/clang-tidy-tier4_state_rviz_plugin branch August 18, 2022 10:07
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* fix: clang-tidy for tier4_state_rviz_plugin

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* fix: delete NOLINT

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>

* ci(pre-commit): autofix

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* fix: clang-tidy for tier4_state_rviz_plugin

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* fix: delete NOLINT

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>

* ci(pre-commit): autofix

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* fix: clang-tidy for tier4_state_rviz_plugin

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* fix: delete NOLINT

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>

* ci(pre-commit): autofix

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…on#1589)

* fix: clang-tidy for tier4_state_rviz_plugin

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* fix: delete NOLINT

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>

* ci(pre-commit): autofix

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* fix: clang-tidy for tier4_state_rviz_plugin

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* ci(pre-commit): autofix

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp

Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>

* fix: delete NOLINT

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>

* ci(pre-commit): autofix

Signed-off-by: h-ohta <hiroki.ota@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
youtalk pushed a commit to youtalk/autoware.universe that referenced this pull request Nov 8, 2024
chore: sync tier4/autoware.universe:awf-latest
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