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_planner_common): fix variableScope #8446

Merged

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on cppcheck variableScope warnings

planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/src/utilization/path_utilization.cpp:56:23: style: The scope of the variable 'x' can be reduced. [variableScope]
  std::vector<double> x;
                      ^

planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/src/utilization/path_utilization.cpp:57:23: style: The scope of the variable 'y' can be reduced. [variableScope]
  std::vector<double> y;
                      ^

planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/src/utilization/path_utilization.cpp:58:23: style: The scope of the variable 'z' can be reduced. [variableScope]
  std::vector<double> z;
                      ^

planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/src/utilization/path_utilization.cpp:59:23: style: The scope of the variable 'v' can be reduced. [variableScope]
  std::vector<double> v;
                      ^

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 <yutaro.kobayashi@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Aug 13, 2024
@kobayu858 kobayu858 requested a review from veqcc August 13, 2024 07:37
Copy link

github-actions bot commented Aug 13, 2024

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 tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 13, 2024
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.89%. Comparing base (8a9efba) to head (f0b8a8c).
Report is 66 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8446      +/-   ##
==========================================
+ Coverage   23.85%   23.89%   +0.03%     
==========================================
  Files        1379     1383       +4     
  Lines      101636   101603      -33     
  Branches    38670    38630      -40     
==========================================
+ Hits        24247    24274      +27     
+ Misses      74978    74877     -101     
- Partials     2411     2452      +41     
Flag Coverage Δ *Carryforward flag
differential 20.73% <ø> (?)
total 23.90% <ø> (+0.04%) ⬆️ Carriedforward from af9a5fc

*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.

@rej55 rej55 merged commit 567de72 into autowarefoundation:main Aug 20, 2024
29 of 30 checks passed
@kobayu858 kobayu858 deleted the fix/cppcheck_variableScope_pla-6 branch August 21, 2024 06:14
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Aug 27, 2024
…towarefoundation#8446)

fix:variableScope

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants