Skip to content

Commit df0846a

Browse files
Added NOLINT
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
1 parent da7bd5b commit df0846a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

localization/ndt_scan_matcher/test/stub_pcd_loader.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class StubPcdLoader : public rclcpp::Node
3939
private:
4040
rclcpp::Service<GetDifferentialPointCloudMap>::SharedPtr get_differential_pcd_maps_service_;
4141

42+
// NOLINTNEXTLINE
4243
bool on_service_get_differential_point_cloud_map(
4344
GetDifferentialPointCloudMap::Request::SharedPtr req,
4445
GetDifferentialPointCloudMap::Response::SharedPtr res)

localization/ndt_scan_matcher/test/test_util.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ inline pcl::PointCloud<pcl::PointXYZ> make_sample_pcd(
3333
const float x = min_xy + interval * static_cast<float>(j);
3434
const float y = min_xy + interval * static_cast<float>(i);
3535
const float z = std::hypot(x - center, y - center) / (range_width / 16);
36-
cloud.points[i * num_points_per_line + j].x = x;
37-
cloud.points[i * num_points_per_line + j].y = y;
38-
cloud.points[i * num_points_per_line + j].z = z;
36+
cloud.points[i * num_points_per_line + j].x = x; // NOLINT
37+
cloud.points[i * num_points_per_line + j].y = y; // NOLINT
38+
cloud.points[i * num_points_per_line + j].z = z; // NOLINT
3939
}
4040
}
4141
return cloud;

0 commit comments

Comments
 (0)