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: test_checkcode.m
    path of file: ./repos/spm12/tests
    
    the code of the file until where you have to start completion: function tests = test_checkcode
% Test for possible problems in all of MATLAB code files
%__________________________________________________________________________
% Copyright (C) 2017 Wellcome Trust Centre for Neuroimaging

% $Id: test_checkcode.m 7111 2017-06-16 09:01:09Z guillaume $

tests = functiontests(localfunctions);


function test_checkcode_all(testCase)
testCase.assumeTrue(strcmp(spm_check_version,'matlab'));

f = cellstr(spm_select('FPlistRec',spm('Dir'),'\.m$')); % discard external?

    
function tests = test_checkcode
% Test for possible problems in all of MATLAB code files
%__________________________________________________________________________
% Copyright (C) 2017 Wellcome Trust Centre for Neuroimaging

% $Id: test_checkcode.m 7111 2017-06-16 09:01:09Z guillaume $

tests = functiontests(localfunctions);


function test_checkcode_all(testCase)
testCase.assumeTrue(strcmp(spm_check_version,'matlab'));

f = cellstr(spm_select('FPlistRec',spm('Dir'),'\.m$')); % discard external?
s = checkcode(f,'-id');
checked = false(size(s));
for i=1:numel(s)
    for j=1:numel(s{i})
        if isequal(s{i}(j).id,'SYNER') % Syntax error
            checked(i) = true;
        end