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(autoware_behavior_velocity_run_out_module): fix bugprone-branch-clone #9715

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on clang-tidy bugprone-branch-clone error.
Suppressed in comments so that the meaning of the branch is clear.

/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/scene.cpp:814:5: error: switch has 2 consecutive identical branches [bugprone-branch-clone,-warnings-as-errors]
    case State::GO: {
    ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/scene.cpp:822:6: note: last of these clones ends here
    }
     ^

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: kobayu858 <[email protected]>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 23, 2024
@kobayu858 kobayu858 requested a review from veqcc December 23, 2024 03:00
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kobayu858 kobayu858 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 29.73%. Comparing base (e5243e4) to head (c6b30e9).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
...are_behavior_velocity_run_out_module/src/scene.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9715      +/-   ##
==========================================
- Coverage   29.74%   29.73%   -0.02%     
==========================================
  Files        1443     1449       +6     
  Lines      108681   108731      +50     
  Branches    42663    42663              
==========================================
- Hits        32330    32328       -2     
- Misses      73172    73224      +52     
  Partials     3179     3179              
Flag Coverage Δ *Carryforward flag
differential 18.38% <0.00%> (?)
total 29.74% <ø> (+<0.01%) ⬆️ Carriedforward from e5243e4

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kobayu858 kobayu858 merged commit dc5120b into autowarefoundation:main Dec 23, 2024
43 of 48 checks passed
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Dec 25, 2024
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants