2017-11-22 21:16:10 +00:00
|
|
|
includes:
|
|
|
|
- vendor/symplify/easy-coding-standard/config/psr2.neon
|
2018-01-06 20:25:47 +00:00
|
|
|
- vendor/symplify/easy-coding-standard/config/php71.neon
|
2017-11-22 21:16:10 +00:00
|
|
|
- vendor/symplify/easy-coding-standard/config/clean-code.neon
|
2018-01-06 20:25:47 +00:00
|
|
|
- vendor/symplify/easy-coding-standard/config/common.neon
|
2017-11-22 21:16:10 +00:00
|
|
|
|
|
|
|
checkers:
|
2018-01-06 12:09:33 +00:00
|
|
|
# spacing
|
|
|
|
- PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer
|
|
|
|
- PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer
|
|
|
|
- PhpCsFixer\Fixer\CastNotation\CastSpacesFixer
|
|
|
|
PhpCsFixer\Fixer\Operator\ConcatSpaceFixer:
|
|
|
|
spacing: none
|
|
|
|
- PhpCsFixer\Fixer\ClassNotation\MethodSeparationFixer
|
|
|
|
- PhpCsFixer\Fixer\ClassNotation\NoBlankLinesAfterClassOpeningFixer
|
|
|
|
PhpCsFixer\Fixer\Whitespace\NoSpacesAroundOffsetFixer:
|
|
|
|
positions: ['inside', 'outside']
|
|
|
|
PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer:
|
|
|
|
align_double_arrow: false
|
|
|
|
align_equals: false
|
|
|
|
|
|
|
|
# phpdoc
|
|
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer
|
|
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer
|
|
|
|
|
|
|
|
# Symplify
|
2017-11-22 21:16:10 +00:00
|
|
|
- Symplify\CodingStandard\Fixer\Import\ImportNamespacedNameFixer
|
|
|
|
- Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer
|
|
|
|
- Symplify\CodingStandard\Fixer\Property\ArrayPropertyDefaultValueFixer
|
|
|
|
- Symplify\CodingStandard\Fixer\ArrayNotation\StandaloneLineInMultilineArrayFixer
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
exclude_checkers:
|
|
|
|
# from strict.neon
|
|
|
|
- PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer
|
2018-01-06 20:25:47 +00:00
|
|
|
- PhpCsFixer\Fixer\Strict\StrictComparisonFixer
|
|
|
|
# personal prefference
|
|
|
|
- PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer
|
|
|
|
|
2017-11-22 21:16:10 +00:00
|
|
|
skip:
|
|
|
|
PhpCsFixer\Fixer\Alias\RandomApiMigrationFixer:
|
|
|
|
# random_int() breaks code
|
|
|
|
- src/Phpml/CrossValidation/RandomSplit.php
|
|
|
|
SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff:
|
|
|
|
# magic calls
|
|
|
|
- src/Phpml/Preprocessing/Normalizer.php
|
2018-01-06 20:25:47 +00:00
|
|
|
PhpCsFixer\Fixer\StringNotation\ExplicitStringVariableFixer:
|
|
|
|
# bugged
|
|
|
|
- src/Phpml/Classification/DecisionTree/DecisionTreeLeaf.php
|
|
|
|
Symplify\CodingStandard\Fixer\Commenting\RemoveUselessDocBlockFixer:
|
|
|
|
# bug in fixer
|
|
|
|
- src/Phpml/Math/LinearAlgebra/LUDecomposition.php
|
|
|
|
PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer:
|
|
|
|
# covariant return types
|
|
|
|
- src/Phpml/Classification/Linear/Perceptron.php
|
2017-11-22 21:16:10 +00:00
|
|
|
|
|
|
|
skip_codes:
|
|
|
|
# missing typehints
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingParameterTypeHint
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversableParameterTypeHintSpecification
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingReturnTypeHint
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversableReturnTypeHintSpecification
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingPropertyTypeHint
|
|
|
|
- SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversablePropertyTypeHintSpecification
|
2018-01-06 20:25:47 +00:00
|
|
|
- PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff.Found
|