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_pointcloud_preprocessor): fix variableScope #8447

Merged

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on cppcheck variableScope warnings

sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp:222:10: style: The scope of the variable 'global_point_stamp' can be reduced. [variableScope]
  double global_point_stamp;
         ^

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>
@kobayu858 kobayu858 requested a review from veqcc August 13, 2024 07:52
@github-actions github-actions bot added the component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) label Aug 13, 2024
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.86%. Comparing base (adfd354) to head (cbef7e6).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8447      +/-   ##
==========================================
+ Coverage   23.85%   23.86%   +0.01%     
==========================================
  Files        1379     1381       +2     
  Lines      101614   101615       +1     
  Branches    38644    38639       -5     
==========================================
+ Hits        24238    24250      +12     
+ Misses      74918    74902      -16     
- Partials     2458     2463       +5     
Flag Coverage Δ *Carryforward flag
differential 19.06% <100.00%> (?)
total 23.86% <ø> (+0.01%) ⬆️ Carriedforward from 5836951

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

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Copy link
Contributor

@Shin-kyoto Shin-kyoto left a comment

Choose a reason for hiding this comment

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

LGTM

I confirmed that this PR's content is good to merge.
I did NOT check this PR by running autoware.

@Shin-kyoto
Copy link
Contributor

@vividf
Can you review this PR?

Copy link
Contributor

@vividf vividf left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@vividf vividf left a comment

Choose a reason for hiding this comment

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

LGTM!

@vividf vividf merged commit 142795a into autowarefoundation:main Aug 14, 2024
29 of 30 checks passed
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…ndation#8447)

* fix:variableScope

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>

* refactor:use const

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>

---------

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: xtk8532704 <1041084556@qq.com>
@kobayu858 kobayu858 deleted the fix/cppcheck_variableScope_sen-3 branch August 21, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensing Data acquisition from sensors, drivers, preprocessing. (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.

4 participants