mago lint does not return exit code 1 #61
Labels
Priority: Critical
This should be dealt with ASAP. Not fixing would be a serious error.
Status: Closed
This issue is closed and no more work is planned.
Type: Bug
An issue causing unintended or problematic behavior.
🐞 Describe the Bug
I run
mago lint
and have errors in my project. I expect the exit code to be 1.(or at least not 0) so scripts and CI/CD pipelines will fail when there are errors.
🔄 Steps to Reproduce
Run
mago lint
when having errors in your code.⚙️ Configuration (mago.toml)
[source]
paths = ["app", "bootstrap", "config", "operations", "database", "tests"]
includes = ["vendor"]
📜 Command Output
📂 PHP Code Sample (If Applicable)
🖥️ Operating System
Linux
📦 How did you install Mago?
Composer (
composer require carthage-software/mago
)📝 Additional Context
Sorry if i have missed an option.
Found nothing in the documentation. If its there, please consider making the option more prominent.
Even if it is possible to configure the behavior, the default behavior should be exit code 1 in case of errors.
The text was updated successfully, but these errors were encountered: