Skip to content

add JsonOutputFormatter#1491

Merged
TomasVotruba merged 4 commits intomasterfrom
json-output-formatter
May 28, 2019
Merged

add JsonOutputFormatter#1491
TomasVotruba merged 4 commits intomasterfrom
json-output-formatter

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented May 28, 2019

Closes #1455

Example output

bin/rector p src/Console/Output -n -o json

(-n = --dry-run, -o = --output-format)

{
    "meta": {
        "version": "0.5.x-dev@adba626",
        "config": "/var/www/rector/rector.yaml"
    },
    "totals": {
        "changed_files": 1,
        "removed_and_added_files_count": 0,
        "errors": 0
    },
    "file_diffs": [
        {
            "file": "/var/www/rector/src/Console/Output/JsonOutputFormatter.php",
            "diff": "--- Original\n+++ New\n@@ -25,7 +25,7 @@\n      */\n     private $configuration;\n \n-    public function __construct(\\Symfony\\Component\\Console\\Style\\SymfonyStyle $symfonyStyle, Configuration $configuration)\n+    public function __construct(SymfonyStyle $symfonyStyle, Configuration $configuration)\n     {\n         $this->symfonyStyle = $symfonyStyle;\n         $this->configuration = $configuration;\n",
            "applied_rectors": [
                "Rector\\CodingStyle\\Rector\\Namespace_\\ImportFullyQualifiedNamesRector"
            ]
        }
    ],
    "changed_files": [
        "/var/www/rector/src/Console/Output/JsonOutputFormatter.php"
    ]
}

@TomasVotruba TomasVotruba force-pushed the json-output-formatter branch from 03f3d3b to e01076e Compare May 28, 2019 14:52
@TomasVotruba TomasVotruba requested a review from JanMikes May 28, 2019 14:53
@TomasVotruba TomasVotruba self-assigned this May 28, 2019
@TomasVotruba TomasVotruba force-pushed the json-output-formatter branch from e01076e to 965be1f Compare May 28, 2019 15:00
@TomasVotruba TomasVotruba merged commit 109091b into master May 28, 2019
@TomasVotruba TomasVotruba deleted the json-output-formatter branch May 28, 2019 15:27
TomasVotruba added a commit that referenced this pull request Dec 14, 2021
rectorphp/rector-src@e1b44d0 [Scoped] Fix build scoped on unused bin/generate-changelog.php bin/rector bin/rector.php bin/validate-phpstan-version.php files in scoped build (#1491)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML report?

1 participant