Skip to content

The --no-check-* flags actually do check, just convert errors to warnings #7207

@tomasfejfar

Description

@tomasfejfar

When I run this command:

composer validate --no-check-publish --no-check-all --strict; echo $?

On a repository, that has empty description and name

I get the following output:

./composer.json is valid for simple usage with composer but has
strict errors that make it unable to be published as a package:
See https://getcomposer.org/doc/04-schema.md for details on the schema
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
name : The property name is required
description : The property description is required
1

And I expected this to happen:
Return 0, because "publish" is not checked, "all" is not checked and lockfile is fine.
The suppressed checks should not run at all.

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