From fbd5d2a7bcdca681a6afcd688c5ffa4bf9a5b531 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 16 Mar 2018 12:58:37 +0100 Subject: [PATCH] Add flint + phpcs config files --- .flintci.yml | 5 +++++ .php_cs.dist | 4 +++- .yamllint_config | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .flintci.yml create mode 100644 .yamllint_config diff --git a/.flintci.yml b/.flintci.yml new file mode 100644 index 0000000000..4a3483b225 --- /dev/null +++ b/.flintci.yml @@ -0,0 +1,5 @@ +services: + phpcsfixer: true + yamllint: + version: latest + config_path: .yamllint_config diff --git a/.php_cs.dist b/.php_cs.dist index c5e872669e..88c458e3a3 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -17,8 +17,10 @@ $rules = [ 'yoda_style' => false, 'phpdoc_to_comment' => false, 'phpdoc_no_package' => false, + 'increment_style' => false, + 'no_useless_else' => false, //'no_php4_constructor' => true, - 'no_useless_else' => true, + 'single_quote' => false, 'no_useless_return' => true, 'ordered_class_elements' => true, 'ordered_imports' => true, diff --git a/.yamllint_config b/.yamllint_config new file mode 100644 index 0000000000..52770010b7 --- /dev/null +++ b/.yamllint_config @@ -0,0 +1,11 @@ +extends: default + +ignore: | + app + src + .travis.yml + .codeclimate.yml + +rules: + line-length: + max: 500 \ No newline at end of file