Skip to content

Instantly share code, notes, and snippets.

@Big-Shark
Last active April 4, 2019 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Big-Shark/73b51413af0692eb9ad4a1c2b6d178c9 to your computer and use it in GitHub Desktop.
Save Big-Shark/73b51413af0692eb9ad4a1c2b6d178c9 to your computer and use it in GitHub Desktop.
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('app/propel/migrations')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'declare_strict_types' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'array_syntax' => ['syntax' => 'short'],
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'psr4' => true,
'random_api_migration' => true,
'simplified_null_return' => true,
'strict_comparison' => true,
'strict_param' => true,
'ternary_to_null_coalescing' => true,
'visibility_required' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['author']],
'native_function_invocation' => true,
'no_useless_return' => true
])
->setFinder($finder)
;
parameters:
git_dir: .
bin_dir: vendor/bin
process_async_limit: 10
process_async_wait: 1000
process_timeout: 600
ascii:
succeeded: ~
tasks:
phpcsfixer2:
allow_risky: true
cache_file: ~
config: .php_cs
using_cache: true
config_contains_finder: true
verbose: true
diff: false
triggered_by: ['php']
phpstan:
autoload_file: ~
configuration: phpstan.neon
level: 7
triggered_by: ['php']
composer:
file: ./composer.json
no_check_all: false
no_check_lock: false
no_check_publish: false
with_dependencies: false
strict: false
phpcpd:
directory: '.'
exclude: ['vendor', 'var']
names_exclude: []
regexps_exclude: []
fuzzy: false
min_lines: 5
min_tokens: 70
triggered_by: ['php']
deptrac:
depfile: ~
formatter_graphviz: true
formatter_graphviz_display: true
formatter_graphviz_dump_image: ~
formatter_graphviz_dump_dot: ~
formatter_graphviz_dump_html: ~
phpmnd:
directory: .
whitelist_patterns: []
exclude: []
exclude_name: []
exclude_path: ['vendor', 'var']
extensions: []
hint: false
ignore_numbers: []
ignore_strings: []
strings: false
triggered_by: ['php']
securitychecker:
lockfile: ./composer.lock
format: ~
end_point: ~
timeout: ~
run_always: false
yamllint:
ignore_patterns: []
object_support: false
exception_on_invalid_type: false
xmllint:
ignore_patterns: []
load_from_net: false
x_include: false
dtd_validation: false
scheme_validation: false
jsonlint:
ignore_patterns: []
detect_key_conflicts: false
git_blacklist:
keywords:
- "die("
- "var_dump("
- "dump("
- "exit;"
triggered_by: [php]
parameters:
autoload_files:
- config/bootstrap.php
excludes_analyse:
- src/Migrations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment