Skip to content

Show errors when baseline can't be generated #3973

@pascalheidmann

Description

@pascalheidmann

Feature request

We use the baseline heavily. Therefore we use phpstan all the time with phpstan analyze --generate-baseline.
When there happens to be an error that prohibits generating the baseline you get something like this:

 [WARNING] Baseline generated with 17184 errors. Some errors could not be put into baseline. Re-run PHPStan and fix them. 

As the error number already suggests this can take some time on our code base ;) In this case I would expect to see the errors that prevent baseline generatoin (so no phpstan rule errors!) which you get when running without --generate-baseline (like Class Foo\Bar was not found while trying to analyse it - autoloading is probably not configured properly.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions