Skip to content

Commit ed85860

Browse files
committed
feat: improved output rendering
1 parent cc68dc8 commit ed85860

File tree

10 files changed

+237
-93
lines changed

10 files changed

+237
-93
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased] - yyyy-mm-dd
88

99
## [5.2.0] - 2020-xx-xx (Unreleased)
10+
1011
- Support custom composer vendor autoload files using the ENV "DOCTUM_COMPOSER_AUTOLOAD_FILE"
1112
- Add function reflection & doc section in Namespace (#12)
13+
- Refactor and improve the progress bar
14+
- Add CLI `--output-format` option that supports a lot of formats: `raw, rawtext, table, checkstyle, json, junit, prettyJson, gitlab, github, teamcity`
15+
- Add CLI `--no-progress` to disable progress bars but keep output
16+
- Fixed `--no-ansi` not displaying text
17+
- `RENDER_PROGRESS` callback takes `$this->step, $this->steps` instead of `$this->getProgression()` for users hacking the tool
18+
- `PARSE_CLASS` callback uses `$this->step, $this->steps` instead of the calculated progression
19+
- Most error reports are sent to stderr now, you can use `--no-progress --output-format=checkstyle 2> checkstyle.xml`
20+
- Add new dependency `code-lts/cli-tools`
1221

1322
## [5.1.0] - 2020-08-29
23+
1424
- Allow symfony/* ~3.4 versions
1525
- Support `--ignore-parse-errors` to have an exit code 0.
1626
- Add more PHP typehints on the code-base.
1727
- Fix a typo on README.rst
1828

1929
## [5.0.3] - 2020-08-19
30+
2031
- Some fixes for project classes
2132

2233
## [5.0.2] - 2020-08-15
34+
2335
- Upgrade nikic/php-parser from 4.5.x to 4.6.x
2436
- Add an error for PHP versions below 7.1
2537
- Fixed an error due to [#249 on phpdocumentor/reflection-docblock](https://github.com/phpDocumentor/ReflectionDocBlock/issues/249)
2638

2739
## [5.0.1] - 2020-07-19
40+
2841
- Fix a parsing error on "src/Parser/NodeVisitor"
2942

3043
## [5.0.0] - 2020-07-18

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"symfony/process": "~3.4|~4.3|~5.1|~5.2",
3232
"phpdocumentor/reflection-docblock": "~4.3|~5.2.1",
3333
"wdes/php-i18n-l10n": "^2.0",
34-
"code-lts/cli-tools": "^1.0"
34+
"code-lts/cli-tools": "^1.3.1"
3535
},
3636
"scripts": {
3737
"phpunit": "./vendor/bin/phpunit",

phpstan-baseline.neon

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,6 @@ parameters:
140140
count: 1
141141
path: src/Doctum.php
142142

143-
-
144-
message: "#^Cannot assign offset \\(int\\|string\\) to Doctum\\\\Doctum\\.$#"
145-
count: 1
146-
path: src/Doctum.php
147-
148143
-
149144
message: "#^Property Doctum\\\\ErrorHandler\\:\\:\\$levels has no typehint specified\\.$#"
150145
count: 1
@@ -2755,16 +2750,6 @@ parameters:
27552750
count: 1
27562751
path: src/Renderer/Renderer.php
27572752

2758-
-
2759-
message: "#^Property Doctum\\\\Renderer\\\\Renderer\\:\\:\\$steps has no typehint specified\\.$#"
2760-
count: 1
2761-
path: src/Renderer/Renderer.php
2762-
2763-
-
2764-
message: "#^Property Doctum\\\\Renderer\\\\Renderer\\:\\:\\$step has no typehint specified\\.$#"
2765-
count: 1
2766-
path: src/Renderer/Renderer.php
2767-
27682753
-
27692754
message: "#^Property Doctum\\\\Renderer\\\\Renderer\\:\\:\\$tree has no typehint specified\\.$#"
27702755
count: 1
@@ -2885,11 +2870,6 @@ parameters:
28852870
count: 1
28862871
path: src/Renderer/Renderer.php
28872872

2888-
-
2889-
message: "#^Method Doctum\\\\Renderer\\\\Renderer\\:\\:getProgression\\(\\) has no return typehint specified\\.$#"
2890-
count: 1
2891-
path: src/Renderer/Renderer.php
2892-
28932873
-
28942874
message: "#^Method Doctum\\\\Renderer\\\\Renderer\\:\\:getTree\\(\\) return type has no value type specified in iterable type array\\.$#"
28952875
count: 1

0 commit comments

Comments
 (0)