Code Complexity Report

Source file: src/report.hpp
Source file: src/validate.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::append_err 2 4 59 4
ottr::validate_world 15 33 331 2
Source file: src/aggregator.hpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::Aggregator::dates 1 1 9 0
ottr::Aggregator::snapshot 1 1 9 0
Source file: src/engine.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::add_allocation 2 6 65 4
ottr::process_world 17 68 622 4
Source file: src/aggregator.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::Aggregator::add 2 6 63 3
ottr::Aggregator::total_for_charge 2 4 43 1
ottr::Aggregator::by_day_for_charge 3 6 77 2
ottr::Aggregator::total_for_day 2 4 43 1
ottr::Aggregator::set_dates 1 4 29 1
Source file: src/parser.hpp
Source file: src/model.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::DateFilter::includes 8 6 72 1
Source file: src/parser.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::tokenize_line 16 40 316 1
ottr::parse_error 1 6 60 4
ottr::parse_istream 43 98 1194 4
ottr::parse_file 2 8 57 3
Source file: src/report.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::sorted_charge_ids 2 7 72 1
ottr::ticks_to_fixed 1 5 53 1
ottr::compute_widths 11 39 482 4
ottr::append_row 3 11 150 3
ottr::render_full_table 9 46 474 2
ottr::render_single_day_table 7 31 365 3
Source file: src/alloc.hpp
Source file: src/engine.hpp
Source file: src/validate.hpp
Source file: src/util.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::parse_mmdd 12 17 217 2
ottr::try_parse_double 2 5 45 2
ottr::try_parse_ll 2 5 48 2
Source file: src/alloc.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::allocate_weighted 26 69 616 1
Source file: src/model.hpp
Source file: src/util.hpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
ottr::hours_to_ticks 1 5 46 1
Source file: src/main.cpp
Function name Cyclomatic complexity (15) LOC (1000000) Token count Parameter count (5)
print_usage 1 6 37 1
main 14 44 334 2