From 40c78f90402c8ab60aebf8b876d3944ed56dca37 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 2 Nov 2015 14:25:06 +0300 Subject: [PATCH] Only spaces are allowed --- BuildServer/lib/tasks/dotnetcheckstyle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BuildServer/lib/tasks/dotnetcheckstyle.js b/BuildServer/lib/tasks/dotnetcheckstyle.js index a235963..db5c57f 100644 --- a/BuildServer/lib/tasks/dotnetcheckstyle.js +++ b/BuildServer/lib/tasks/dotnetcheckstyle.js @@ -53,6 +53,10 @@ module.exports = function (params, processor) { processor.onError("Both tabs and spaces found in file " + file); } + if (data.indexOf("\t") >= 0) { + processor.onError("Tabs found in file " + file); + } + processor.onInfo("Checked file " + file); callback(); });