From b0dbfcf091be0f8eb12c72fe2dc41ec701851881 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 30 Sep 2015 15:28:58 +0300 Subject: [PATCH] Fixed code analysis ignoring --- BuildServer/lib/tasks/dotnetcompile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildServer/lib/tasks/dotnetcompile.js b/BuildServer/lib/tasks/dotnetcompile.js index e4d9c06..05847e7 100644 --- a/BuildServer/lib/tasks/dotnetcompile.js +++ b/BuildServer/lib/tasks/dotnetcompile.js @@ -20,7 +20,7 @@ module.exports = function (params, processor) { return; } } else { - if (!settings.ignoreCodeAnalysisByDefault || params.forceCodeAnalysis) { + if ((!settings.ignoreCodeAnalysisByDefault && !params.ignoreCodeAnalysis) || params.forceCodeAnalysis) { compileParams.CodeAnalysisRuleSet = settings.codeAnalysisRuleSet; } }