diff --git a/vars/syntaxCheck.groovy b/vars/syntaxCheck.groovy index 636b837..b879fdb 100644 --- a/vars/syntaxCheck.groovy +++ b/vars/syntaxCheck.groovy @@ -46,15 +46,15 @@ def call(JobConfiguration config) { command += " --settings $vrunnerSettings"; } + if (!options.exceptionFile.empty && fileExists(options.exceptionFile)) { + command += " --exception-file $options.exceptionFile" + } + if (options.checkModes.length > 0) { def checkModes = options.checkModes.join(" ") command += " --mode $checkModes" } - if (!options.exceptionFile.empty && fileExists(options.exceptionFile)) { - command += " --exception-file $options.exceptionFile" - } - // Запуск синтакс-проверки VRunner.exec(command, true)