From 593d19c78686653975b5995c06559558df0e419b Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 3 Apr 2020 12:33:45 +0200 Subject: [PATCH] cleanup --- .editorconfig | 2 +- config/config.yaml | 11 +++++++---- config/services.yaml | 1 - .../Source/SymfonyRouteAnnotation.php | 9 --------- 4 files changed, 8 insertions(+), 15 deletions(-) delete mode 100644 rules/nette-to-symfony/tests/Rector/ClassMethod/RouterListToControllerAnnotationsRetor/Source/SymfonyRouteAnnotation.php diff --git a/.editorconfig b/.editorconfig index e15c22a81e2..bec95c4494f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,6 @@ root = true -[*.{css,html,js,json,latte,neon,php,twig,xml,yaml,yml}] +[*] charset = utf-8 end_of_line = lf insert_final_newline = true diff --git a/config/config.yaml b/config/config.yaml index 91a0aa9ae45..561b954da39 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -9,9 +9,15 @@ imports: parameters: # processed paths paths: [] + file_extensions: + - 'php' + + # exclude exclude_paths: [] exclude_rectors: [] + autoload_paths: [] + rector_recipe: [] # this helps to separate opened 3rd party code vs private code approach (e.g. use of public constants) @@ -20,7 +26,7 @@ parameters: # lower for performance; higher to prevent bugs with fluent interfaces like https://github.com/rectorphp/rector/issues/1646, or https://github.com/rectorphp/rector/issues/2444 nested_chain_method_call_limit: 30 - # importing FQN names + # importing FQN names; false disables "import_short_classes" and "import_doc_blocks" options bellow auto_import_names: false # e.g. import \DateTime import_short_classes: true @@ -29,6 +35,3 @@ parameters: # what PHP version is used for features, composer.json version, then local PHP version is used by default php_version_features: null - - file_extensions: - - 'php' diff --git a/config/services.yaml b/config/services.yaml index 1c87c21cd88..d8bff01edd9 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -9,7 +9,6 @@ services: - '../src/Rector/**/*Rector.php' - '../src/Testing/PHPUnit/*' - '../src/RectorDefinition/*' - - '../src/PhpParser/Node/*Info.php' - '../src/Exception/*' - '../src/DependencyInjection/CompilerPass/*' - '../src/DependencyInjection/Loader/*' diff --git a/rules/nette-to-symfony/tests/Rector/ClassMethod/RouterListToControllerAnnotationsRetor/Source/SymfonyRouteAnnotation.php b/rules/nette-to-symfony/tests/Rector/ClassMethod/RouterListToControllerAnnotationsRetor/Source/SymfonyRouteAnnotation.php deleted file mode 100644 index 1c821f6ecb9..00000000000 --- a/rules/nette-to-symfony/tests/Rector/ClassMethod/RouterListToControllerAnnotationsRetor/Source/SymfonyRouteAnnotation.php +++ /dev/null @@ -1,9 +0,0 @@ -