You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: codeReport.m
    path of file: ./repos/matlab2tikz/test
    
    the code of the file until where you have to start completion: function [ report ] = codeReport( varargin )
%CODEREPORT Builds a report of the code health
%
% This function gen
    
function [complexity, others] = splitCycloComplexity(list)
% splits codereport into McCabe complexity and others
    filter = @(l) ~isempty(strfind(l.message, 'McCabe complexity'));
    idxComplexity = arrayfun(filter, list);
    complexity = list( idxComplexity);
    others     = list(~idxComplexity);
end