Code Complexity Report

Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/src/kalman_filter_wrapper.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
to_ros_time 1 6 51 1
OdometryFiller::fill_odom_msg 1 46 541 2
OdometryFiller::fill_odom_msg 1 44 526 2
autoware::common::state_estimation::KalmanFilterWrapper::get_state 2 14 114 0
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/src/state_estimation_node.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
assert_all_entries_positive 5 8 65 2
validate_publish_frequency 5 21 126 2
create_state_variances 3 16 147 1
autoware::common::state_estimation::StateEstimationNode::StateEstimationNode 5 50 399 1
autoware::common::state_estimation::StateEstimationNode::pose_callback 6 18 113 1
autoware::common::state_estimation::StateEstimationNode::relative_pos_callback 7 17 123 1
autoware::common::state_estimation::StateEstimationNode::predict_and_publish_current_state 3 8 43 0
autoware::common::state_estimation::StateEstimationNode::publish_current_state 4 19 157 0
autoware::common::state_estimation::StateEstimationNode::create_subscriptions 2 12 82 3
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/state_estimation_node.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICStateEstimationNode::buffer 1 1 8 0
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/kalman_filter_wrapper.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::KalmanFilterWrapper 1 23 136 7
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::add_reset_event_to_history 1 7 29 1
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::add_reset_event_to_history 1 8 54 3
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::add_next_temporal_update_to_history 2 8 46 0
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::add_observation_to_history 2 6 37 1
autoware::common::state_estimation::STATE_ESTIMATION_NODES_PUBLICKalmanFilterWrapper::is_initialized 2 4 23 0
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/history.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
autoware::common::state_estimation::detail::passes_mahalanobis_gate 1 13 130 4
autoware::common::state_estimation::History::History 1 7 37 3
autoware::common::state_estimation::History::empty 1 1 14 0
autoware::common::state_estimation::History::size 1 1 14 0
autoware::common::state_estimation::History::get_last_timestamp 1 1 16 0
autoware::common::state_estimation::History::get_last_event 1 1 16 0
autoware::common::state_estimation::History::get_filter 1 1 10 0
autoware::common::state_estimation::History::get_filter 1 1 9 0
autoware::common::state_estimation::History::drop_oldest_event_if_needed 3 6 39 0
autoware::common::state_estimation::History::HistoryEntry 1 1 14 1
autoware::common::state_estimation::History::update_stored_state 1 4 17 1
autoware::common::state_estimation::History::stored_state 1 1 10 0
autoware::common::state_estimation::History::update_stored_covariance 1 4 19 1
autoware::common::state_estimation::History::stored_covariance 1 4 10 0
autoware::common::state_estimation::History::event 1 1 9 0
autoware::common::state_estimation::History::EkfStateUpdater 1 6 51 3
autoware::common::state_estimation::History::operator ( ) 2 11 76 1
autoware::common::state_estimation::History::operator ( ) 1 4 27 1
autoware::common::state_estimation::History::operator ( ) 1 4 17 1
autoware::common::state_estimation::History::emplace_event 1 7 44 2
autoware::common::state_estimation::History::update_impacted_events 4 31 219 1
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/steady_time_grid.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
autoware::common::state_estimation::SteadyTimeGrid::SteadyTimeGrid 1 5 36 2
autoware::common::state_estimation::SteadyTimeGrid::get_next_timestamp_after 1 7 40 1
autoware::common::state_estimation::SteadyTimeGrid::is_initialized 1 4 20 0
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/filter_typedefs.hpp
Source file: /home/runner/work/autoware-auto-metrics-dashboard/autoware-auto-metrics-dashboard/src/common/state_estimation_nodes/include/state_estimation_nodes/visibility_control.hpp