Skip to content

Additional (code standard?) rules are running by default #3222

@shaal

Description

@shaal

Bug Report

Subject Details
Rector version v0.7.16 (invoke vendor/bin/rector --version)
Installed as prefixed Rector PHAR

Minimal PHP Code Causing Issue

In this example a docblock is being removed, because there's an empty docblock after it:

-/**
- * This docblock is being deleted when there's an empty docblock after it.
- */
-
-/**
- * 
- */
-

https://getrector.org/demo/9dbe8d1d-b062-4b16-97d2-605769834cbc#result

In this example empty comment lines are being removed, and 2 lines are being removed and added back the same way:


 /**
  * The empty line after this docblock is being deleted.
- */
-
+ */
 /**
  * Another dockblock.
- * 
+ *  
  *
  * first_function()
- * 
+ *  
  *
- * second_function()
- * third_function()
+ * second_function()
+ * third_function()
  * fourth_function()
- */
-
+ */

https://getrector.org/demo/0737a1e7-0b83-4e50-9e64-72f2e33476c8#result

Expected Behaviour

I'm expecting rector to run only the rules that are set in rector.yml, and if it's not explicitly called it shouldn't run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions