From 87da93180728dc9f000410cf412b3baeac9390d5 Mon Sep 17 00:00:00 2001 From: Sebastiaan Stok Date: Thu, 6 Apr 2017 14:34:30 +0200 Subject: [PATCH] Update common files --- .editorconfig | 30 ++++++++++++++++++++++++++++++ .gitattributes | 13 ++++++++++++- .gitignore | 9 +++++---- .scrutinizer.yml | 26 ++++++++++++++++++++++++++ 4 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 .editorconfig create mode 100644 .scrutinizer.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a7cec1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,30 @@ +; top-most EditorConfig file +root = true + +; Unix-style newlines +[*] +end_of_line = LF + +[*.php] +indent_style = space +indent_size = 4 + +[*.js] +indent_style = space +indent_size = 4 + +[*.rst] +indent_style = space +indent_size = 4 + +[*.md] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 4 + +[*.xml] +indent_style = space +indent_size = 4 diff --git a/.gitattributes b/.gitattributes index 5408187..048ce9c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,15 @@ * text=auto # Always use LF -core.autocrlf=lf \ No newline at end of file +core.autocrlf=lf + +.editorconfig +.gitattributes export-ignore +.gitignore export-ignore +.php_cs export-ignore +.scrutinizer.yml export-ignore +.styleci.yml export-ignore +.travis.yml export-ignore +.github export-ignore +phpunit.xml.dist export-ignore +/tests export-ignore diff --git a/.gitignore b/.gitignore index c47c577..6927e16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -phpunit.xml -composer.lock -composer.phar -/vendor +/phpunit.xml +/composer.lock +*.phar +/vendor/ +/.php_cs.cache diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..114ee4c --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,26 @@ +filter: + paths: [ 'src/*' ] + +checks: + php: + code_rating: true + duplication: false + verify_property_names: true + uppercase_constants: true + remove_extra_empty_lines: true + properties_in_camelcaps: true + parameters_in_camelcaps: true + overriding_parameter: true + optional_parameters_at_the_end: true + function_in_camel_caps: true + encourage_single_quotes: true + classes_in_camel_caps: true + check_method_contracts: + verify_interface_like_constraints: true + verify_documented_constraints: true + verify_parent_constraints: true + avoid_perl_style_comments: true + avoid_usage_of_logical_operators: true + no_exit: false + no_unnecessary_final_modifier: false + overriding_private_members: false