MiloslavBeno For now, there is a setting 'Files: Insert Final Newline'. It's not exactly what you want, but it might help.
Thanks the workaround helps.
MiloslavBeno To answer your question where you can find rules. You can open workspace settings and check the rules directly in the UI
The question was about the logs from the formatter, to be able to find a rule to find a particular behavior.
Would be helpful, to trackdown such issues -
a) which format setting is doing xY
b) is the devsense extension doing it or any other extension..
As an example... the formatter could output a log each time it has formatted somenthing including the rules that changed something.
11) tests/Feature/Http/Controllers/V1/UpdateTaskTest.php
---------- begin diff ----------
@@ -131,7 +131,9 @@
$task = Task::factory()->create();
$taskId = $task->id;
- $patchData = ['title' => 'Patched Title'];
+ $patchData = [
+ 'title' => 'Patched Title',
+ ];
// Act
$response = $this->patchJson(route('tasks.update', $taskId), $patchData);
@@ -141,10 +143,12 @@
testAgainstSpec('patch', route('tasks.update', $taskId), $response, 'openapi.yaml');
$putData = $task->getAttributes();
- $putData = array_merge($putData, ['title' => 'Putted Title']);
+ $putData = array_merge($putData, [
+ 'title' => 'Putted Title',
+ ]);
$response = $this->putJson(route('tasks.update', $taskId), $putData);
$response->assertStatus(204);
//Will Throw an error if the response does not match the spec
testAgainstSpec('put', route('tasks.update', $taskId), $response, 'openapi.yaml');
-});
\ No newline at end of file
+});
----------- end diff -----------
Applied checkers:
* PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer
* PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer
* PhpCsFixer\Fixer\Whitespace\SingleBlankLineAtEofFixer
* Symplify\CodingStandard\Fixer\ArrayNotation\ArrayOpenerAndCloserNewlineFixer