Skip to content

Output for baseline file contains progress bars #2695

@Wirone

Description

@Wirone

Bug report

When using --error-format baselineNeon (like in article) target file contains progress bars.

Code snippet that reproduces the problem

vendor/bin/phpstan analyse --level 7 \
    --configuration phpstan.neon \
    --error-format baselineNeon \
    src/ tests/ > phpstan-baseline.neon

then include baseline file:

includes:
    - phpstan-baseline.neon

Effect:

> phpstan --no-progress analyse
Note: Using configuration file /var/www/html/phpstan.neon.

In Decoder.php line 329:
                                                                               
                 4/432 [░░░░░░░░�' on line 3, column 101  
  .                                                                            
                                                                               

analyse [--paths-file PATHS-FILE] [-c|--configuration CONFIGURATION] [-l|--level LEVEL] [--no-progress] [--debug] [-a|--autoload-file AUTOLOAD-FILE] [--error-format ERROR-FORMAT] [--memory-limit MEMORY-LIMIT] [--xdebug] [--] [<paths>...]

Expected output

Using --error-format baselineNeon should automatically set --no-progress mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions