From 6391e614c6cadee04bb4ea2bc7dc34a204ef24b7 Mon Sep 17 00:00:00 2001
From: Jonathan Swaelens <swaelens.jonathan@opensides.be>
Date: Tue, 19 Sep 2017 15:05:16 +0200
Subject: [PATCH] :ambulance: feat(gitlab-ci) Add finetuning to phpcs check

Add finetuning to phpcs and correct find command for php lint

closes #5693

Signed-off-by: Jonathan Swaelens <swaelens.jonathan@opensides.be>
---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39439246b..7cfa77f77 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,9 +22,9 @@ create_perlcritic_rapport:
 create_php_code_sniffer_rapport:
   script:
     - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
-    - phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml .
+    - find . -type f -name '*.php' -o -name '*.inc' -exec phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml "{}" \;
 
 # PHP lint
 create_php_lint_rapport:
   script:
-    - find . -type f -name '*.php' -name '*.inc' -exec php -l "{}" \;
+    - find . -type f -name '*.php' -o -name '*.inc' -exec php -l "{}" \;
-- 
GitLab