paths([ __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/examples', __DIR__ . '/tools', ]); $ecsConfig->sets([ SetList::CLEAN_CODE, SetList::PSR_12, ]); $ecsConfig->rule(NativeFunctionInvocationFixer::class); $ecsConfig->ruleWithConfiguration(GlobalNamespaceImportFixer::class, [ 'import_classes' => true, 'import_constants' => true, 'import_functions' => true, ]); $ecsConfig->skip([ // Skip checking auto-generated files. __DIR__ . '/tests/src/SpecTestsuites/Core', ]); };