Code Complexity Report

File Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
src/report.cpp ottr::sorted_charge_ids 2 7 72 1
src/report.cpp ottr::ticks_to_fixed 1 5 53 1
src/report.cpp ottr::compute_widths 11 39 482 4
src/report.cpp ottr::append_row 3 11 150 3
src/report.cpp ottr::render_full_table 9 46 474 2
src/report.cpp ottr::render_single_day_table 7 31 365 3
src/alloc.cpp ottr::allocate_weighted 45 121 997 2
src/parser.cpp ottr::tokenize_line 16 40 316 1
src/parser.cpp ottr::ParserLogger::log_debug 1 6 60 3
src/parser.cpp ottr::ParserLogger::log_error 1 6 60 3
src/parser.cpp ottr::ParserLogger::get_errors 1 3 10 0
src/parser.cpp ottr::ParserLogger::get_debug 1 3 10 0
src/parser.cpp ottr::ParserLogger::empty_err 1 3 15 0
src/parser.cpp ottr::ParserLogger::find_err 3 12 76 1
src/parser.cpp ottr::parse_istream 8 41 356 4
src/parser.cpp ottr::parse_file 2 8 62 3
src/parser.cpp ottr::DirectiveParser::DirectiveParser 1 9 37 3
src/parser.cpp ottr::ChargeDirectiveParser::ChargeDirectiveParser 1 5 31 3
src/parser.cpp ottr::TaskDirectiveParser::TaskDirectiveParser 1 5 31 3
src/parser.cpp ottr::WeightDirectiveParser::WeightDirectiveParser 1 5 31 3
src/parser.cpp ottr::DayDirectiveParser::DayDirectiveParser 1 5 31 3
src/parser.cpp ottr::LogDirectiveParser::LogDirectiveParser 1 5 31 3
src/parser.cpp ottr::OptionDirectiveParser::OptionDirectiveParser 1 5 31 3
src/parser.cpp ottr::ChargeDirectiveParser::parse 7 24 266 2
src/parser.cpp ottr::TaskDirectiveParser::parse 4 12 149 2
src/parser.cpp ottr::WeightDirectiveParser::parse 5 12 148 2
src/parser.cpp ottr::DayDirectiveParser::parse 6 12 148 2
src/parser.cpp ottr::LogDirectiveParser::parse 12 26 339 2
src/parser.cpp ottr::OptionDirectiveParser::parse 8 31 268 2
src/parser.cpp ottr::DirectiveParser::ensure_day_closed 4 10 82 1
src/aggregator.cpp ottr::Aggregator::add 2 6 63 3
src/aggregator.cpp ottr::Aggregator::total_for_charge 2 4 43 1
src/aggregator.cpp ottr::Aggregator::by_day_for_charge 3 6 77 2
src/aggregator.cpp ottr::Aggregator::total_for_day 2 4 43 1
src/aggregator.cpp ottr::Aggregator::set_dates 1 4 29 1
src/model.cpp ottr::DateFilter::includes 8 6 72 1
src/model.cpp ottr::World::current_day 1 3 14 0
src/util.cpp ottr::parse_mmdd 12 17 217 2
src/util.cpp ottr::try_parse_double 2 5 45 2
src/util.cpp ottr::try_parse_ll 2 5 48 2
src/aggregator.hpp ottr::Aggregator::dates 1 1 9 0
src/aggregator.hpp ottr::Aggregator::snapshot 1 1 9 0
src/util.hpp ottr::hours_to_ticks 1 5 46 1
src/options.cpp ottr::CalculationOptions::validate 1 3 16 1
src/options.cpp ottr::CalculationOptions::parse_rounding 4 18 90 3
src/options.cpp ottr::CalculationOptions::parse_aggregation 4 18 90 3
src/engine.cpp ottr::add_allocation 2 6 65 4
src/engine.cpp ottr::process_world 37 138 1256 4
src/main.cpp print_usage 1 6 37 1
src/main.cpp main 17 66 491 2
src/validate.cpp ottr::Validator::validate_world 15 38 339 2
src/validate.cpp ottr::Validator::log_debug 1 6 60 3
src/validate.cpp ottr::Validator::log_error 1 6 60 3
src/validate.cpp ottr::Validator::get_errors 1 3 10 0
src/validate.cpp ottr::Validator::get_debug 1 3 10 0
src/validate.cpp ottr::Validator::empty_err 1 3 15 0
src/validate.cpp ottr::Validator::find_err 3 12 76 1