-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (ConfigurationFile) Add php format
- Loading branch information
Showing
2 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
return [ | ||
'Options' => [ | ||
'execution' => 'full', // full (default), fast | ||
'processes' => 2, | ||
], | ||
'Tools' => [ | ||
'phpstan', | ||
'parallel-lint', | ||
'phpmd', | ||
'phpcpd', | ||
'phpcbf', | ||
'phpcs', | ||
], | ||
'phpstan' => [ | ||
'executablePath' => 'vendor/bin/phpstan', | ||
'config' => './qa/phpstan.neon', | ||
// 'memory-limit' => '1G', // Examples: 1M 2000M 1G 5G | ||
'paths' => ['src'], | ||
// 'level' => 8, // level 0-8 (0 default, 8 max) | ||
'otherArguments' => '--no-progress --ansi', | ||
], | ||
'parallel-lint' => [ | ||
'executablePath' => 'vendor/bin/parallel-lint', | ||
'paths' => ['./'], | ||
'exclude' => ['vendor', 'qa', 'tools'], | ||
'otherArguments' => '--colors', | ||
// 'ignoreErrorsOnExit' => true, | ||
], | ||
'phpcs' => [ | ||
'executablePath' => 'tools/php71/phpcs', | ||
'paths' => ['./'], | ||
'standard' => './qa/psr12-ruleset.xml', // or predefined rules: Squiz, PSR12, Generic, PEAR | ||
'ignore' => ['vendor', 'tools'], | ||
'error-severity' => 1, | ||
'warning-severity' => 6, | ||
'otherArguments' => '--report=summary --parallel=2', | ||
], | ||
'phpcbf' => [ | ||
'usePhpcsConfiguration' => true, | ||
// 'executablePath' => 'tools/php71/phpcbf', | ||
// 'paths' => ['./'], | ||
// 'standard' => './qa/psr12-ruleset.xml', // or predefined rules: Squiz, PSR12, Generic, PEAR | ||
// 'ignore' => ['vendor'], // Se podría configurar en el standard directamente | ||
// 'error-severity' => 1, | ||
// 'warning-severity' => 6, | ||
], | ||
'phpmd' => [ | ||
'executablePath' => 'tools/php71/phpmd', | ||
'paths' => ['./src/'], | ||
'rules' => './qa/phpmd-ruleset.xml', // or predefined rules cleancode,codesize,controversial,design,naming,unusedcode | ||
'exclude' => ['vendor'], // Se podría configurar en las rules directamente | ||
// 'otherArguments' => '--strict', | ||
// 'ignoreErrorsOnExit' => true, | ||
], | ||
'phpcpd' => [ | ||
'executablePath' => 'tools/php71/phpcpd', | ||
'paths' => ['./'], | ||
'exclude' => ['vendor', 'tests', 'tools'], | ||
// 'otherArguments' => '--min-lines=5', | ||
], | ||
'security-checker' => [ | ||
'executablePath' => 'tools/php71/local-php-security-checker', | ||
// 'otherArguments' => '-format json', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters