Skip to content

Generate tables in a markdown compatible format #71

@tomzx

Description

@tomzx

Since I will be analyzing the issues that should be fixed to make php-semver-checker more useful and correct, I plan on writing down in case analysis issues what the incorrectly suggested changes are.

The current table format does not display well at all in markdown.

Compare

+-------+----------------------------------------------------------+-------------------------------------------------------+---------------------------------+------+
| Level | Location | Target | Reason | Code |
+-------+----------------------------------------------------------+-------------------------------------------------------+---------------------------------+------+
| MAJOR | src/Symfony/Component/Console/Style/SymfonyStyle.php:334 | Symfony\Component\Console\Style\SymfonyStyle::writeln | [public] Method has been added. | V015 |
| MAJOR | src/Symfony/Component/Console/Style/SymfonyStyle.php:343 | Symfony\Component\Console\Style\SymfonyStyle::write | [public] Method has been added. | V015 |
| MAJOR | src/Symfony/Component/Console/Style/SymfonyStyle.php:352 | Symfony\Component\Console\Style\SymfonyStyle::newLine | [public] Method has been added. | V015 |
+-------+----------------------------------------------------------+-------------------------------------------------------+---------------------------------+------+

to

Level Location Target Reason Code
MAJOR src/Symfony/Component/Console/Style/SymfonyStyle.php:334 Symfony\Component\Console\Style\SymfonyStyle::writeln [public] Method has been added. V015
MAJOR src/Symfony/Component/Console/Style/SymfonyStyle.php:343 Symfony\Component\Console\Style\SymfonyStyle::write [public] Method has been added. V015
MAJOR src/Symfony/Component/Console/Style/SymfonyStyle.php:352 Symfony\Component\Console\Style\SymfonyStyle::newLine [public] Method has been added. V015

In the best case, it is a matter of playing with the style of the Symfony Console. In the worst, it would require writing a new table generator.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions