Skip to content

Commit

Permalink
Update common files
Browse files Browse the repository at this point in the history
  • Loading branch information
sstok committed Apr 6, 2017
1 parent fcb78da commit 87da931
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
13 changes: 12 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
* text=auto

# Always use LF
core.autocrlf=lf
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
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
phpunit.xml
composer.lock
composer.phar
/vendor
/phpunit.xml
/composer.lock
*.phar
/vendor/
/.php_cs.cache
26 changes: 26 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 87da931

Please sign in to comment.