Browse Source

Add flint + phpcs config files

jmontoyaa 7 years ago
parent
commit
fbd5d2a7bc
3 changed files with 19 additions and 1 deletions
  1. 5 0
      .flintci.yml
  2. 3 1
      .php_cs.dist
  3. 11 0
      .yamllint_config

+ 5 - 0
.flintci.yml

@@ -0,0 +1,5 @@
+services:
+  phpcsfixer: true
+  yamllint:
+    version: latest
+    config_path: .yamllint_config

+ 3 - 1
.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,

+ 11 - 0
.yamllint_config

@@ -0,0 +1,11 @@
+extends: default
+
+ignore: |
+    app
+    src
+    .travis.yml
+    .codeclimate.yml
+
+rules:
+  line-length:
+    max: 500