Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Commit

Permalink
2.0 reinit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilmar Pupo authored and gpupo committed Jul 7, 2016
0 parents commit 5870526
Show file tree
Hide file tree
Showing 110 changed files with 6,358 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
engines:
duplication:
enabled: true
config:
languages:
- php
fixme:
enabled: true
phpmd:
enabled: true
config:
file_extensions:
- php
rulesets: "cleancode, codesize controversial, design, naming, unusedcode"
phpcodesniffer:
enabled: true
config:
standard: "PSR1,PSR2"
ratings:
paths:
- "**.php"
exclude_paths:
- tests/*
- Resources/*
- bin/*
- vendor/*
- var/*
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: http://EditorConfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

[*.{js,py,yml,json,css,scss,xml,html,sh}]
indent_size = 2
indent_style = space

[*.md]
trim_trailing_whitespace = false
indent_style = tab

[vendor/**]
trim_trailing_whitespace = false
insert_final_newline = false
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/build/
/vendor/
/var/
app.json
Resources/logs/*
*.phar
*.lock
*.cache
phpunit.xml
41 changes: 41 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

use Symfony\CS\Config\Config;
use Symfony\CS\FixerInterface;
use Symfony\CS\Finder\DefaultFinder;
use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;

HeaderCommentFixer::setHeader(file_get_contents ('Resources/doc/file-header.md'));

$finder = DefaultFinder::create()
->notName('LICENSE')
->notName('README.md')
->notName('phpunit.xml*')
->notName('*.phar')
->exclude('vendor')
->exclude('var')
->exclude('Resources')
->in(__DIR__);

return Config::create()
->fixers([
'yoda_conditions',
'align_double_arrow',
'header_comment',
'multiline_spaces_before_semicolon',
'ordered_use',
'phpdoc_order',
'phpdoc_var_to_type',
'strict',
'strict_param',
'short_array_syntax',
'php_unit_strict',
'php_unit_construct',
'newline_after_open_tag',
'ereg_to_preg',
'short_echo_tag',
'pre_increment',
])
->level(FixerInterface::SYMFONY_LEVEL)
->setUsingCache(false)
->finder($finder);
35 changes: 35 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
build:
environment:
php: 7.0.6
tests:
override:
-
command: 'ant test'
coverage:
file: 'build/logs/clover.xml'
format: 'clover'
filter:
paths: [src/*]
excluded_paths: [README.md, tests/*, vendor/*, build/*, Resources/*]
checks:
php:
code_rating: true
tools:
php_analyzer:
enabled: true
extensions:
- php
external_code_coverage:
timeout: 1200
runs: 3
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor, spec]
sensiolabs_security_checker:
enabled: true

0 comments on commit 5870526

Please sign in to comment.