From 996491658c01d9971cfdfeccdbe187cb65034b9d Mon Sep 17 00:00:00 2001 From: David Manners Date: Thu, 9 Feb 2017 12:07:27 +0000 Subject: [PATCH 1/2] Add Scrutinizer basics to the yml file in the repo and add the badge to the readme --- .scrutinizer.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 35 insertions(+) create mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..e348693 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,34 @@ +before_commands: + - "composer install --no-dev --prefer-source" + +tools: + external_code_coverage: + timeout: 3600 + php_code_coverage: + enabled: true + php_code_sniffer: + enabled: false + php_cpd: + enabled: true + excluded_dirs: ["tests", "vendor"] + php_cs_fixer: + enabled: false + php_loc: + enabled: true + excluded_dirs: ["tests", "vendor"] + php_mess_detector: + enabled: true + filter: + paths: ["src/*"] + php_pdepend: + enabled: true + excluded_dirs: ["tests", "vendor"] + php_analyzer: + enabled: true + filter: + paths: ["src/*", "tests/*"] + php_hhvm: + enabled: true + filter: + paths: ["src/*", "tests/*"] + sensiolabs_security_checker: true \ No newline at end of file diff --git a/README.md b/README.md index efc7f75..8d7054d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Sitewards Setup # [![Build Status](https://travis-ci.org/sitewards/setup.svg?branch=master)](https://travis-ci.org/sitewards/setup) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sitewards/setup/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sitewards/setup/?branch=master) This is a module that allows a developer to import and export content and configuration via the command line to any framework, as long as a bridge module for that framework has been built. From c47722d04a92c735f440f250139f14876859dc3a Mon Sep 17 00:00:00 2001 From: David Manners Date: Thu, 9 Feb 2017 12:20:18 +0000 Subject: [PATCH 2/2] Remove the timeout from external_code_coverage since we dont have a long running build at the current moment --- .scrutinizer.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index e348693..6b35ad5 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,8 +2,6 @@ before_commands: - "composer install --no-dev --prefer-source" tools: - external_code_coverage: - timeout: 3600 php_code_coverage: enabled: true php_code_sniffer: