infection.json5.dist 982 B

123456789101112131415161718192021222324252627282930
  1. {
  2. "$schema": "vendor/infection/infection/resources/schema.json",
  3. "testFrameworkOptions": "--testsuite=unit",
  4. "source": {
  5. "directories": [
  6. "src"
  7. ]
  8. },
  9. "mutators": {
  10. "global-ignoreSourceCodeByRegex": [
  11. // Don't touch version-specific code examples in rules
  12. ".*new VersionSpecification\\(.*",
  13. // Don't touch conditions based on PHP version as these are crucial for tool to work properly
  14. ".*\\\\PHP_VERSION_ID.*",
  15. ],
  16. "@default": true,
  17. "Throw_": {
  18. "ignore": [
  19. // It makes `tests/Fixtures/cache-file-handler/cache-file` unreadable (permissions)
  20. "PhpCsFixer\\Cache\\FileHandler"
  21. ]
  22. },
  23. "LogicalNot": {
  24. "ignore": [
  25. // Causes modifications in `tests/Fixtures/FixerTest/fix/*.php`
  26. "PhpCsFixer\\Runner\\Runner::fixFile"
  27. ]
  28. }
  29. }
  30. }